rpms/perl-FileHandle-Unget/devel perl-FileHandle-Unget.spec, 1.12, 1.13

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: pghmcfc

Update of /cvs/pkgs/rpms/perl-FileHandle-Unget/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10244

Modified Files:
	perl-FileHandle-Unget.spec 
Log Message:
* Fri Feb 19 2010 Paul Howarth <paul@xxxxxxxxxxxx> 0.1623-3
- Fix versioned provide for perl(FileHandle::Unget)
- Add buildreq perl(Devel::Leak) for additional test coverage
- Use %{_fixperms} macro instead of our own %{__chmod} incantation



Index: perl-FileHandle-Unget.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-FileHandle-Unget/devel/perl-FileHandle-Unget.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- perl-FileHandle-Unget.spec	7 Dec 2009 01:54:11 -0000	1.12
+++ perl-FileHandle-Unget.spec	19 Feb 2010 15:49:28 -0000	1.13
@@ -1,13 +1,7 @@
-# Note that versions of FileHandle::Unget later than 0.14 use Scalar::Util,
-# which is built-in to Fedora/Red Hat perl packages. Unfortunately, version
-# 0.14 of Scalar::Util (required), only appears in Fedora Core >= 3 and Red Hat
-# Enterprise Linux >= 4 packages, hence this version is incompatible with
-# older OS releases.
-
 Summary:	A FileHandle that supports ungetting of multiple bytes
 Name:		perl-FileHandle-Unget
 Version:	0.1623
-Release:	2%{?dist}
+Release:	3%{?dist}
 License:	GPL+
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/FileHandle-Unget/
@@ -15,8 +9,9 @@ Source0:	http://search.cpan.org/CPAN/aut
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 BuildRequires:	perl(Scalar::Util) >= 1.14
+BuildRequires:	perl(Devel::Leak), perl(ExtUtils::MakeMaker), perl(Test::More)
 Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More)
+Provides:	perl(FileHandle::Unget) = %{version}
 
 %description
 FileHandle::Unget is a drop-in replacement for FileHandle that allows more
@@ -27,6 +22,10 @@ string of bytes back on the input.
 %prep
 %setup -q -n FileHandle-Unget-%{version}
 
+# Auto provides aren't clever enough for what FileHandle::Unget does
+%global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -v '^perl(FileHandle::Unget)'"
+%define __perl_provides %{provfilt}
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 %{__make} %{?_smp_mflags}
@@ -36,7 +35,7 @@ string of bytes back on the input.
 %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
 /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
 /usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
-%{__chmod} -R u+w %{buildroot}/*
+%{_fixperms} %{buildroot}
 
 %check
 %{__make} test
@@ -51,8 +50,13 @@ string of bytes back on the input.
 %{_mandir}/man3/FileHandle::Unget.3pm*
 
 %changelog
-* Mon Dec  7 2009 Stepan Kasal <skasal@xxxxxxxxxx> - 0.1623-2
-- rebuild against perl 5.10.1
+* Fri Feb 19 2010 Paul Howarth <paul@xxxxxxxxxxxx> 0.1623-3
+- Fix versioned provide for perl(FileHandle::Unget)
+- Add buildreq perl(Devel::Leak) for additional test coverage
+- Use %%{_fixperms} macro instead of our own %%{__chmod} incantation
+
+* Mon Dec  7 2009 Stepan Kasal <skasal@xxxxxxxxxx> 0.1623-2
+- Rebuild against perl 5.10.1
 
 * Tue Sep  1 2009 Paul Howarth <paul@xxxxxxxxxxxx> 0.1623-1
 - Update to 0.1623

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux