]> git.pld-linux.org Git - packages/perl-Convert-TNEF.git/blobdiff - perl-Convert-TNEF.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Convert-TNEF.git] / perl-Convert-TNEF.spec
index 1e2dc144094e8d180870cf22fb17f865ef30243b..0c91ed0cc289c32a41b8d814569152374042661a 100644 (file)
@@ -1,44 +1,61 @@
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    Convert
-%define        pnam    TNEF
-Summary:       Convert::TNEF perl module
-Summary(pl):   Modu³ perla Convert::TNEF
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define                pdir    Convert
+%define                pnam    TNEF
+Summary:       Convert::TNEF - Perl module to read TNEF files
+Summary(pl.UTF-8):     Convert::TNEF - moduł Perla do odczytu plików TNEF
 Name:          perl-Convert-TNEF
 Version:       0.17
-Release:       1
-License:       GPL
+Release:       5
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 31cddf42fae9495b4a686b17ec68d7e0
+URL:           http://search.cpan.org/dist/Convert-TNEF/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(MIME::Body) >= 4.109
+BuildRequires: perl-MIME-tools
+%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Convert::TNEF - Perl module to read TNEF files.
+TNEF stands for Transport Neutral Encapsulation Format, and if you've
+ever been unfortunate enough to receive one of these files as an email
+attachment, you may want to use the Convert::TNEF Perl module.
 
-%description -l pl
-Convert::TNEF - modu³ Perla do czytania plików TNEF.
+%description -l pl.UTF-8
+TNEF oznacza niezależny od transportu format enkapsulacji (Transport
+Neutral Encapsulation Format) i jeśli otrzyma się jeden z takich
+plików jako załącznik w e-mailu, może zaistnieć potrzeba posłużenia
+się modułem Perla Convert::TNEF.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc Changes README
 %{_mandir}/man3/*
-%{perl_sitelib}/Convert/TNEF.pm
+%{perl_vendorlib}/Convert/TNEF.pm
This page took 0.098316 seconds and 4 git commands to generate.