#
# Conditional build:
%bcond_without tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+
%define pdir RTF
%define pnam Parser
+%include /usr/lib/rpm/macros.perl
Summary: RTF::Parser - RTF Processor
Summary(pl.UTF-8): RTF::Parser - procesor dokumentów w formacie RTF
Name: perl-RTF-Parser
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 249eda70ecb9fe5e9231d31c53587b31
Patch0: %{name}-paths.patch
-BuildRequires: rpm-perlprov >= 4.1-13
+URL: http://search.cpan.org/dist/RTF-Parser/
BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRequires: perl-RTF-Tokenizer
%endif
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT