1 %include /usr/lib/rpm/macros.perl
2 Summary: PostScript perl module
3 Summary(pl.UTF-8): Moduł perla PostScript
8 License: GPL v1+ or Artistic
9 Group: Development/Languages/Perl
10 Source0: http://www.cpan.org/modules/by-module/PostScript/PostScript-%{version}.tar.gz
11 # Source0-md5: 2a91cc23f2d8958e063f7ff09163faa0
12 Patch0: %{name}-paths.patch
13 BuildRequires: rpm-perlprov >= 4.1-13
14 BuildRequires: perl-devel >= 1:5.8.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 PostScript - module for generating PostScript documents.
21 %description -l pl.UTF-8
22 PostScript - moduł do tworzenia dokumentów w formacie PostScript.
25 %setup -q -n PostScript-%{version}
29 %{__perl} Makefile.PL \
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
38 DESTDIR=$RPM_BUILD_ROOT
39 install example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %{perl_vendorlib}/PostScript/*.pm
49 %dir %{_examplesdir}/%{name}-%{version}
50 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl