|
|
cc25e28 |
%global gem_name newgem
|
|
|
99f1e5e |
|
|
|
99f1e5e |
|
|
|
99f1e5e |
Summary: Bundle Ruby libraries into a RubyGem
|
|
|
cc25e28 |
Name: rubygem-%{gem_name}
|
|
|
44130f3 |
Version: 1.5.3
|
|
|
440d745 |
Release: 10%{?dist}
|
|
|
99f1e5e |
Group: Development/Languages
|
|
|
99f1e5e |
License: MIT or LGPLv2+
|
|
|
99f1e5e |
URL: http://newgem.rubyforge.org
|
|
|
cc25e28 |
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
44130f3 |
# Upstream wants a specific version of activesupport that's only required by
|
|
|
44130f3 |
# rubigen. Unclear why this is being done.
|
|
|
44130f3 |
# Filed at http://github.com/drnic/newgem/issues/issue/8
|
|
|
44130f3 |
Patch0: rubygem-newgem-1.5.3-gemspec.patch
|
|
|
99f1e5e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
99f1e5e |
Requires: ruby(rubygems)
|
|
|
440d745 |
Requires: ruby(release)
|
|
|
2e5f650 |
Requires: rubygem(rubigen) >= 1.5.3
|
|
|
99f1e5e |
Requires: rubygem(hoe)
|
|
|
99f1e5e |
Requires: rubygem(RedCloth)
|
|
|
99f1e5e |
Requires: rubygem(syntax)
|
|
|
99f1e5e |
Requires: rubygem(cucumber)
|
|
|
cc25e28 |
BuildRequires: rubygems-devel
|
|
|
cc25e28 |
BuildRequires: ruby-devel
|
|
|
440d745 |
BuildRequires: ruby(release)
|
|
|
53d2033 |
BuildRequires: rubygem(rubigen)
|
|
|
cc25e28 |
BuildRequires: rubygem(hoe)
|
|
|
53d2033 |
BuildRequires: rubygem(RedCloth)
|
|
|
53d2033 |
BuildRequires: rubygem(syntax)
|
|
|
53d2033 |
BuildRequires: rubygem(cucumber)
|
|
|
cc25e28 |
BuildRequires: rubygem(minitest)
|
|
|
99f1e5e |
BuildArch: noarch
|
|
|
cc25e28 |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%description
|
|
|
99f1e5e |
Within this gem, you get one thing - newgem - an executable to create your own
|
|
|
99f1e5e |
gems. Your new gems will include designated folders for Ruby code, test files,
|
|
|
99f1e5e |
executables, and even a default website page for you to explain your project,
|
|
|
99f1e5e |
and which instantly uploads to RubyForge website (which looks just like this
|
|
|
99f1e5e |
one by default).
|
|
|
99f1e5e |
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%prep
|
|
|
44130f3 |
%setup -q -c -T
|
|
|
99f1e5e |
|
|
|
440d745 |
%gem_install -n %{SOURCE0}
|
|
|
99f1e5e |
|
|
|
cc25e28 |
pushd .%{gem_dir}
|
|
|
44130f3 |
%patch0 -p0
|
|
|
cc25e28 |
test -f specifications/%{gem_name}-%{version}.gemspec.orig && \
|
|
|
cc25e28 |
rm specifications/%{gem_name}-%{version}.gemspec.orig
|
|
|
99f1e5e |
|
|
|
44130f3 |
%build
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%install
|
|
|
99f1e5e |
rm -rf %{buildroot}
|
|
|
cc25e28 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
cc25e28 |
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
44130f3 |
|
|
|
99f1e5e |
mkdir -p %{buildroot}/%{_bindir}
|
|
|
440d745 |
mv .%{_bindir}/* %{buildroot}/%{_bindir}
|
|
|
99f1e5e |
|
|
|
99f1e5e |
# Kill crlf
|
|
|
cc25e28 |
sed -s 's/\r//g' -i %{buildroot}%{gem_instdir}/README.rdoc \
|
|
|
cc25e28 |
%{buildroot}%{gem_instdir}/website/version.js \
|
|
|
cc25e28 |
%{buildroot}%{gem_instdir}/website/version-raw.txt \
|
|
|
cc25e28 |
%{buildroot}%{gem_instdir}/test/test_helper.rb
|
|
|
99f1e5e |
|
|
|
99f1e5e |
# Don't search environment - we leave the generators alone as someone may want
|
|
|
99f1e5e |
# the env searching.
|
|
|
cc25e28 |
find %{buildroot}%{gem_instdir}/{bin,script} -type f | \
|
|
|
99f1e5e |
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
|
|
|
99f1e5e |
|
|
|
99f1e5e |
# Only one minor test fails, reported here
|
|
|
99f1e5e |
# http://github.com/drnic/newgem/issues/#issue/7
|
|
|
99f1e5e |
# Disable the assert for now
|
|
|
99f1e5e |
sed -i '/assert_directory_exists "tasks"/d' \
|
|
|
cc25e28 |
%{buildroot}%{gem_instdir}/test/test_newgem_generator.rb
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%clean
|
|
|
99f1e5e |
rm -rf %{buildroot}
|
|
|
99f1e5e |
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%check
|
|
|
cc25e28 |
pushd %{buildroot}%{gem_instdir}
|
|
|
cc25e28 |
testrb test
|
|
|
cc25e28 |
popd
|
|
|
99f1e5e |
|
|
|
99f1e5e |
|
|
|
99f1e5e |
# CAUTION: rpmlint currently generates 8 errors and 2 warnings on this package
|
|
|
99f1e5e |
# due to the templating in the generators. Check the output carefully.
|
|
|
99f1e5e |
%files
|
|
|
99f1e5e |
%defattr(-,root,root,-)
|
|
|
99f1e5e |
%{_bindir}/newgem
|
|
|
cc25e28 |
%dir %{gem_instdir}
|
|
|
cc25e28 |
%{gem_instdir}/*_generators
|
|
|
cc25e28 |
%{gem_instdir}/bin
|
|
|
cc25e28 |
%{gem_instdir}/config
|
|
|
cc25e28 |
%{gem_instdir}/features
|
|
|
cc25e28 |
%{gem_libdir}
|
|
|
cc25e28 |
%{gem_instdir}/script
|
|
|
cc25e28 |
%{gem_instdir}/website
|
|
|
cc25e28 |
%{gem_instdir}/Rakefile
|
|
|
cc25e28 |
%doc %{gem_instdir}/TODO.markdown
|
|
|
cc25e28 |
%doc %{gem_instdir}/test
|
|
|
cc25e28 |
%doc %{gem_instdir}/History.txt
|
|
|
cc25e28 |
%doc %{gem_instdir}/Manifest.txt
|
|
|
cc25e28 |
%doc %{gem_instdir}/PostInstall.txt
|
|
|
cc25e28 |
%doc %{gem_instdir}/README.rdoc
|
|
|
cc25e28 |
%doc %{gem_docdir}
|
|
|
cc25e28 |
%{gem_cache}
|
|
|
cc25e28 |
%{gem_spec}
|
|
|
99f1e5e |
|
|
|
99f1e5e |
|
|
|
99f1e5e |
%changelog
|
|
|
440d745 |
* Tue Mar 19 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5.3-10
|
|
|
440d745 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
440d745 |
|
|
|
af97c40 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-9
|
|
|
af97c40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
af97c40 |
|
|
|
1b55253 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-8
|
|
|
1b55253 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1b55253 |
|
|
|
cc25e28 |
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 1.5.3-7
|
|
|
cc25e28 |
- Rebuilt for Ruby 1.9.3.
|
|
|
cc25e28 |
|
|
|
d6aef9b |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-6
|
|
|
d6aef9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d6aef9b |
|
|
|
53d2033 |
* Mon Aug 08 2011 Mo Morsi <mmorsi@redhat.com> - 1.5.3-5
|
|
|
53d2033 |
- replace BR(check) with BR
|
|
|
53d2033 |
|
|
|
a6479e2 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
|
a6479e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a6479e2 |
|
|
|
578fbb2 |
* Wed Jun 09 2010 Matthew Kent <mkent@magoazul.com> - 1.5.3-3
|
|
|
578fbb2 |
- New spec patch due to rubygems update.
|
|
|
578fbb2 |
|
|
|
2e5f650 |
* Wed May 05 2010 Matthew Kent <mkent@magoazul.com> - 1.5.3-2
|
|
|
2e5f650 |
- Version the rubigen dependency.
|
|
|
2e5f650 |
|
|
|
44130f3 |
* Tue May 04 2010 Matthew Kent <mkent@magoazul.com> - 1.5.3-1
|
|
|
44130f3 |
- New upstream version - minor changes.
|
|
|
44130f3 |
- Drop activesupport - only required by rubigen which already pulls it in.
|
|
|
44130f3 |
Upstream added a strict dependency - patched this out.
|
|
|
44130f3 |
|
|
|
44130f3 |
* Mon Feb 01 2010 Matthew Kent <mkent@magoazul.com> - 1.5.2-3
|
|
|
99f1e5e |
- Fix License (#504476).
|
|
|
99f1e5e |
- Disable activesupport Requires for now (#504476).
|
|
|
99f1e5e |
|
|
|
99f1e5e |
* Fri Jan 01 2010 Matthew Kent <mkent@magoazul.com> - 1.5.2-2
|
|
|
99f1e5e |
- Drop versioning on requirements as this is a new package.
|
|
|
99f1e5e |
- Drop unused ruby_sitelib macro.
|
|
|
99f1e5e |
- Add a rubyabi macro.
|
|
|
99f1e5e |
- RPM_BUILD_ROOT -> buildroot - use one style of macros.
|
|
|
99f1e5e |
- Fix bin/env ruby searching in bin/newgem.
|
|
|
99f1e5e |
- Remove duplicate hoe dependency.
|
|
|
99f1e5e |
- Add check phase.
|
|
|
99f1e5e |
- Fix another crlf (#504476).
|
|
|
99f1e5e |
- Add note about rpmlint complaints (#504476).
|
|
|
99f1e5e |
|
|
|
99f1e5e |
* Mon Oct 12 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.5.2-1
|
|
|
99f1e5e |
- Newer release
|
|
|
99f1e5e |
|
|
|
99f1e5e |
* Fri Jun 26 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.4.1-3
|
|
|
99f1e5e |
- Get rid of duplicate files (thanks to Mamoru Tasaka)
|
|
|
99f1e5e |
|
|
|
99f1e5e |
* Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.4.1-2
|
|
|
99f1e5e |
- Bring tests back
|
|
|
99f1e5e |
- Depend on ruby(abi)
|
|
|
99f1e5e |
- Replace defines with globals
|
|
|
99f1e5e |
- Don't drop the empty USAGE files
|
|
|
99f1e5e |
|
|
|
99f1e5e |
* Fri Jun 05 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.4.1-1
|
|
|
99f1e5e |
- Package generated by gem2rpm
|
|
|
99f1e5e |
- Don't ship tests
|
|
|
99f1e5e |
- Fix end of line encodings
|
|
|
99f1e5e |
- Remove empty files
|
|
|
99f1e5e |
- Fix up License
|