diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-04-01 13:28:09 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-04-01 13:28:09 +0200 |
commit | 21c9377e67064f41ea90c5746a79f0430686cd34 (patch) | |
tree | 51eb2a2b5b776a82377c3845772c35bd5d675538 | |
parent | c83e85a072a5d22f2dbfddb48fddbc2cf33bb8a4 (diff) | |
download | rubygem-jekyll-package-21c9377e67064f41ea90c5746a79f0430686cd34.tar.gz rubygem-jekyll-package-21c9377e67064f41ea90c5746a79f0430686cd34.tar.xz rubygem-jekyll-package-21c9377e67064f41ea90c5746a79f0430686cd34.zip |
Switch to gem2rpm generated spec file
-rw-r--r-- | rubygem-mojombo-jekyll.spec | 80 |
1 files changed, 34 insertions, 46 deletions
diff --git a/rubygem-mojombo-jekyll.spec b/rubygem-mojombo-jekyll.spec index 0cd381d..e4fde5f 100644 --- a/rubygem-mojombo-jekyll.spec +++ b/rubygem-mojombo-jekyll.spec @@ -1,71 +1,59 @@ -%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") -%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) -%global gemname mojombo-jekyll -%global geminstdir %{gemdir}/gems/%{gemname}-%{version} - -Name: rubygem-%{gemname} -Version: 0.4.1 -Release: 1%{?dist} -Summary: Blog-aware, static web site generator - -Group: Applications/Internet -License: MIT -URL: http://github.com/mojombo/jekyll/ -Source0: http://gems.github.com/gems/%{gemname}-%{version}.gem -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -BuildRequires: rubygems -Requires: rubygems -Provides: rubygem(%{gemname}) = %{version} -BuildArch: noarch +# Generated from mojombo-jekyll-0.4.1.gem by gem2rpm -*- rpm-spec -*- +%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") +%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%define gemname mojombo-jekyll +%define geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: Jekyll is a simple, blog aware, static site generator +Name: rubygem-%{gemname} +Version: 0.4.1 +Release: 1%{?dist} +Group: Development/Languages +License: GPLv2+ or Ruby +URL: http://github.com/mojombo/jekyll +Source0: http://gems.github.com/gems/%{gemname}-%{version}.gem +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: rubygems +Requires: rubygem(RedCloth) >= 4.0.4 +Requires: rubygem(liquid) >= 1.9.0 +Requires: rubygem(classifier) >= 1.3.1 +Requires: rubygem(maruku) >= 0.5.9 +Requires: rubygem(directory_watcher) >= 1.1.1 +Requires: rubygem(open4) >= 0.9.6 +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} %description -FIXME +Jekyll is a simple, blog aware, static site generator. + %prep %build - %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ - --force --rdoc %{SOURCE0} + --force --rdoc %{SOURCE0} mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} -find %{buildroot}/%{_bindir} -type f | xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' rmdir %{buildroot}%{gemdir}/bin -find %{buildroot}%{geminstdir}/{lib,test} -type f | xargs -n 1 sed -i -e '/^#!\/usr\/bin\/env ruby/d' -find %{buildroot}%{geminstdir}/{doc,lib,test} -type f | xargs chmod 0644 -cat<<EOF -============================ -# gemdir=%{gemdir} -# geminstdir=%{geminstdir} -============================ -EOF - +find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x %clean rm -rf %{buildroot} - %files -%defattr(-,root,root,-) -%doc %{gemdir}/doc/%{gemname}-%{version} -%doc %{geminstdir}/README.textile -%doc %{geminstdir}/History.txt +%defattr(-, root, root, -) %{_bindir}/jekyll -%{geminstdir}/VERSION.yml -%{geminstdir}/bin -%{geminstdir}/lib -%{geminstdir}/test +%{gemdir}/gems/%{gemname}-%{version}/ +%doc %{gemdir}/doc/%{gemname}-%{version} %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog -* Wed Apr 1 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.4.1-1 -- initial package (modelled after rubygem-rake.spec) - - +* Wed Apr 01 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.4.1-1 +- Initial package |