]> 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 08f4014a9fca16d8d96aeca3779b73432a377df9..9d762086d826f2138dfaa396715b822954858a78 100644 (file)
@@ -1,52 +1,58 @@
-%define                perl_sitelib    %(eval "`perl -V:installsitelib`"; echo $installsitelib)
-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:       3
-Copyright:     GPL
+Version:       1.05
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-Wrapper-%{version}.tar.gz
-BuildRequires: perl >= 5.005_03-10
-%requires_eq   perl
-Requires:      %{perl_sitearch}
-BuildRoot:     /tmp/%{name}-%{version}-root
+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
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Text/Wrapper
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README}.gz
-
-%{perl_sitelib}/Text/Wrapper.pm
-%{perl_sitearch}/auto/Text/Wrapper
-
+%doc Changes README
+%{perl_vendorlib}/Text/Wrapper.pm
 %{_mandir}/man3/*
This page took 0.063583 seconds and 4 git commands to generate.