From a2326da131663330e178ed2f60916fdbbe28d2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 9 May 2012 09:47:39 +0200 Subject: [PATCH] 0.23 bump --- .gitignore | 1 + perl-Convert-ASN1.spec | 56 +++++++++++++++++++++--------------------- sources | 2 +- 3 files changed, 30 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index d94b5cf..2e20172 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Convert-ASN1-0.22.tar.gz +/Convert-ASN1-0.23.tar.gz diff --git a/perl-Convert-ASN1.spec b/perl-Convert-ASN1.spec index a6d9e22..485220c 100644 --- a/perl-Convert-ASN1.spec +++ b/perl-Convert-ASN1.spec @@ -1,59 +1,59 @@ Summary: ASN.1 Encode/Decode library Name: perl-Convert-ASN1 -Version: 0.22 -Release: 7%{?dist} - +Version: 0.23 +Release: 1%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Convert-ASN1/ Source0: http://www.cpan.org/authors/id/G/GB/GBARR/Convert-ASN1-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch +BuildRequires: perl(constant) +BuildRequires: perl(Carp) +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(Socket) +BuildRequires: perl(Time::Local) +# Tests only +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(Math::BigInt) >= 1.997 +BuildRequires: perl(Test::More) >= 0.90 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Indented requires, not autodetected at the moment +Requires: perl(Carp) +Requires: perl(Encode) +Requires: perl(Time::Local) %description Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER rules. - %prep %setup -q -n Convert-ASN1-%{version} -# Provides: exclude perl(Convert::ASN1) -cat <<__EOF__ > %{name}-perl.prov -#!/bin/sh -/usr/lib/rpm/perl.prov \$* | grep -v '^perl(Convert::ASN1)$' -__EOF__ -%define __perl_provides %{_builddir}/Convert-ASN1-%{version}/%{name}-perl.prov -chmod +x %{__perl_provides} - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf $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 -depth -type d -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) -%doc ChangeLog README examples/ +%doc ChangeLog LICENSE OldChanges README examples/ %{perl_vendorlib}/Convert/ %{_mandir}/man3/*.3pm* - %changelog +* Mon May 07 2012 Petr Ĺ abata - 0.23-1 +- 0.23 bump +- Modernize spec + * Fri Jan 13 2012 Fedora Release Engineering - 0.22-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index 5e9b31b..b24ef70 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -64a555e44adc79d92072b9fc7a6779c4 Convert-ASN1-0.22.tar.gz +752e2cb5edc65aca079a35da11cb0201 Convert-ASN1-0.23.tar.gz