]>
Commit | Line | Data |
---|---|---|
04f71acd | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
d789cd59 | 4 | |
5dd71bcd | 5 | %define pdir Convert |
6 | %define pnam BER | |
d789cd59 | 7 | %include /usr/lib/rpm/macros.perl |
ea08d52d | 8 | Summary: Convert::BER Perl module - ASN.1 Basic Encoding Rules |
b5ac6079 | 9 | Summary(pl.UTF-8): Moduł Perla Convert::BER - podstawowe reguły kodowania ASN.1 |
32d58983 | 10 | Name: perl-Convert-BER |
c03868cb | 11 | Version: 1.3101 |
2d3d771b | 12 | Release: 4 |
ea08d52d | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
32d58983 | 15 | Group: Development/Languages/Perl |
23721675 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
5896c4f2 | 17 | # Source0-md5: 00fd5e5a98d4194da0e980186cba6292 |
d789cd59 | 18 | URL: http://search.cpan.org/dist/Convert-BER/ |
562b2786 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
d789cd59 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
04f71acd | 21 | %if %{with tests} |
26e85099 | 22 | BuildRequires: perl-Math-BigInteger |
c03868cb | 23 | %endif |
53e7865d | 24 | BuildArch: noarch |
d57d09a4 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32d58983 | 26 | |
27 | %description | |
ea08d52d | 28 | Convert::BER provides an object oriented interface to encoding and |
29 | decoding data into packets using the ASN.1 Basic Encoding Rules (BER) | |
32d58983 | 30 | |
607e889b JR |
31 | %description -l pl.UTF-8 |
32 | Convert::BER udostępnia obiektowy interfejs kodowania i dekodowania | |
33 | danych przy wykorzystaniu ASN.1 BER (podstawowych reguł kodowania - | |
ea08d52d | 34 | Basic Encoding Rules). |
32d58983 | 35 | |
36 | %prep | |
2e1240bb | 37 | %setup -q -n %{pdir}-%{pnam}-%{version} |
32d58983 | 38 | |
39 | %build | |
40117703 | 40 | %{__perl} Makefile.PL \ |
722e2b8c | 41 | INSTALLDIRS=vendor |
5e6e2067 | 42 | %{__make} |
32d58983 | 43 | |
04f71acd | 44 | %{?with_tests:%{__make} test} |
c03868cb | 45 | |
32d58983 | 46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
32d58983 | 48 | |
cbd9e1f3 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
32d58983 | 51 | |
32d58983 | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
3cdda015 | 57 | %doc ChangeLog README |
40117703 | 58 | %{perl_vendorlib}/Convert/BER.pm |
32d58983 | 59 | %{_mandir}/man3/* |