0.23 bump

This commit is contained in:
Petr Šabata 2012-05-09 09:47:39 +02:00
parent 5c44293d96
commit a2326da131
3 changed files with 30 additions and 29 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Convert-ASN1-0.22.tar.gz
/Convert-ASN1-0.23.tar.gz

View File

@ -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 <contyk@redhat.com> - 0.23-1
- 0.23 bump
- Modernize spec
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

View File

@ -1 +1 @@
64a555e44adc79d92072b9fc7a6779c4 Convert-ASN1-0.22.tar.gz
752e2cb5edc65aca079a35da11cb0201 Convert-ASN1-0.23.tar.gz