remove BR: perl, use %{_fixperms} macro.

This commit is contained in:
Robin Norwood 2007-10-23 20:04:49 +00:00
parent 8e2d23c1aa
commit 8e8361e78e

View File

@ -1,6 +1,6 @@
Name: perl-DBD-MySQL Name: perl-DBD-MySQL
Version: 4.005 Version: 4.005
Release: 2%{?dist}.1 Release: 3%{?dist}
Summary: A MySQL interface for perl Summary: A MySQL interface for perl
Group: Development/Libraries Group: Development/Libraries
@ -9,7 +9,6 @@ URL: http://search.cpan.org/dist/DBD-mysql/
Source0: http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(DBI) BuildRequires: perl(DBI)
BuildRequires: mysql, mysql-devel, zlib-devel BuildRequires: mysql, mysql-devel, zlib-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
@ -38,7 +37,7 @@ make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
file=$RPM_BUILD_ROOT%{_mandir}/man3/DBD::mysql.3pm file=$RPM_BUILD_ROOT%{_mandir}/man3/DBD::mysql.3pm
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_" iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
@ -64,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Oct 23 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-3
- Use fixperms macro
- Remove BR: perl
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-2.1 * Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-2.1
- add BR: perl(ExtUtils::MakeMaker) - add BR: perl(ExtUtils::MakeMaker)