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