# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir RPM %define pnam Perlonly Summary: RPM::Perlonly - a Perl only implementaion of a RPM header reader Summary(pl.UTF-8): RPM::Perlonly - czysto perlowa implementacja czytnika nagłówków RPM Name: perl-RPM-Perlonly Version: 1.0.1 Release: 4 # same as perl or LGPL License: LGPL or GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a7e064ae957326cfe3b584a3ca6e535f URL: http://search.cpan.org/dist/RPM-Perlonly/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Perl-RPM-Perlonly is a clone of RPM::Header written in only Perl, so it provides a way to read a RPM package on systems where RPM is not installed. Perl-RPM-Perlonly can used as a drop in replacement for RPM::Header, if needed also the other way round. %description -l pl.UTF-8 Moduł RPM-Perlonly to klon RPM::Header napisany w samym Perlu, przez co pozwala odczytywać pakiety RPM na systemach bez zainstalowanego RPM-a. RPM-Perlonly może być w razie potrzeby używany jako zamiennik RPM::Header. %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) %{perl_vendorlib}/%{pdir}/*.pm %{_mandir}/man3/*