# # Conditional build: %bcond_without tests # do not perform "make test" # %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: 2.10 Release: 1 # Artistic (README says: same as perl) License: Artistic Group: Development/Languages/Perl 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 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 %{__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 %{perl_vendorlib}/Text/Quoted.pm %{_mandir}/man3/*