fix broken provides/requires
This commit is contained in:
parent
7b11279887
commit
93705bd437
@ -1,7 +1,7 @@
|
||||
Name: highlight
|
||||
Summary: Universal source code to formatted text converter
|
||||
Version: 2.6.12
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
Group: Development/Tools
|
||||
License: GPLv2
|
||||
@ -26,6 +26,23 @@ It is easily possible to create new language definitions and colour themes.
|
||||
%setup -q
|
||||
%patch1 -p1 -b .mak
|
||||
|
||||
# Provides: exclude perl(highlight_pipe) from example
|
||||
cat <<__EOF__ > %{name}-perl.prov
|
||||
#!/bin/sh
|
||||
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(highlight_pipe)$'
|
||||
__EOF__
|
||||
%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-perl.prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
# Requires: exclude perl(IPC::Open3) from example
|
||||
cat <<__EOF__ > %{name}-perl.req
|
||||
#!/bin/sh
|
||||
/usr/lib/rpm/perl.req \$* | grep -v '^perl(IPC::Open3)$'
|
||||
__EOF__
|
||||
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-perl.req
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
|
||||
|
||||
@ -34,6 +51,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
# Packaging this example causes lots of incorrect perl provides and
|
||||
# requires. Since it isn't going to work out of the box, I'm nuking it.
|
||||
rm -rf examples/plugins/movabletype
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -49,6 +70,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc ChangeLog AUTHORS README* COPYING TODO examples/
|
||||
|
||||
%changelog
|
||||
* Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.12-2
|
||||
- don't package broken examples, causes bogus perl provides/requires
|
||||
- don't claim to Provide: perl(highlight_pipe)
|
||||
- don't claim to Requires: perl(IPC::Open3)
|
||||
|
||||
* Mon Aug 18 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.12-1
|
||||
- New upstream release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user