| 136 |
- |
1 |
Name:
|
|
|
2 |
Version:
|
|
|
3 |
Release: 1%{?dist}
|
|
|
4 |
Summary:
|
|
|
5 |
|
|
|
6 |
Group: Development/Libraries
|
|
|
7 |
License:
|
|
|
8 |
URL:
|
|
|
9 |
Source0:
|
|
|
10 |
|
|
|
11 |
BuildArch:
|
|
|
12 |
# Correct for lots of packages, other common choices include eg. Module::Build
|
|
|
13 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
14 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
15 |
|
|
|
16 |
%{?perl_default_filter}
|
|
|
17 |
|
|
|
18 |
%description
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
%prep
|
|
|
22 |
%setup -q
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
%build
|
|
|
26 |
# Remove OPTIMIZE=... from noarch packages (unneeded)
|
|
|
27 |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
28 |
make %{?_smp_mflags}
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
%install
|
|
|
32 |
rm -rf $RPM_BUILD_ROOT
|
|
|
33 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
34 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
35 |
# Remove the next line from noarch packages (unneeded)
|
|
|
36 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
|
37 |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
38 |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
%check
|
|
|
42 |
make test
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
%clean
|
|
|
46 |
rm -rf $RPM_BUILD_ROOT
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
%files
|
|
|
50 |
%defattr(-,root,root,-)
|
|
|
51 |
%doc
|
|
|
52 |
# For noarch packages: vendorlib
|
|
|
53 |
%{perl_vendorlib}/*
|
|
|
54 |
# For arch-specific packages: vendorarch
|
|
|
55 |
%{perl_vendorarch}/*
|
|
|
56 |
%exclude %dir %{perl_vendorarch}/auto/
|
|
|
57 |
%{_mandir}/man3/*.3*
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
%changelog
|