# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Test %define pnam Simple Summary: Test::Simple Perl module Summary(cs): Modul Test::Simple pro Perl Summary(da): Perlmodul Test::Simple Summary(de): Test::Simple Perl Modul Summary(es): Módulo de Perl Test::Simple Summary(fr): Module Perl Test::Simple Summary(it): Modulo di Perl Test::Simple Summary(ja): Test::Simple Perl ĄâĄ¸ĄĺˇĽĄë Summary(ko): Test::Simple ĆŢ ¸đÁŮ Summary(no): Perlmodul Test::Simple Summary(pl): Moduł Perla Test::Simple Summary(pt): Módulo de Perl Test::Simple Summary(pt_BR): Módulo Perl Test::Simple Summary(ru): íĎÄŐĚŘ ÄĚŃ Perl Test::Simple Summary(sv): Test::Simple Perlmodul Summary(uk): íĎÄŐĚŘ ÄĚŃ Perl Test::Simple Summary(zh_CN): Test::Simple Perl ÄŁżé Name: perl-%{pdir}-%{pnam} Version: 0.47 Release: 2 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 4a6c12685bfeadfe8ff6fca70825f90c BuildRequires: perl-devel >= 5.6.1 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # false requires found by rpm 4.0.2 %if "%(perl -MConfig -e 'print $Config{useithreads};')" != "define" %define _noautoreq 'perl(threads)' 'perl(threads::shared)' %else Requires: perl(threads) perl(threads::shared) %endif %description This is an extremely simple, extremely basic module for writing tests suitable for CPAN modules and other pursuits. If you wish to do more complicated testing, use the Test::More module (a drop-in replacement for this one). %description -l pl To jest bardzo prosty, bardzo podstawowy moduł do pisania testów pasuj±cych do modułów CPAN i innych. Do bardziej skomplikowanych testów lepiej używać modułu Test::More (zastępuj±cego ten). %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{!?_without_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 README TODO %{perl_vendorlib}/Test/*.pm %{_mandir}/man3/*