]> git.pld-linux.org Git - packages/perl-Module-Build.git/blame - perl-Module-Build.spec
Up to 0.4222
[packages/perl-Module-Build.git] / perl-Module-Build.spec
CommitLineData
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 8Summary: Module::Build - build and install Perl modules
3dcd4c68 9Summary(pl.UTF-8): Module::Build - budowanie i instalowanie modułów Perla
b8d2d229 10Name: perl-Module-Build
7543fb98 11Version: 0.4222
2a514af6 12Release: 1
1dd9e8e7 13Epoch: 2
df4306cb 14# same as perl
16e9ace9 15License: GPL v1+ or Artistic
b8d2d229 16Group: Development/Languages/Perl
1dd9e8e7 17Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
7543fb98 18# Source0-md5: 96b2037b595b381ed730d84b9c1ff145
2c566d0e 19Patch0: %{name}-startperl.patch
7e623752
JB
20URL: http://search.cpan.org/dist/Module-Build/
21BuildRequires: perl(File::Spec) >= 0.82
14e10f99
JB
22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
7e623752 24%if %{with tests}
187920d3 25BuildRequires: perl-CPAN-Meta >= 2.142060
1dd9e8e7 26BuildRequires: perl-CPAN-Meta-YAML >= 0.003
709679f1 27BuildRequires: perl-ExtUtils-CBuilder >= 0.27
14e10f99
JB
28BuildRequires: perl-ExtUtils-ParseXS >= 2.21
29BuildRequires: perl-File-Temp >= 0.15
709679f1 30BuildRequires: perl-Module-Metadata >= 1.000002
14e10f99 31BuildRequires: perl-Parse-CPAN-Meta >= 1.4401
709679f1 32BuildRequires: perl-Perl-OSType >= 1.00
14e10f99
JB
33BuildRequires: perl-Test-Harness >= 3.16
34BuildRequires: perl-Test-Simple >= 0.49
35BuildRequires: perl-YAML > 0.49_01
709679f1 36BuildRequires: perl-version >= 1:0.87
14e10f99 37%endif
b8d2d229
JB
38BuildArch: noarch
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Module::Build is a Perl module to build and install Perl modules. It
43is meant to be a replacement for ExtUtils::MakeMaker.
44
212addf9
JR
45%description -l pl.UTF-8
46Module::Build to moduł Perla do budowania i instalowania modułów
47Perla. 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
62rm -rf $RPM_BUILD_ROOT
63
0bc1e35b 64./Build install
b8d2d229 65
14e10f99 66%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Module/Build/*.pod
187920d3 67for 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
70done
71
b8d2d229
JB
72%clean
73rm -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*
This page took 0.340092 seconds and 4 git commands to generate.