]> git.pld-linux.org Git - projects/template-specs.git/blame - perl.spec
- more specific URL
[projects/template-specs.git] / perl.spec
CommitLineData
26510aed 1#
2# Conditional build:
e2f1239c 3# _without_tests - do not perform "make test"
eb469848 4#
2fd42c2b 5%include /usr/lib/rpm/macros.perl
b0ec8988 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: -
17Epoch: -
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: -
40e8a6d6 23BuildRequires: perl-devel >= 5.8.0
107a0f90 24BuildRequires: rpm-perlprov >= 4.1-13
3299adc7
SZ
25BuildRequires: -
26Requires: -
27Prereq: -
28Provides: -
29Obsoletes: -
2fd42c2b
SZ
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
0a7131e1 33%define _noautoreq 'perl(anything_fake_or_conditional)'
c38fb6bc 34
2fd42c2b 35%description
3299adc7
SZ
36
37%description -l de
38
c38fb6bc 39%description -l es
40
3299adc7 41%description -l fr
2fd42c2b
SZ
42
43%description -l pl
3299adc7 44
c38fb6bc 45%description -l ru
2fd42c2b
SZ
46
47%prep
9b30721b 48%setup -q -n %{pdir}-%{pnam}-%{version}
2fd42c2b 49%patch0 -p1
2fd42c2b
SZ
50
51%build
c38fb6bc 52# Don't use pipes here: they generally don't work. Apply a patch.
193c54ad 53%{__perl} Makefile.PL \
54 INSTALLDIRS=vendor
3e914c93 55
2fd42c2b 56%{__make}
ede9f904 57# if module isn't noarch, use:
3e914c93
JB
58# %{__make} \
59# OPTIMIZE="%{rpmcflags}"
0473ffe6 60
0473ffe6 61%{!?_without_tests:%{__make} test}
2fd42c2b
SZ
62
63%install
64rm -rf $RPM_BUILD_ROOT
65
2fd42c2b
SZ
66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
2fd42c2b 68
2fd42c2b
SZ
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files
73%defattr(644,root,root,755)
ede9f904
JB
74%doc Changes README
75# use macros:
0dfc2862 76#%%{perl_vendorlib}/...
77#%%{perl_vendorarch}/...
193c54ad 78%{_mandir}/man3/*
This page took 0.041798 seconds and 4 git commands to generate.