]> git.pld-linux.org Git - packages/perl-Pod-POM-View-Restructured.git/blob - perl-Pod-POM-View-Restructured.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Pod-POM-View-Restructured.git] / perl-Pod-POM-View-Restructured.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    Pod
6 %define         pnam    POM-View-Restructured
7 Summary:        Pod::POM::View::Restructured - View for Pod::POM that outputs reStructuredText
8 Summary(pl.UTF-8):      Pod::POM::View::Restructured - widok dla Pod::POM z wyjściem w formacie reStructuredText
9 Name:           perl-Pod-POM-View-Restructured
10 Version:        1.000002
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  638084b3c8df3361d523a6f50bf58db9
17 URL:            https://metacpan.org/release/Pod-POM-View-Restructured/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Pod-POM
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This module outputs reStructuredText that is expected to be used with
28 Sphinx. Verbatim sections (indented paragraphs) in the POD will be
29 output with syntax highlighting for Perl code by default.
30
31 %description -l pl.UTF-8
32 Ten moduł produkuje wyjście w formacie reStructuredText, przeznaczonym
33 do użytku ze Sphinksem. Sekcje maszynowe (akapity z wcięciem) w POD są
34 wypisywane z domyślbym podświetlaniem składni dla kodu w Perlu.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} pure_install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog INSTALL README
58 %attr(755,root,root) %{_bindir}/pod2rst
59 %{perl_vendorlib}/Pod/POM/View/Restructured.pm
60 %{_mandir}/man1/pod2rst.1p*
61 %{_mandir}/man3/Pod::POM::View::Restructured.3pm*
This page took 1.080977 seconds and 4 git commands to generate.