From 7218fdb5f5e5584c04084f05259aea3311625d7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 30 Apr 2001 14:59:01 +0000 Subject: [PATCH 1/1] - initial revision Changed files: perl-Convert-ASN1.spec -> 1.1 --- perl-Convert-ASN1.spec | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 perl-Convert-ASN1.spec diff --git a/perl-Convert-ASN1.spec b/perl-Convert-ASN1.spec new file mode 100644 index 0000000..94b2614 --- /dev/null +++ b/perl-Convert-ASN1.spec @@ -0,0 +1,50 @@ +%define _noautoreq "perl(Convert::ASN1::Debug)" "perl(Convert::ASN1::IO)" "perl(Convert::ASN1::_decode)" "perl(Convert::ASN1::_encode)" +%include /usr/lib/rpm/macros.perl +Summary: Convert-ASN1 perl module +Summary(pl): Modu³ perla Convert-ASN1 +Name: perl-Convert-ASN1 +Version: 0.10 +Release: 1 +License: GPL +Group: Development/Languages/Perl +Group(de): Entwicklung/Sprachen/Perl +Group(pl): Programowanie/Jêzyki/Perl +Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Convert/Convert-ASN1-%{version}.tar.gz +BuildRequires: rpm-perlprov >= 3.0.3-16 +BuildRequires: perl >= 5.6 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +I consider Convert::ASN1 a replacement for my earlier Convert::BER +module. While ASN1.pm is not as flexable as BER.pm, because PDUs must +be described up fronta, it is also more powerful. For example an LDAP +filter is a recursive structure, BER.pm cannot encode or decode this in +a single pass, ASN1.pm can. + +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 +perl Makefile.PL +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install DESTDIR=$RPM_BUILD_ROOT + +gzip -9nf ChangeLog README + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc *.gz htdocs/Convert/*.html +%dir %{perl_sitelib}/Convert/ASN1 +%{perl_sitelib}/Convert/ASN1/*.pm +%{perl_sitelib}/Convert/ASN1.pm +%{_mandir}/man3/* -- 2.44.0