Update to 2.07

- New upstream release 2.07
  - SvUPGRADE was changed to a statement
- This release by DPARIS -> update source URL
- Changes file dropped upstream
- Drop %defattr, redundant since rpm 4.4
- Make %files list more explicit
- Don't need to remove empty directories from the buildroot
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
epel9
Paul Howarth 12 years ago
parent 01d557c49c
commit a5733ff942

3
.gitignore vendored

@ -1,2 +1 @@
Crypt-DES-2.05.tar.gz /Crypt-DES-[0-9.]*.tar.gz
/Crypt-DES-2.05_002.tar.gz

@ -1,13 +1,12 @@
%global cpan_version 2.05_002
Name: perl-Crypt-DES Name: perl-Crypt-DES
Version: %(echo '%{cpan_version}' | tr _ .) Version: 2.07
Release: 2%{?dist} Release: 1%{?dist}
Summary: Perl DES encryption module Summary: Perl DES encryption module
License: BSD License: BSD
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Crypt-DES/ URL: http://search.cpan.org/dist/Crypt-DES/
Source0: http://www.cpan.org/authors/id/D/DA/DAVIDO/Crypt-DES-%{cpan_version}.tar.gz Source0: http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
@ -21,7 +20,7 @@ BuildRequires: perl(Benchmark)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
# Optional tests: # Optional tests:
BuildRequires: perl(Crypt::CBC) > 1.22 BuildRequires: perl(Crypt::CBC) > 1.22
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter} %{?perl_default_filter}
@ -29,22 +28,18 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
DES encryption module. DES encryption module.
%prep %prep
%setup -q -n Crypt-DES-%{cpan_version} %setup -q -n Crypt-DES-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
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' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test make test
@ -53,13 +48,23 @@ make test
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %doc COPYRIGHT README
%doc Changes COPYRIGHT README %{perl_vendorarch}/auto/Crypt/
%{perl_vendorarch}/auto/* %{perl_vendorarch}/Crypt/
%{perl_vendorarch}/Crypt* %{_mandir}/man3/Crypt::DES.3pm*
%{_mandir}/man3/*
%changelog %changelog
* Thu Oct 3 2013 Paul Howarth <paul@city-fan.org> - 2.07-1
- Update to 2.07
- SvUPGRADE was changed to a statement
- This release by DPARIS -> update source URL
- Changes file dropped upstream
- Drop %%defattr, redundant since rpm 4.4
- Make %%files list more explicit
- Don't need to remove empty directories from the buildroot
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05.002-2 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05.002-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@ -92,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.05-12 * Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.05-12
- 661697 rebuild for fixing problems with vendorach/lib - Rebuild to fix problems with vendorarch/lib (#661697)
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.05-11 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.05-11
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0

@ -1 +1 @@
e9a55f450730593b7165c58ec3acdbc2 Crypt-DES-2.05_002.tar.gz e845d24cf383ca4a30a3380a2735feac Crypt-DES-2.07.tar.gz

Loading…
Cancel
Save