]> git.pld-linux.org Git - projects/template-specs.git/blame - perl.spec
- group Development/Languages/PHP for -tests
[projects/template-specs.git] / perl.spec
CommitLineData
654cb390 1#
26510aed 2# Conditional build:
59b8ae11 3%bcond_without autodeps # don't BR packages needed only for resolving deps
460ed0bf 4%bcond_without tests # do not perform "make test"
654cb390 5#
2fd42c2b 6%include /usr/lib/rpm/macros.perl
a3ccbf10 7%define pdir -
8%define pnam -
3299adc7 9Summary: -
3299adc7 10Summary(pl): -
ede9f904 11Name: perl-
3299adc7
SZ
12Version: -
13Release: -
350c7060 14# note if it is "same as perl"
c38fb6bc 15License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)
2fd42c2b 16Group: Development/Languages/Perl
8f53b5bf 17Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
cf06d904 18Patch0: %{name}
8f218f52
JB
19# most of CPAN modules have generic URL (substitute pdir and pnam here)
20#URL: http://search.cpan.org/dist/%{pdir}-%{pnam}
a34f5786 21BuildRequires: perl-devel >= 1:5.8.0
107a0f90 22BuildRequires: rpm-perlprov >= 4.1-13
3299adc7 23BuildRequires: -
59b8ae11 24%if %{with autodeps} || %{with tests}
c96533b1 25BuildRequires: perl-
26BuildRequires: perl-
27%endif
3299adc7 28Requires: -
3299adc7
SZ
29Provides: -
30Obsoletes: -
2fd42c2b
SZ
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
0a7131e1 34%define _noautoreq 'perl(anything_fake_or_conditional)'
c38fb6bc 35
2fd42c2b 36%description
3299adc7 37
2fd42c2b 38%description -l pl
3299adc7 39
2fd42c2b 40%prep
9b30721b 41%setup -q -n %{pdir}-%{pnam}-%{version}
2fd42c2b 42%patch0 -p1
2fd42c2b
SZ
43
44%build
c38fb6bc 45# Don't use pipes here: they generally don't work. Apply a patch.
193c54ad 46%{__perl} Makefile.PL \
47 INSTALLDIRS=vendor
3e914c93 48
2fd42c2b 49%{__make}
ede9f904 50# if module isn't noarch, use:
3e914c93
JB
51# %{__make} \
52# OPTIMIZE="%{rpmcflags}"
0473ffe6 53
460ed0bf 54%{?with_tests:%{__make} test}
2fd42c2b
SZ
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
b9179971 59%{__make} pure_install \
2fd42c2b 60 DESTDIR=$RPM_BUILD_ROOT
2fd42c2b 61
2fd42c2b
SZ
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
ede9f904 67%doc Changes README
b9179971 68# note it's mostly easier to copy unpackaged filelist here, and run adapter over the spec.
ede9f904 69# use macros:
0dfc2862 70#%%{perl_vendorlib}/...
71#%%{perl_vendorarch}/...
193c54ad 72%{_mandir}/man3/*
This page took 0.039373 seconds and 4 git commands to generate.