Move RPM macros into /usr/lib/rpm/macros.d directory.
This is preferred locatin for RPM macros, since macro files are not typical configuration files (rhbz#846679).
This commit is contained in:
parent
2b7dccf61f
commit
641dc00b5f
15
ruby.spec
15
ruby.spec
@ -458,11 +458,11 @@ sed -i 's/Version: \${ruby_version}/Version: %{ruby_version}/' %{buildroot}%{_li
|
|||||||
|
|
||||||
# Move macros file insto proper place and replace the %%{name} macro, since it
|
# Move macros file insto proper place and replace the %%{name} macro, since it
|
||||||
# would be wrongly evaluated during build of other packages.
|
# would be wrongly evaluated during build of other packages.
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
mkdir -p %{buildroot}%{_exec_prefix}/lib/rpm/macros.d
|
||||||
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rpm/macros.ruby
|
install -m 644 %{SOURCE4} %{buildroot}%{_exec_prefix}/lib/rpm/macros.d/macros.ruby
|
||||||
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_sysconfdir}/rpm/macros.ruby
|
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_exec_prefix}/lib/rpm/macros.d/macros.ruby
|
||||||
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/rpm/macros.rubygems
|
install -m 644 %{SOURCE5} %{buildroot}%{_exec_prefix}/lib/rpm/macros.d/macros.rubygems
|
||||||
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_sysconfdir}/rpm/macros.rubygems
|
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_exec_prefix}/lib/rpm/macros.d/macros.rubygems
|
||||||
|
|
||||||
# Kill bundled cert.pem
|
# Kill bundled cert.pem
|
||||||
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/
|
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/
|
||||||
@ -651,7 +651,7 @@ OPENSSL_ENABLE_MD5_VERIFY=1 make check TESTS="-v $DISABLE_TESTS"
|
|||||||
%doc README.EXT
|
%doc README.EXT
|
||||||
%lang(ja) %doc README.EXT.ja
|
%lang(ja) %doc README.EXT.ja
|
||||||
|
|
||||||
%{_sysconfdir}/rpm/macros.ruby
|
%{_exec_prefix}/lib/rpm/macros.d/macros.ruby
|
||||||
|
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libruby.so
|
%{_libdir}/libruby.so
|
||||||
@ -848,7 +848,7 @@ OPENSSL_ENABLE_MD5_VERIFY=1 make check TESTS="-v $DISABLE_TESTS"
|
|||||||
%exclude %{gem_dir}/specifications/default/test-unit-*.gemspec
|
%exclude %{gem_dir}/specifications/default/test-unit-*.gemspec
|
||||||
|
|
||||||
%files -n rubygems-devel
|
%files -n rubygems-devel
|
||||||
%{_sysconfdir}/rpm/macros.rubygems
|
%{_exec_prefix}/lib/rpm/macros.d/macros.rubygems
|
||||||
|
|
||||||
%files -n rubygem-rake
|
%files -n rubygem-rake
|
||||||
%{_bindir}/rake
|
%{_bindir}/rake
|
||||||
@ -920,6 +920,7 @@ OPENSSL_ENABLE_MD5_VERIFY=1 make check TESTS="-v $DISABLE_TESTS"
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Dec 23 2013 Vít Ondruch <vondruch@redhat.com> - 2.1.0.0-0.16.r44362
|
* Mon Dec 23 2013 Vít Ondruch <vondruch@redhat.com> - 2.1.0.0-0.16.r44362
|
||||||
- Upgrade to Ruby 2.1.0 (r44362).
|
- Upgrade to Ruby 2.1.0 (r44362).
|
||||||
|
- Move RPM macros into /usr/lib/rpm/macros.d directory.
|
||||||
|
|
||||||
* Mon Dec 02 2013 Vít Ondruch <vondruch@redhat.com> - 2.1.0.0-0.16.preview1
|
* Mon Dec 02 2013 Vít Ondruch <vondruch@redhat.com> - 2.1.0.0-0.16.preview1
|
||||||
- Allow MD5 in OpenSSL for tests.
|
- Allow MD5 in OpenSSL for tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user