]>
Commit | Line | Data |
---|---|---|
c4a73238 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Module | |
6 | %define pnam Runtime-Conflicts | |
f75836f8 JB |
7 | Summary: Module::Runtime::Conflicts - provide information on conflicts for Module::Runtime |
8 | Summary(pl.UTF-8): Module::Runtime::Conflicts - dostarczanie informacji o konfliktach dla Module::Runtime | |
c4a73238 | 9 | Name: perl-Module-Runtime-Conflicts |
4b219081 | 10 | Version: 0.003 |
c4a73238 AM |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz | |
4b219081 JB |
16 | # Source0-md5: 67aaf699072063cc00c5b6afd4c67a6f |
17 | URL: https://metacpan.org/release/Module-Runtime-Conflicts | |
c4a73238 AM |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
4b219081 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
c4a73238 AM |
21 | %if %{with tests} |
22 | BuildRequires: perl-Dist-CheckConflicts | |
23 | BuildRequires: perl-Module-Runtime | |
f75836f8 | 24 | BuildRequires: perl-Test-Simple >= 0.88 |
c4a73238 | 25 | %endif |
4b219081 JB |
26 | Conflicts: perl-Elasticsearch < 1.00 |
27 | Conflicts: perl-Moose < 2.1202 | |
28 | Conflicts: perl-MooseX-NonMoose < 0.24 | |
c4a73238 AM |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
428dfe7a ER |
33 | This module provides conflicts checking for Module::Runtime, which had |
34 | a recent release that broke some versions of Moose. It is called from | |
c4a73238 AM |
35 | Moose::Conflicts and moose-outdated. |
36 | ||
f75836f8 JB |
37 | %description -l pl.UTF-8 |
38 | Ten moduł zapewnia sprawdzanie konfliktów dla Module::Runtime, htórego | |
39 | niedawne wydanie zepsuło niektóre wersje Moose. Moduł jest wywoływany | |
40 | z Moose::Conflicts oraz moose-outdated. | |
41 | ||
c4a73238 AM |
42 | %prep |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
4b219081 JB |
46 | %{__perl} Makefile.PL \ |
47 | INSTALLDIRS=vendor | |
48 | ||
49 | %{__make} | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
c4a73238 AM |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
4b219081 JB |
55 | |
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
c4a73238 AM |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
4b219081 | 64 | %doc Changes README |
f75836f8 JB |
65 | %dir %{perl_vendorlib}/Module/Runtime |
66 | %{perl_vendorlib}/Module/Runtime/Conflicts.pm | |
67 | %{_mandir}/man3/Module::Runtime::Conflicts.3pm* |