# # Conditional build: # _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 Summary(pl): Text::Quoted - wydzielenie struktury cytowanej wiadomości pocztowej Name: perl-Text-Quoted Version: 1.2 Release: 1 # same as perl License: GPL v1+ or 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 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description 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 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} %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 %{perl_vendorlib}/Text/Quoted.pm %{_mandir}/man3/*