From 104bed9b5ee9e8bf5c323af5d800a8416cc95ac3 Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Sep 15 2008 17:01:15 +0000 Subject: Remove unnec. requieres and provides --- diff --git a/highlight.spec b/highlight.spec index 77230eb..c3e269f 100644 --- a/highlight.spec +++ b/highlight.spec @@ -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 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 2.6.12-1 - New upstream release