don't use macros in command paths, hardcode them instead

epel9
Paul Howarth 19 years ago
parent 3e7e4b77cc
commit acd2c8791a

@ -1,7 +1,7 @@
Summary: Simple date object for perl
Name: perl-Date-Simple
Version: 3.02
Release: 2%{?dist}
Release: 3%{?dist}
License: Artistic or GPL
Group: Development/Libraries
Url: http://search.cpan.org/dist/Date-Simple/
@ -16,10 +16,10 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%setup -q -n Date-Simple-%{version}
# Artistic license text not included in tarball
%{_bindir}/perldoc -t perlartistic > Artistic
/usr/bin/perldoc -t perlartistic > Artistic
# Spurious exec permissions in files from tarball
%{_bindir}/find lib -type f -exec %{__chmod} -x {} ';'
/usr/bin/find lib -type f -exec %{__chmod} -x {} ';'
%{__chmod} -x ChangeLog COPYING README
# The NoXS.pm file provides a pure-perl alternative to the C implementation
@ -39,9 +39,9 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%install
%{__rm} -rf %{buildroot}
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_bindir}/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
%{_bindir}/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
%{_bindir}/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
%{__chmod} -R u+w %{buildroot}/*
%check
@ -55,6 +55,9 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{_mandir}/man3/Date::Simple*.3pm*
%changelog
* Thu Feb 16 2006 Paul Howarth <paul@city-fan.org> 3.02-3
- don't use macros in command paths, hardcode them instead
* Tue Aug 23 2005 Paul Howarth <paul@city-fan.org> 3.02-2
- point URLs at search.cpan.org instead of cpan.uwinnipeg.ca

Loading…
Cancel
Save