fotios

rubygem-barista.spec

Sep 14th, 2011
361
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated from barista-1.2.1.gem by gem2rpm -*- rpm-spec -*-
  2. %global gemname barista
  3.  
  4. %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
  5. %global geminstdir %{gemdir}/gems/%{gemname}-%{version}
  6. %global rubyabi 1.8
  7.  
  8. Summary: Simple, transparent coffeescript integration for Rails and Rack applications
  9. Name: rubygem-%{gemname}
  10. Version: 1.2.1
  11. Release: 1%{?dist}
  12. Group: Development/Languages
  13. License: MIT
  14. URL: http://github.com/Sutto/barista
  15. Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
  16. Requires: ruby(abi) = %{rubyabi}
  17. Requires: ruby(rubygems)
  18. Requires: ruby
  19. Requires: rubygem(coffee-script) => 2.2
  20. Requires: rubygem(coffee-script) < 3
  21. BuildRequires: ruby(abi) = %{rubyabi}
  22. BuildRequires: ruby(rubygems)
  23. BuildRequires: ruby
  24. BuildArch: noarch
  25. Provides: rubygem(%{gemname}) = %{version}
  26.  
  27. %description
  28. Barista provides simple, integrated support for CoffeeScript in Rack and Rails
  29. applications.
  30. Much like Compass does for Sass, It also provides Frameworks (bundleable code
  31. which can be shared via Gems).
  32. Lastly, it also provides a Rack Application (which can be used to server
  33. compiled code), a around_filter-style precompiler (as Rack middleware) and
  34. simple helpers for rails and Haml.
  35. For more details, please see the the README file bundled with it.
  36.  
  37.  
  38. %package doc
  39. Summary: Documentation for %{name}
  40. Group: Documentation
  41. Requires: %{name} = %{version}-%{release}
  42. BuildArch: noarch
  43.  
  44. %description doc
  45. Documentation for %{name}
  46.  
  47.  
  48. %prep
  49. %setup -q -c -T
  50. mkdir -p .%{gemdir}
  51. gem install --local --install-dir .%{gemdir} \
  52.             --force %{SOURCE0}
  53.  
  54. %build
  55.  
  56. %install
  57. mkdir -p %{buildroot}%{gemdir}
  58. cp -a .%{gemdir}/* \
  59.         %{buildroot}%{gemdir}/
  60.  
  61.  
  62. %files
  63. %{geminstdir}
  64.  
  65. %{gemdir}/cache/%{gemname}-%{version}.gem
  66. %{gemdir}/specifications/%{gemname}-%{version}.gemspec
  67.  
  68. %files doc
  69. %doc %{gemdir}/doc/%{gemname}-%{version}
  70. %doc %{geminstdir}/LICENSE
  71. %doc %{geminstdir}/README.md
  72.  
  73.  
  74. %changelog
  75.                  * Wed Sep 14 2011 Fotios Lindiakos (fotios@redhat.com) - 1.2.1-1
  76. - Initial package
RAW Paste Data