You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.4 KiB
77 lines
2.4 KiB
Summary: Simple date object for perl
|
|
Name: perl-Date-Simple
|
|
Version: 3.02
|
|
Release: 5%{?dist}
|
|
License: Artistic or GPL
|
|
Group: Development/Libraries
|
|
Url: http://search.cpan.org/dist/Date-Simple/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/Date-Simple-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
%if 0%{?fedora} > 6
|
|
BuildRequires: perl-devel
|
|
%endif
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n Date-Simple-%{version}
|
|
|
|
# Artistic license text not included in tarball
|
|
/usr/bin/perldoc -t perlartistic > Artistic
|
|
|
|
# Spurious exec permissions in files from tarball
|
|
/usr/bin/find lib -type f -exec %{__chmod} -x {} ';'
|
|
%{__chmod} -x ChangeLog COPYING README Simple.xs
|
|
|
|
# The NoXS.pm file provides a pure-perl alternative to the C implementation
|
|
# of the module. This results in duplicate "Provides:" entries, which rpmlint
|
|
# whinges about. This kludge removes the redundant file, which has the added
|
|
# benefit of shutting up rpmlint.
|
|
%{__rm} -f lib/Date/Simple/NoXS.pm
|
|
%{__sed} -i -e '/^lib\/Date\/Simple\/NoXS\.pm$/d' MANIFEST
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
/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} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
|
|
%{__chmod} -R u+w %{buildroot}/*
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Artistic ChangeLog COPYING README
|
|
%{perl_vendorarch}/Date/
|
|
%{perl_vendorarch}/auto/Date/
|
|
%{_mandir}/man3/Date::Simple*.3pm*
|
|
|
|
%changelog
|
|
* Thu Mar 8 2007 Paul Howarth <paul@city-fan.org> 3.02-5
|
|
- Buildrequire perl-devel for Fedora 7 onwards
|
|
- Fix argument order for find with -depth
|
|
- Fix permissions in debuginfo
|
|
|
|
* Tue Aug 29 2006 Paul Howarth <paul@city-fan.org> 3.02-4
|
|
- FE6 mass rebuild
|
|
|
|
* 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
|
|
|
|
* Tue Aug 23 2005 Paul Howarth <paul@city-fan.org> 3.02-1
|
|
- initial package build
|