3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: RPM::Specfile - Perl extension for creating RPM specfiles
9 Summary(pl): RPM::Specfile - rozszerzenie Perla do tworzenia plików .spec dla RPM-a
10 Name: perl-%{pdir}-%{pnam}
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 84e35c834944ef170fb7555304460516
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Simple module for creation of RPM Spec files. Used by cpanflute2 to
24 turn CPAN tarballs into RPM modules. See the included script
25 cpanflute2 for usage; documentation coming soon.
28 Prosty modu³ do tworzenia plików .spec dla RPM-a. Jest u¿ywany przez
29 cpanflute2 do zamiany paczek CPAN na modu³y RPM. Sposób u¿ycia mo¿na
30 znale¼æ w za³±czonym skrypcie cpanflute2 - dokumentacja wkrótce.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 DESTDIR=$RPM_BUILD_ROOT
48 mv $RPM_BUILD_ROOT%{_bindir}/cpanflute2 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/*.pm
58 %dir %{_examplesdir}/%{name}-%{version}
59 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*