fix specfile issues.

This commit is contained in:
Robin Norwood 2007-10-24 21:15:44 +00:00
parent 8e8361e78e
commit 06c04f3f83

View File

@ -1,6 +1,6 @@
Name: perl-DBD-MySQL
Version: 4.005
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A MySQL interface for perl
Group: Development/Libraries
@ -25,7 +25,6 @@ An implementation of DBI for MySQL for Perl.
find . -type f -exec chmod -x {} ';'
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" --ssl
make %{?_smp_mflags}
@ -39,9 +38,11 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
file=$RPM_BUILD_ROOT%{_mandir}/man3/DBD::mysql.3pm
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
mv -f "${file}_" "$file"
for file in $RPM_BUILD_ROOT%{_mandir}/man3/DBD::mysql.3pm \
ChangeLog; do
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
mv -f "${file}_" "$file"
done
%check
@ -63,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-4
- Fix utf-8 rpmlint warning
* Tue Oct 23 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-3
- Use fixperms macro
- Remove BR: perl