diff --git a/.cvsignore b/.cvsignore index e69de29..946e7d2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gem2rpm-0.5.3.gem diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec new file mode 100644 index 0000000..45e0dbe --- /dev/null +++ b/rubygem-gem2rpm.spec @@ -0,0 +1,67 @@ +# Generated from gem2rpm-0.5.2.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 gem2rpm +%define geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: Generate rpm specfiles from gems +Name: rubygem-%{gemname} +Version: 0.5.3 +Release: 1%{?dist} +Group: Development/Languages +License: GPLv2+ or Ruby +URL: http://rubyforge.org/projects/gem2rpm/ +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: rubygems +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Generate source rpms and rpm spec files from a Ruby Gem. The spec file +tries to follow the gem as closely as possible, and be compliant with the +Fedora rubygem packaging guidelines + + +%prep + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --force %{SOURCE0} +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} +rmdir %{buildroot}%{gemdir}/bin +find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%{_bindir}/gem2rpm +%dir %{geminstdir} +%doc %{geminstdir}/AUTHORS +%{geminstdir}/bin +%{geminstdir}/lib +%doc %{geminstdir}/README +%doc %{geminstdir}/LICENSE +%{geminstdir}/rubygem-gem2rpm.spec +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Tue Mar 11 2008 David Lutterkort - 0.5.3-1 +- Bring in accordance with Fedora guidelines + +* Thu Jan 3 2008 David Lutterkort - 0.5.2-2 +- Own geminstdir +- Fix Source URL + +* Mon Dec 10 2007 David Lutterkort - 0.5.2-1 +- Initial package diff --git a/sources b/sources index e69de29..10c99fd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +956b232a7446412a35ffe5db2736f093 gem2rpm-0.5.3.gem