]> git.pld-linux.org Git - packages/perl-POD2-Base.git/blame - perl-POD2-Base.spec
- better Source URL
[packages/perl-POD2-Base.git] / perl-POD2-Base.spec
CommitLineData
c53dafa7
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir POD2
6%define pnam Base
7%include /usr/lib/rpm/macros.perl
8Summary: Base module for translations of Perl documentation
9Summary(pl.UTF-8): Bazowy moduł do tłumaczeń dokumentacji Perla
10Name: perl-POD2-Base
11Version: 0.044_1
12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
9bd67c96 16Source0: http://www.cpan.org/modules/by-module/POD2/FERREIRA/%{pdir}-%{pnam}-%{version}.tar.gz
c53dafa7
JB
17# Source0-md5: 8dd5125ba5026427cafdddaa7f5946a9
18URL: http://search.cpan.org/dist/POD2-Base/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-Test-Simple
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module is an abstraction of the code in POD2::IT and POD2::FR.
29These modules belong to the Italian and the French translation
30projects of core Perl pods.
31
32%description -l pl.UTF-8
33Ten moduł to abstrakcja dla kodu w pakietach POD2::IT oraz POD2::FR.
34Moduły te należą do projektów tłumaczenia podstawowych plików pod z
35Perla na język włoski i francuski.
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43%{__make}
44
45%{?with_tests:%{__make} test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/Base.pod
54%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/PT/POD2/Base.pod
55rmdir $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/PT/POD2
56rmdir $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/PT
57
58install -d $RPM_BUILD_ROOT%{_mandir}/pt/man3
59%{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/POD2::PT::POD2::Base.3pm $RPM_BUILD_ROOT%{_mandir}/pt/man3/POD2::Base.3pm
60
61install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc Changes
70%{perl_vendorlib}/POD2/Base.pm
71%{_mandir}/man3/POD2::Base.3pm*
72%lang(pt) %{_mandir}/pt/man3/POD2::Base.3pm*
73%{_examplesdir}/%{name}-%{version}
This page took 0.031539 seconds and 4 git commands to generate.