# # Conditional build: %bcond_with tests # perform "make test" (seem not to work - for unknown reason) # %define pdir Test %define pnam Prereq Summary: Test::Prereq Perl module - check if Makefile.PL has the right pre-requisites Summary(pl.UTF-8): Moduł Perla Test::Prereq - sprawdzanie, czy spełnione są zależności podane w Makefile.PL Name: perl-Test-Prereq Version: 1.037 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: d38be5a57b38cf500a7c2a212fb697e9 URL: http://search.cpan.org/dist/Test-Prereq/ BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-File-Find-Rule BuildRequires: perl-Module-CoreList BuildRequires: perl-Test-Manifest >= 0.9 BuildRequires: perl-Test-Pod BuildRequires: perl-Test-Simple BuildRequires: perl(Test::Builder::Tester) %endif BuildRequires: rpm-perlprov >= 4.1-13 Obsoletes: perl-Test-Prereq-Build BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The prereq_ok() function examines the modules it finds in blib/lib/ and the test files it finds in t/. It figures out which modules they use, skips the modules that are in the Perl core, and compares the remaining list of modules to those in the PREREQ_PM section of Makefile.PL. THIS IS ALPHA SOFTWARE. IT HAS SOME PROBLEMS. %description -l pl.UTF-8 Funkcja prereq_ok() sprawdza moduły, które znajdzie w blib/lib/ oraz pliki testów, które znajdzie w t/. Określa, których modułów używają, pomija moduły należące do podstawowego Perla i porównuje listę modułów z tymi podanymi w sekcji PREREQ_PM w Makefile.PL. TO JEST OPROGRAMOWANIE ALPHA. MA TROCHĘ PROBLEMÓW. %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}/Test/*.pm %dir %{perl_vendorlib}/Test/Prereq %{perl_vendorlib}/Test/Prereq/*.pm %{_mandir}/man3/*