]>
Commit | Line | Data |
---|---|---|
7209e8ff JB |
1 | # |
2 | # Conditional build: | |
ebf027c1 | 3 | %bcond_without tests # do not perform "make test" |
7209e8ff | 4 | # |
db87574a | 5 | %include /usr/lib/rpm/macros.perl |
976f14fa | 6 | %define pdir Convert |
7 | %define pnam ASCII-Armour | |
3fe8f6bb | 8 | Summary: Convert::ASCII::Armour - convert binary octets into ASCII armoured messages |
37ee0f1d | 9 | Summary(pl.UTF-8): Convert::ASCII::Armour - konwersja binarnych danych na komunikaty kodowane w ASCII |
8d116f50 JR |
10 | Name: perl-Convert-ASCII-Armour |
11 | Version: 1.4 | |
92b9d5b5 | 12 | Release: 10 |
3fe8f6bb | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
8d116f50 | 15 | Group: Development/Languages/Perl |
8a4bfba1 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
b1ab4ef2 | 17 | # Source0-md5: 7e0e61ff6b014062d6feecaea3f09018 |
97fb2c60 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ebf027c1 | 19 | %if %{with tests} |
7209e8ff JB |
20 | BuildRequires: perl-Compress-Zlib |
21 | BuildRequires: perl-Digest-MD5 | |
22 | BuildRequires: perl-MIME-Base64 | |
23 | %endif | |
ef6a0d2d | 24 | BuildRequires: rpm-perlprov >= 4.1-13 |
edf425ab | 25 | BuildArch: noarch |
8d116f50 JR |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
3fe8f6bb | 29 | Convert::ASCII::Armor Perl module converts hashes of binary octets |
30 | into ASCII messages suitable for transfer over 6-bit clean transport | |
31 | channels. The encoded ASCII resembles PGP's armoured messages, but are | |
32 | in no way compatible with PGP. | |
8d116f50 | 33 | |
37ee0f1d JR |
34 | %description -l pl.UTF-8 |
35 | Moduł Perla Convert::ASCII::Armor konwertuje hashe z binarnymi danymi | |
3fe8f6bb | 36 | na komunikaty kodowane w ASCII, odpowiednie dla transmisji poprzez |
37ee0f1d JR |
37 | 6-bitowe kanały transportowe. Zakodowane ASCII jest podobne do |
38 | komunikatów szyfrowanych PGP, lecz nie jest w żaden sposób zgodne z | |
3fe8f6bb | 39 | PGP. |
33a0c7d2 | 40 | |
8d116f50 | 41 | %prep |
db87574a | 42 | %setup -q -n %{pdir}-%{pnam}-%{version} |
8d116f50 JR |
43 | |
44 | %build | |
ef6a0d2d | 45 | %{__perl} Makefile.PL \ |
aaf7a1f9 | 46 | INSTALLDIRS=vendor |
8d116f50 JR |
47 | %{__make} |
48 | ||
ebf027c1 | 49 | %{?with_tests:%{__make} test} |
7209e8ff | 50 | |
8d116f50 JR |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
81e75d1d | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
8d116f50 JR |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
ef6a0d2d | 62 | %dir %{perl_vendorlib}/Convert/ASCII |
63 | %{perl_vendorlib}/Convert/ASCII/*.pm | |
9a8c7d8f | 64 | %{_mandir}/man3/* |