]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: Base module for translations of Perl documentation | |
9 | Summary(pl.UTF-8): Bazowy moduł do tłumaczeń dokumentacji Perla | |
10 | Name: perl-POD2-Base | |
11 | Version: 0.044_1 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
9bd67c96 | 16 | Source0: http://www.cpan.org/modules/by-module/POD2/FERREIRA/%{pdir}-%{pnam}-%{version}.tar.gz |
c53dafa7 JB |
17 | # Source0-md5: 8dd5125ba5026427cafdddaa7f5946a9 |
18 | URL: http://search.cpan.org/dist/POD2-Base/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Test-Simple | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module is an abstraction of the code in POD2::IT and POD2::FR. | |
29 | These modules belong to the Italian and the French translation | |
30 | projects of core Perl pods. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Ten moduł to abstrakcja dla kodu w pakietach POD2::IT oraz POD2::FR. | |
34 | Moduły te należą do projektów tłumaczenia podstawowych plików pod z | |
35 | Perla 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 | |
48 | rm -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 | |
55 | rmdir $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/PT/POD2 | |
56 | rmdir $RPM_BUILD_ROOT%{perl_vendorlib}/POD2/PT | |
57 | ||
58 | install -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 | ||
61 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
62 | cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
63 | ||
64 | %clean | |
65 | rm -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} |