04d2851
# Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*-
d3b61b5
%global gem_name gem2rpm
1dfc5c8
d3b61b5
Name: rubygem-%{gem_name}
3e3faab
Version: 0.11.3
3e3faab
Release: 1%{?dist}
27ca576
Summary: Generate rpm specfiles from gems
04d2851
Group: Development/Languages
97e427e
License: GPLv2+
27ca576
URL: https://github.com/fedora-ruby/gem2rpm
27ca576
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
1ec2dac
# git clone https://github.com/fedora-ruby/gem2rpm.git && cd gem2rpm && git checkout v0.11.2
1ec2dac
# tar czvf gem2rpm-0.11.2-tests.tgz test/
3203984
Source1: %{gem_name}-%{version}-tests.tgz
1ec2dac
Requires: %{_bindir}/rpmdev-packager
43ac803
BuildRequires: ruby(release)
d3b61b5
BuildRequires: rubygems-devel
1dfc5c8
BuildRequires: ruby
1ec2dac
BuildRequires: %{_bindir}/rpmdev-packager
d3b61b5
BuildRequires: rubygem(minitest)
04d2851
BuildArch: noarch
04d2851
9f7ba81
%description
04d2851
Generate source rpms and rpm spec files from a Ruby Gem.  The spec file
04d2851
tries to follow the gem as closely as possible, and be compliant with the
27ca576
Fedora rubygem packaging guidelines.
04d2851
04d2851
stahnma 2d778fd
%package doc
27ca576
Summary: Documentation for %{name}
27ca576
Group: Documentation
27ca576
Requires: %{name} = %{version}-%{release}
1dfc5c8
BuildArch: noarch
stahnma 2d778fd
stahnma 2d778fd
%description doc
stahnma 2d778fd
Documentation for %{name}.
stahnma 2d778fd
04d2851
%prep
1dfc5c8
%setup -q -c -T
43ac803
%gem_install -n %{SOURCE0}
04d2851
04d2851
%build
04d2851
04d2851
%install
d3b61b5
mkdir -p %{buildroot}%{gem_dir}
d3b61b5
cp -a .%{gem_dir}/* \
d3b61b5
        %{buildroot}%{gem_dir}/
1dfc5c8
1dfc5c8
mkdir -p %{buildroot}%{_bindir}
1dfc5c8
cp -a .%{_bindir}/* \
1dfc5c8
        %{buildroot}%{_bindir}/
1dfc5c8
d3b61b5
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
04d2851
1dfc5c8
%check
d3b61b5
pushd .%{gem_instdir}
43ac803
tar xzvf %{SOURCE1}
43ac803
43ac803
# Disable this test, since it needs online access (see the comment on line 22).
f6586e1
sed -i "/test_find_download_url_for_source_address/,/  end/ s/^/#/" test/test_gem2rpm.rb
43ac803
f6586e1
ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
1dfc5c8
popd
04d2851
04d2851
%files
d3b61b5
%dir %{gem_instdir}
1dfc5c8
%{_bindir}/gem2rpm
27ca576
%license %{gem_instdir}/LICENSE
d3b61b5
%{gem_instdir}/bin
d3b61b5
%{gem_libdir}
d3b61b5
%{gem_instdir}/templates
7d07448
%exclude %{gem_cache}
d3b61b5
%{gem_spec}
stahnma 2d778fd
stahnma 2d778fd
%files doc
7d07448
%doc %{gem_docdir}
d3b61b5
%doc %{gem_instdir}/AUTHORS
27ca576
%doc %{gem_instdir}/README.md
04d2851
04d2851
%changelog
3e3faab
* Tue Apr 26 2016 Vít Ondruch <vondruch@redhat.com> - 0.11.3-1
3e3faab
- Update to gem2rpm 0.11.3.
3e3faab
8e41f20
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.2-2
8e41f20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8e41f20
1ec2dac
* Mon Aug 17 2015 Vít Ondruch <vondruch@redhat.com> - 0.11.2-1
1ec2dac
- Update to gem2rpm 0.11.2.
1ec2dac
fbee06b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-2
fbee06b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fbee06b
27ca576
* Tue May 05 2015 Vít Ondruch <vondruch@redhat.com> - 0.11.1-1
27ca576
- Update to gem2rpm 0.11.1.
27ca576
6eb6d0a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
6eb6d0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6eb6d0a
f6586e1
* Mon May 05 2014 Vít Ondruch <vondruch@redhat.com> - 0.10.1-1
f6586e1
- Update to gem2rpm 0.10.0.
f6586e1
0226847
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
0226847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0226847
1c876f7
* Tue Apr 23 2013 Vít Ondruch <vondruch@redhat.com> - 0.9.2-1
1c876f7
- Update to gem2rpm 0.9.2.
1c876f7
43ac803
* Mon Apr 22 2013 Vít Ondruch <vondruch@redhat.com> - 0.9.1-1
43ac803
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
43ac803
- Update to gem2rpm 0.9.1.
43ac803
2744468
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
2744468
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2744468
a087a54
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
a087a54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a087a54
7d07448
* Thu Feb 09 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.1-1
7d07448
- Fix template for F17 and above.
7d07448
- Fix release enumeration logic.
7d07448
f6586e1
* Mon Jan 23 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.0-1
957ced5
- Updated to gem2rpm 0.8.0.
957ced5
d3b61b5
* Fri Jan 20 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.1-4
d3b61b5
- Rebuilt for Ruby 1.9.3.
d3b61b5
c4791dc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
c4791dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c4791dc
0ec09ec
* Wed Dec 14 2011 Vít Ondruch <vondruch@redhat.com> - 0.7.1-2
0ec09ec
- gem2rpm requires rpmdev-packager tool to work properly.
0ec09ec
1dfc5c8
* Thu Jun 30 2011 Vít Ondruch <vondruch@redhat.com> - 0.7.1-1
1dfc5c8
- Updated to the 0.7.1 version.
1dfc5c8
2dbe353
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
2dbe353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2dbe353
stahnma 2d778fd
* Tue Sep 28 2010 Michael Stahnke <stahnma@fedoraproject.org> - 0.6.0-5
stahnma 2d778fd
- Breaking into a main and doc package
stahnma 2d778fd
8e8aa15
* Tue Nov 24 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-4
8e8aa15
- Add gemdocdir contents as doc
8e8aa15
bb88202
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
bb88202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bb88202
16775ab
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
16775ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
16775ab
9f7ba81
* Mon Oct  6 2008 David Lutterkort <dlutter@redhat.com> - 0.6.0-1
9f7ba81
- New version
9f7ba81
04d2851
* Tue Mar 11 2008 David Lutterkort <dlutter@redhat.com> - 0.5.3-1
04d2851
- Bring in accordance with Fedora guidelines
04d2851
04d2851
* Thu Jan  3 2008 David Lutterkort <dlutter@redhat.com> - 0.5.2-2
04d2851
- Own geminstdir
04d2851
- Fix Source URL
04d2851
9f7ba81
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 0.5.1-1
04d2851
- Initial package