]> git.pld-linux.org Git - packages/perl-Text-Wrapper.git/blobdiff - perl-Text-Wrapper.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-Wrapper.git] / perl-Text-Wrapper.spec
index f238b58dc4966d6ba581660705685ef61ee27b74..9d762086d826f2138dfaa396715b822954858a78 100644 (file)
@@ -1,45 +1,58 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       Text-Wrapper perl module
-Summary(pl):   Modu³ perla Text-Wrapper
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%define                pdir    Text
+%define                pnam    Wrapper
+Summary:       Text::Wrapper - simple word wrapping routine
+Summary(pl.UTF-8):     Text::Wrapper - proste zawijanie linii
 Name:          perl-Text-Wrapper
-Version:       1.000
-Release:       4
-License:       GPL
+Version:       1.05
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-Wrapper-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+Source0:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c5a523a5a271fd0c2844100ec8ced8d3
+URL:           http://search.cpan.org/dist/Text-Wrapper/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Text-Wrapper - provides simple word wrapping.
+Text::Wrapper Perl Module provides simple word wrapping.  It breaks
+long lines, but does not alter spacing or remove existing line breaks. 
+If you're looking for more sophisticated text formatting, try the
+Text::Format module.
 
-%description -l pl
-Text-Wrapper udostêpnia proste zawijanie linii.
+%description -l pl.UTF-8
+Moduł Perla Text::Wrapper udostępnia proste zawijanie wierszy. Łamie
+długie wiersz, ale nie zmienia odstępów ani nie usuwa istniejących
+znaków nowego wiersza. Bardziej wyszukane formatowanie tekstu jest
+możliwe przy zastosowaniu modułu Text::Format.
 
 %prep
-%setup -q -n Text-Wrapper-%{version}
+%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
-%{perl_sitelib}/Text/Wrapper.pm
+%doc Changes README
+%{perl_vendorlib}/Text/Wrapper.pm
 %{_mandir}/man3/*
This page took 0.227546 seconds and 4 git commands to generate.