Projects
home:vanmeeuwen:lesb
rubygem-minitest
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
rubygem-minitest.spec
Changed
@@ -1,23 +1,26 @@ # Generated from minitest-1.4.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name minitest -%global gemname %{gem_name} - -%global gemdir %{gem_dir} -%global geminstdir %{gem_instdir} +%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)} +%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem} +%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}} +%{!?gem_extdir_mri: %global gem_extdir_mri %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} +%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}} +%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib} +%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec} Summary: Small and fast replacement for ruby's huge and slow test/unit -Name: rubygem-%{gemname} +Name: rubygem-%{gem_name} Version: 4.7.0 Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://rubyforge.org/projects/bfts -Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem Requires: ruby(rubygems) BuildRequires: rubygems-devel BuildArch: noarch -Provides: rubygem(%{gemname}) = %{version} +Provides: rubygem(%{gem_name}) = %{version} %description minitest/unit is a small and fast replacement for ruby's huge and slow @@ -41,8 +44,18 @@ %prep %setup -q -c -T -mkdir -p .%{gemdir} -%gem_install -n %{SOURCE0} +mkdir -p .%{gem_dir} +CONFIGURE_ARGS="--with-cflags='%{optflags}' $CONFIGURE_ARGS" \ + gem install \ + -V \ + --local \ + --install-dir .%{gem_dir} \ + --bindir .%{_bindir} \ + --force \ + --rdoc \ + --no-ri \ + --backtrace \ + %{SOURCE0} find . -name \*gem -exec chmod 0644 {} \; @@ -50,22 +63,22 @@ %install rm -rf %{buildroot} -mkdir -p %{buildroot}%{gemdir} -cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ -find %{buildroot}%{geminstdir}/lib -type f | \ +find %{buildroot}%{gem_instdir}/lib -type f | \ xargs -n 1 sed -i -e '/^#!\/usr\/bin\/ruby.*/d' # Ships with extremely tight permissions, bring them inline with other gems -find %{buildroot}%{geminstdir} -type f | \ +find %{buildroot}%{gem_instdir} -type f | \ xargs chmod 0644 -rm -f %{buildroot}%{geminstdir}/{.autotest,.gemtest} +rm -f %{buildroot}%{gem_instdir}/{.autotest,.gemtest} %clean rm -rf %{buildroot} %check -pushd .%{geminstdir} +pushd .%{gem_instdir} # spec test suite is unstable. # https://github.com/seattlerb/minitest/issues/257 @@ -78,21 +91,20 @@ %files %defattr(-,root,root,-) -%doc %{geminstdir}/History.txt -%doc %{geminstdir}/Manifest.txt -%doc %{geminstdir}/README.txt -%dir %{geminstdir} -%{geminstdir}/lib -%{gemdir}/cache/%{gemname}-%{version}.gem -%{gemdir}/specifications/%{gemname}-%{version}.gemspec +%doc %{gem_instdir}/History.txt +%doc %{gem_instdir}/Manifest.txt +%doc %{gem_instdir}/README.txt +%dir %{gem_instdir} +%{gem_libdir} +%{gem_cache} +%{gem_spec} %files doc %defattr(-,root,root,-) -%{geminstdir}/Rakefile -%{geminstdir}/test -%{geminstdir}/design_rationale.rb -%{gemdir}/doc/%{gemname}-%{version} - +%{gem_instdir}/Rakefile +%{gem_instdir}/test +%{gem_instdir}/design_rationale.rb +%{gem_docdir} %changelog * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.