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