]> git.pld-linux.org Git - packages/perl-Text-Quoted.git/blobdiff - perl-Text-Quoted.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-Quoted.git] / perl-Text-Quoted.spec
index 9992a68b35524ad16db86f20f2a6a1476d4ab9ab..7d00a84abb9b74fe59ce56ce7c578ec1eb1f9609 100644 (file)
@@ -1,41 +1,53 @@
 #
 # 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    Text
-%define        pnam    Quoted
-Summary:       Text::Quoted - Extract the structure of a quoted mail message
+%define                pdir    Text
+%define                pnam    Quoted
+Summary:       Text::Quoted - extract the structure of a quoted mail message
+Summary(pl.UTF-8):     Text::Quoted - wydzielenie struktury cytowanej wiadomości pocztowej
 Name:          perl-Text-Quoted
-Version:       1.2
+Version:       2.10
 Release:       1
+# Artistic (README says: same as perl)
 License:       Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: cec22ff657590d1e3dbf89ad17f3f94a
-BuildRequires: perl-devel >= 5.8.0
+Source0:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: de86b498ed91e4a7856615f5f38c943c
+URL:           http://search.cpan.org/dist/Text-Quoted/
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Text-Autoformat
+%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Examines the structure of some text which may contain multiple different levels of quoting, and turns the text into a nested data structure.
+Text::Quoted Perl module examines the structure of some text which may
+contain multiple different levels of quoting, and turns the text into
+a nested data structure.
+
+%description -l pl.UTF-8
+Moduł Perla Text::Quoted analizuje strukturę pewnego tekstu, który
+może zawierać wiele różnych poziomów cytowania i przekształca tekst w
+zagnieżdżoną strukturę danych.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-find -type f | xargs perl -pi -e 's,/usr/local,/usr,g'
 %{__perl} Makefile.PL \
        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
This page took 0.064891 seconds and 4 git commands to generate.