]>
Commit | Line | Data |
---|---|---|
392feee0 | 1 | # |
b8d2d229 | 2 | # Conditional build: |
665fc609 | 3 | %bcond_without tests # do not perform "./Build test" |
392feee0 | 4 | # |
55f3f11d | 5 | %define pdir Module |
6 | %define pnam Build | |
b8d2d229 | 7 | Summary: Module::Build - build and install Perl modules |
3dcd4c68 | 8 | Summary(pl.UTF-8): Module::Build - budowanie i instalowanie modułów Perla |
b8d2d229 | 9 | Name: perl-Module-Build |
a1def3eb | 10 | Version: 0.4231 |
2a514af6 | 11 | Release: 1 |
1dd9e8e7 | 12 | Epoch: 2 |
df4306cb | 13 | # same as perl |
16e9ace9 | 14 | License: GPL v1+ or Artistic |
b8d2d229 | 15 | Group: Development/Languages/Perl |
1dd9e8e7 | 16 | Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz |
a1def3eb | 17 | # Source0-md5: 066b193e461d7dfe1eca17a139353001 |
2c566d0e | 18 | Patch0: %{name}-startperl.patch |
a1def3eb | 19 | URL: https://metacpan.org/release/Module-Build |
7e623752 | 20 | BuildRequires: perl(File::Spec) >= 0.82 |
a1def3eb JB |
21 | BuildRequires: perl(version) >= 0.87 |
22 | BuildRequires: perl-Module-Metadata >= 1.000002 | |
23 | BuildRequires: perl-Perl-OSType >= 1.00 | |
14e10f99 | 24 | BuildRequires: perl-devel >= 1:5.8.0 |
a1def3eb JB |
25 | # perl-modules provides version's version without epoch, so use perl(version) dep |
26 | #BuildRequires: perl-version >= 1:0.87 | |
14e10f99 | 27 | BuildRequires: rpm-perlprov >= 4.1-13 |
a1def3eb | 28 | BuildRequires: rpmbuild(macros) >= 1.745 |
7e623752 | 29 | %if %{with tests} |
187920d3 | 30 | BuildRequires: perl-CPAN-Meta >= 2.142060 |
1dd9e8e7 | 31 | BuildRequires: perl-CPAN-Meta-YAML >= 0.003 |
709679f1 | 32 | BuildRequires: perl-ExtUtils-CBuilder >= 0.27 |
14e10f99 JB |
33 | BuildRequires: perl-ExtUtils-ParseXS >= 2.21 |
34 | BuildRequires: perl-File-Temp >= 0.15 | |
14e10f99 | 35 | BuildRequires: perl-Parse-CPAN-Meta >= 1.4401 |
a1def3eb | 36 | BuildRequires: perl-Test-Harness >= 3.29 |
14e10f99 | 37 | BuildRequires: perl-Test-Simple >= 0.49 |
14e10f99 | 38 | %endif |
a1def3eb | 39 | BuildConflicts: perl(CPANPLUS::Dist::Build) < 0.08 |
b8d2d229 JB |
40 | BuildArch: noarch |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | Module::Build is a Perl module to build and install Perl modules. It | |
45 | is meant to be a replacement for ExtUtils::MakeMaker. | |
46 | ||
212addf9 JR |
47 | %description -l pl.UTF-8 |
48 | Module::Build to moduł Perla do budowania i instalowania modułów | |
49 | Perla. Ma być zamiennikiem ExtUtils::MakeMaker. | |
b8d2d229 JB |
50 | |
51 | %prep | |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
7e623752 | 53 | %patch0 -p1 |
b8d2d229 JB |
54 | |
55 | %build | |
56 | %{__perl} Build.PL \ | |
665fc609 | 57 | installdirs=vendor \ |
58 | destdir=$RPM_BUILD_ROOT | |
b8d2d229 | 59 | ./Build |
492efed6 | 60 | |
665fc609 | 61 | %{?with_tests:./Build test} |
b8d2d229 JB |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
0bc1e35b | 66 | ./Build install |
b8d2d229 | 67 | |
14e10f99 | 68 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Module/Build/*.pod |
187920d3 | 69 | for s in Default MacOS VMS VOS Windows aix cygwin darwin os2 ; do |
14e10f99 JB |
70 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Module/Build/Platform/${s}.pm |
71 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/Module::Build::Platform::${s}.3pm | |
72 | done | |
73 | ||
b8d2d229 JB |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc Changes | |
7e623752 | 80 | %attr(755,root,root) %{_bindir}/config_data |
b8d2d229 JB |
81 | %{perl_vendorlib}/Module/Build.pm |
82 | %dir %{perl_vendorlib}/Module/Build | |
83 | %{perl_vendorlib}/Module/Build/*.pm | |
84 | %dir %{perl_vendorlib}/Module/Build/Platform | |
85 | %{perl_vendorlib}/Module/Build/Platform/Unix.pm | |
7e623752 | 86 | %{_mandir}/man1/config_data.1* |
14e10f99 | 87 | %{_mandir}/man3/Module::Build.3pm* |
2a514af6 | 88 | %{_mandir}/man3/Module::Build::[!P]*.3pm* |
14e10f99 | 89 | %{_mandir}/man3/Module::Build::PPMMaker.3pm* |
2a514af6 | 90 | %{_mandir}/man3/Module::Build::Platform::Unix.3pm* |