#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir Convert
%define pnam ASCII-Armour
-Summary: Convert::ASCII::Armour Perl module
-Summary(cs): Modul Convert::ASCII::Armour pro Perl
-Summary(da): Perlmodul Convert::ASCII::Armour
-Summary(de): Convert::ASCII::Armour Perl Modul
-Summary(es): Módulo de Perl Convert::ASCII::Armour
-Summary(fr): Module Perl Convert::ASCII::Armour
-Summary(it): Modulo di Perl Convert::ASCII::Armour
-Summary(ja): Convert::ASCII::Armour Perl ¥â¥¸¥å¡¼¥ë
-Summary(ko): Convert::ASCII::Armour ÆÞ ¸ðÁÙ
-Summary(no): Perlmodul Convert::ASCII::Armour
-Summary(pl): Modu³ Perla Convert::ASCII::Armour
-Summary(pt): Módulo de Perl Convert::ASCII::Armour
-Summary(pt_BR): Módulo Perl Convert::ASCII::Armour
-Summary(ru): íÏÄÕÌØ ÄÌÑ Perl Convert::ASCII::Armour
-Summary(sv): Convert::ASCII::Armour Perlmodul
-Summary(uk): íÏÄÕÌØ ÄÌÑ Perl Convert::ASCII::Armour
-Summary(zh_CN): Convert::ASCII::Armour Perl Ä£¿é
+Summary: Convert::ASCII::Armour - convert binary octets into ASCII armoured messages
+Summary(pl.UTF-8): Convert::ASCII::Armour - konwersja binarnych danych na komunikaty kodowane w ASCII
Name: perl-Convert-ASCII-Armour
Version: 1.4
Release: 10
-License: Artistic or GPL
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 7e0e61ff6b014062d6feecaea3f09018
-BuildRequires: perl-devel >= 5.6
-%if 0%{!?_without_tests:1}
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
BuildRequires: perl-Compress-Zlib
BuildRequires: perl-Digest-MD5
BuildRequires: perl-MIME-Base64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Convert::ASCII::Armor - Convert binary octets into ASCII armoured
-messages.
+Convert::ASCII::Armor Perl module converts hashes of binary octets
+into ASCII messages suitable for transfer over 6-bit clean transport
+channels. The encoded ASCII resembles PGP's armoured messages, but are
+in no way compatible with PGP.
-%description -l pl
-Convert::ASCII::Armor - konwertuje binarne dane na wiadomo¶ci kodowane
-w ASCII.
+%description -l pl.UTF-8
+Moduł Perla Convert::ASCII::Armor konwertuje hashe z binarnymi danymi
+na komunikaty kodowane w ASCII, odpowiednie dla transmisji poprzez
+6-bitowe kanały transportowe. Zakodowane ASCII jest podobne do
+komunikatów szyfrowanych PGP, lecz nie jest w żaden sposób zgodne z
+PGP.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT