diff --git a/README.md b/README.md index b71117e..38178ba 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Convert-ASN1 +Convert::ASN1 will parse ASN.1 descriptions and will encode from and decode to perl data structures using a hierarchy of references. + diff --git a/perl-Convert-ASN1.spec b/perl-Convert-ASN1.spec new file mode 100644 index 0000000..edf61e2 --- /dev/null +++ b/perl-Convert-ASN1.spec @@ -0,0 +1,72 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Convert-ASN1 +Version: 0.26 +Release: 2mamba +Summary: Convert::ASN1 - Pars ASN.1 descriptions and encode from and decode to perl data structures +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/authors/id/G/GB/GBARR/Convert-ASN1-%{version}.tar.gz +License: Artistic, GPL +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-Digest-HMAC >= 1.01 +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Convert::ASN1 will parse ASN.1 descriptions and will encode from and decode to perl data structures using a hierarchy of references. + +%prep +%setup -q -n Convert-ASN1-%{version} + +%build +echo "y" | perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Mon Nov 12 2012 Silvan Calarco 0.26-2mamba +- perl 5.16 mass rebuild + +* Sat Aug 11 2012 Automatic Build System 0.26-1mamba +- automatic version update by autodist + +* Sat May 05 2012 Automatic Build System 0.23-1mamba +- automatic version update by autodist + +* Thu Feb 05 2009 Silvan Calarco 0.22-1mamba +- automatic update by autodist + +* Tue Nov 04 2008 Silvan Calarco 0.21-2mamba +- automatic rebuild by autodist + +* Thu Sep 13 2007 Aleph0 0.21-1mamba +- update to 0.21 + +* Wed May 10 2006 Stefano Cotta Ramusino 0.20-1qilnx +- update to version 0.20 by autospec + +* Thu Jan 18 2005 Silvan Calarco 0.18-2qilnx +- fix requirement for perl (>= instead of > ) + +* Fri Apr 30 2004 Silvan Calarco 0.18-1qilnx +- First build