rpms/highlight/F-8 highlight.spec,1.30,1.31

Jochen Schmitt s4504kr at fedoraproject.org
Mon Sep 15 17:01:45 UTC 2008


Author: s4504kr

Update of /cvs/extras/rpms/highlight/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7542

Modified Files:
	highlight.spec 
Log Message:
Remove unnec. requieres and provides


Index: highlight.spec
===================================================================
RCS file: /cvs/extras/rpms/highlight/F-8/highlight.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- highlight.spec	8 Sep 2008 15:44:14 -0000	1.30
+++ highlight.spec	15 Sep 2008 17:01:15 -0000	1.31
@@ -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 @@
 %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 @@
 
 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 @@
 %doc ChangeLog AUTHORS README* COPYING TODO examples/
 
 %changelog
+* Thu Sep 11 2008 Tom "spot" Callaway <tcallawa at 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
 




More information about the fedora-extras-commits mailing list