]> git.pld-linux.org Git - packages/perl-Test-Without-Module.git/blame - perl-Test-Without-Module.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Test-Without-Module.git] / perl-Test-Without-Module.spec
CommitLineData
10465918
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Test
6%define pnam Without-Module
10465918 7Summary: Test::Without::Module - Test fallback behaviour in absence of modules
8df810d5 8Summary(pl.UTF-8): Test::Without::Module - testowanie rozwiązań zapasowych w przypadku braku modułów
10465918 9Name: perl-Test-Without-Module
d9f70210 10Version: 0.20
10465918
AM
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
d9f70210
JB
16# Source0-md5: 34684186b66929bbcd12d3ac8ae03f9d
17URL: https://metacpan.org/release/Test-Without-Module
10465918
AM
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
8df810d5 21BuildRequires: perl-Test-Simple
10465918
AM
22%endif
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module allows you to deliberately hide modules from a program
8df810d5
JB
28even though they are installed. This is mostly useful for testing
29modules that have a fallback when a certain dependency module is not
30installed.
31
32%description -l pl.UTF-8
33Ten moduł pozwala celowo ukrywać moduły przed programem, nawet jeśli
34są zainstalowane. Jest to przydatne głównie do testowania modułów,
35które mają rozwiązania zapasowe w przypadku, kiedy jakiś wymagany
36moduł nie jest zainstalowany.
10465918
AM
37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes README
60%dir %{perl_vendorlib}/Test/Without
61%{perl_vendorlib}/Test/Without/Module.pm
62%{_mandir}/man3/Test::Without::Module.3pm*
This page took 0.124566 seconds and 4 git commands to generate.