From 8836d3b6b200d9a5b24347bc4cdc0b96e2ecfd08 Mon Sep 17 00:00:00 2001 From: Chris Grau Date: Sat, 4 Aug 2007 01:41:45 +0000 Subject: [PATCH] - Remove generation of license texts. - Prevent automatic provide of perl(Time::Piece) (#247253). --- perl-Time-Piece-MySQL.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/perl-Time-Piece-MySQL.spec b/perl-Time-Piece-MySQL.spec index 7b02e31..649fbb0 100644 --- a/perl-Time-Piece-MySQL.spec +++ b/perl-Time-Piece-MySQL.spec @@ -1,6 +1,6 @@ Name: perl-Time-Piece-MySQL Version: 0.05 -Release: 3%{?dist} +Release: 4%{?dist} Summary: MySQL-specific methods for Time::Piece Group: Development/Libraries @@ -22,8 +22,16 @@ Time::Piece to add MySQL-specific date-time methods to Time::Piece objects. %prep %setup -q -n Time-Piece-MySQL-%{version} -perldoc -t perlartistic > Artistic -perldoc -t perlgpl > COPYING + +# Filter unwanted Provides: +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} $* |\ + sed -e '/perl(Time::Piece)/d' +EOF + +%define __perl_provides %{_builddir}/Time-Piece-MySQL-%{version}/%{name}-prov +chmod +x %{__perl_provides} %build @@ -49,12 +57,16 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc Artistic COPYING Changes README +%doc Changes README %{perl_vendorlib}/Time/ %{_mandir}/man3/*.3* %changelog +* Fri Aug 3 2007 Chris Grau 0.05-4 +- Remove generation of license texts. +- Prevent automatic provide of perl(Time::Piece) (#247253). + * Thu Sep 14 2006 Chris Grau 0.05-3 - Rebuild for FC-6.