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