Fix "invalid regex" warning for non-rubygem packages (rhbz#1154067).

This commit is contained in:
Vít Ondruch 2014-10-30 13:59:52 +01:00
parent 2400b2d574
commit 4375d5ca30
2 changed files with 4 additions and 1 deletions

View File

@ -865,6 +865,7 @@ make check TESTS="-v $DISABLE_TESTS"
* Wed Oct 29 2014 Vít Ondruch <vondruch@redhat.com> - 2.1.4-23
- Update to Ruby 2.1.4.
- Include only vendor directories, not their content (rhbz#1114071).
- Fix "invalid regex" warning for non-rubygem packages (rhbz#1154067).
- Use load macro introduced in RPM 4.12.
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>

View File

@ -1,3 +1,5 @@
%__rubygems_requires %{_rpmconfigdir}/rubygems.req
%__rubygems_provides %{_rpmconfigdir}/rubygems.prov
%__rubygems_path ^%{gem_spec}$
# In non-gem packages, the %%{gem_name} macro is not available and the macro
# stays unexpanded which leads to "invalid regex" error (rhbz#1154067).
%__rubygems_path ^%{?gem_name:%{gem_spec}}%{!?gem_name:this_should_never_match_anything}$