# Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name gem2rpm %global gemdocdir %{gem_docdir} %global rubyabi 1.9.1 Summary: Generate rpm specfiles from gems Name: rubygem-%{gem_name} Version: 0.8.0 Release: 1%{?dist} Group: Development/Languages License: GPLv2+ %if 0%{?rhel} <= 5 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %endif URL: https://github.com/lutter/gem2rpm/ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.8.0 # tar czvf gem2rpm-0.8.0-tests.tgz test/ Source1: %{gem_name}-%{version}-tests.tgz Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby Requires: /usr/bin/rpmdev-packager BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: /usr/bin/rpmdev-packager BuildRequires: rubygem(minitest) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{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 %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -c -T mkdir -p .%{gem_dir} gem install --local --install-dir .%{gem_dir} \ --bindir .%{_bindir} \ --force %{SOURCE0} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check tar xzvf %{SOURCE1} -C .%{gem_instdir} pushd .%{gem_instdir} testrb -Itest test/ popd %files %dir %{gem_instdir} %{_bindir}/gem2rpm %{gem_instdir}/bin %{gem_libdir} %{gem_instdir}/templates %doc %{gem_instdir}/LICENSE %{gem_cache} %{gem_spec} %files doc %doc %{gemdocdir} %doc %{gem_instdir}/README %doc %{gem_instdir}/AUTHORS %changelog * Fri Jan 23 2012 Vít Ondruch - 0.8.0-1 - Updated to gem2rpm 0.8.0. * Fri Jan 20 2012 Vít Ondruch - 0.7.1-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Dec 14 2011 Vít Ondruch - 0.7.1-2 - gem2rpm requires rpmdev-packager tool to work properly. * Thu Jun 30 2011 Vít Ondruch - 0.7.1-1 - Updated to the 0.7.1 version. * Wed Feb 09 2011 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Sep 28 2010 Michael Stahnke - 0.6.0-5 - Breaking into a main and doc package * Tue Nov 24 2009 David Lutterkort - 0.6.0-4 - Add gemdocdir contents as doc * Sun Jul 26 2009 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Oct 6 2008 David Lutterkort - 0.6.0-1 - New version * 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.1-1 - Initial package