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