]> git.pld-linux.org Git - SPECS.git/blob - perl-Template-Plugin-CGI.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Template-Plugin-CGI.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Template
6 %define pnam    Plugin-CGI
7 Summary:        Template::Plugin::CGI - interface to CGI.pm module
8 Summary(pl.UTF-8):      Template::Plugin::CGI - Interfejs do modułu CGI.pm
9 Name:           perl-Template-Plugin-CGI
10 Version:        3.101
11 Release:        1
12 License:        MIT
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Template/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  97e4eea444df76ec6ba7b4fb3f2c6ba1
16 URL:            https://metacpan.org/dist/Template-Plugin-Autoformat
17 BuildRequires:  perl-ExtUtils-MakeMaker
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
21 %if %{with tests}
22 BuildRequires:  perl-CGI >= 4.44
23 BuildRequires:  perl-Template-Toolkit >= 3.100
24 BuildRequires:  perl-Test-CPAN-Meta
25 #BuildRequires: perl-Test2-Tools-Explain
26 %endif
27 Requires:       perl-CGI >= 4.44
28 Requires:       perl-Template-Toolkit >= 3.100
29 Provides:       perl-Template-Toolkit-Plugin-CGI = %{version}
30 Obsoletes:      perl-Template-Toolkit-Plugin-CGI < 3.100
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This is a very simple Template Toolkit Plugin interface to the CGI
36 module.
37
38 %description -l pl.UTF-8
39 Bardzo prosty interfejs wtyczki Template Toolkitu do modułu CGI.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} pure_install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes LICENSE
63 %{perl_vendorlib}/Template/Plugin/CGI.pm
64 %{_mandir}/man3/Template::Plugin::CGI.3pm*
This page took 1.007214 seconds and 3 git commands to generate.