3 %bcond_without tests # do not perform "make test"
6 %define pnam Without-Module
7 Summary: Test::Without::Module - Test fallback behaviour in absence of modules
8 Summary(pl.UTF-8): Test::Without::Module - testowanie rozwiązań zapasowych w przypadku braku modułów
9 Name: perl-Test-Without-Module
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 34684186b66929bbcd12d3ac8ae03f9d
17 URL: https://metacpan.org/release/Test-Without-Module
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Simple
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module allows you to deliberately hide modules from a program
28 even though they are installed. This is mostly useful for testing
29 modules that have a fallback when a certain dependency module is not
32 %description -l pl.UTF-8
33 Ten moduł pozwala celowo ukrywać moduły przed programem, nawet jeśli
34 są zainstalowane. Jest to przydatne głównie do testowania modułów,
35 które mają rozwiązania zapasowe w przypadku, kiedy jakiś wymagany
36 moduł nie jest zainstalowany.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/Test/Without
61 %{perl_vendorlib}/Test/Without/Module.pm
62 %{_mandir}/man3/Test::Without::Module.3pm*