]>
Commit | Line | Data |
---|---|---|
b5c9edc6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
bdb22e57 | 5 | %define pdir Convert |
6 | %define pnam ASN1 | |
61ec93b8 | 7 | Summary: Convert::ASN1 - ASN.1 encode/decode library |
118cdadf | 8 | Summary(pl.UTF-8): Convert::ASN1 - biblioteka kodująca/rozkodowująca ASN.1 |
7218fdb5 | 9 | Name: perl-Convert-ASN1 |
cb36937d | 10 | Version: 0.27 |
d0183204 | 11 | Release: 1 |
61ec93b8 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
7218fdb5 | 14 | Group: Development/Languages/Perl |
b5c9edc6 | 15 | Source0: http://www.cpan.org/modules/by-module/Convert/%{pdir}-%{pnam}-%{version}.tar.gz |
cb36937d | 16 | # Source0-md5: 68723e96be0b258a9e20480276e8a62c |
1973d402 | 17 | URL: http://search.cpan.org/dist/Convert-ASN1/ |
b5c9edc6 | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
8094df1c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
bb3f1f5a | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
b5c9edc6 JB |
21 | BuildRequires: rpmbuild(macros) >= 1.636 |
22 | %if %{with tests} | |
23 | BuildRequires: perl-Math-BigInt >= 1.997 | |
24 | BuildRequires: perl-Test-Simple >= 0.90 | |
25 | %endif | |
43f960dd | 26 | BuildArch: noarch |
7218fdb5 JR |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
b5c9edc6 | 29 | %define _noautoreq_perl Convert::ASN1::Debug Convert::ASN1::IO Convert::ASN1::_decode Convert::ASN1::_encode |
db40df95 | 30 | |
7218fdb5 JR |
31 | %description |
32 | I consider Convert::ASN1 a replacement for my earlier Convert::BER | |
33 | module. While ASN1.pm is not as flexable as BER.pm, because PDUs must | |
1b46c7e5 | 34 | be described up front, it is also more powerful. For example an LDAP |
5b504b32 | 35 | filter is a recursive structure, BER.pm cannot encode or decode this |
36 | in a single pass, ASN1.pm can. | |
7218fdb5 JR |
37 | |
38 | Convert::ASN1 will parse ASN.1 descriptions and will encode from and | |
39 | decode to perl data structures using a hierarchy of references. | |
40 | ||
d292e570 JR |
41 | %description -l pl.UTF-8 |
42 | Convert::ASN1 ma być zamiennikiem wcześniejszego Convert::BER tego | |
43 | samego autora. ASN1.pm nie jest tak elastyczny jak BER.pm, ponieważ | |
44 | PDU muszą być opisane, jest bardziej użyteczny. Na przykład filtr LDAP | |
45 | jest strukturą rekurencyjną, BER.pm nie może kodować ani dekodować | |
46 | takiej w jednym przebiegu, ASN1.pm może. | |
992efe87 JB |
47 | |
48 | Convert::ASN1 parsuje opisy ASN.1 i koduje/dekoduje do perlowych | |
d292e570 | 49 | struktur danych używając hierarchii referencji. |
992efe87 | 50 | |
7218fdb5 | 51 | %prep |
56513c35 | 52 | %setup -q -n %{pdir}-%{pnam}-%{version} |
7218fdb5 JR |
53 | |
54 | %build | |
bb3f1f5a | 55 | %{__perl} Makefile.PL \ |
4ca7cb0f | 56 | INSTALLDIRS=vendor |
7218fdb5 JR |
57 | %{__make} |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
1b46c7e5 | 62 | %{__make} pure_install \ |
db40df95 | 63 | DESTDIR=$RPM_BUILD_ROOT |
7218fdb5 | 64 | |
b5c9edc6 | 65 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Convert/ASN1.pod |
1b46c7e5 | 66 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Convert/ASN1/.packlist |
b5c9edc6 JB |
67 | |
68 | %{?with_tests:%{__make} test} | |
1b46c7e5 | 69 | |
7218fdb5 JR |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
b5c9edc6 | 75 | %doc ChangeLog README.md |
bb3f1f5a | 76 | %dir %{perl_vendorlib}/Convert/ASN1 |
77 | %{perl_vendorlib}/Convert/ASN1/*.pm | |
78 | %{perl_vendorlib}/Convert/ASN1.pm | |
b5c9edc6 | 79 | %{_mandir}/man3/Convert::ASN1*.3pm* |