# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %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.02 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a0cdfe6e9e9627db147b3970d3fcad4d 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 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.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 %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Text/Wrapper.pm %{_mandir}/man3/*