]> git.pld-linux.org Git - packages/perl-CGI-Lite.git/blob - perl-CGI-Lite.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-CGI-Lite.git] / perl-CGI-Lite.spec
1 %define         pdir    CGI
2 %define         pnam    Lite
3 Summary:        CGI::Lite - process and decode WWW forms and cookies
4 Summary(pl.UTF-8):      CGI::Lite - przetwarzanie i dekodowanie forumularzy WWW i cookies
5 Name:           perl-CGI-Lite
6 Version:        2.02
7 Release:        3
8 License:        GPL
9 Group:          Development/Languages/Perl
10 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
11 # Source0-md5:  fa91873a24a9c8ac78a204e49a7f367f
12 URL:            http://search.cpan.org/dist/CGI-Lite/
13 BuildRequires:  perl-devel >= 1:5.8.0
14 BuildRequires:  rpm-perlprov >= 4.1-13
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 You can use this module to decode form and query information,
20 including file uploads, as well as cookies in a very simple manner;
21 you need not concern yourself with the actual details behind the
22 decoding process.
23
24 %description -l pl.UTF-8
25 Moduł ten służy modułu do dekodowania informacji z formularzy i
26 zapytań, włącznie z uploadem plików, a także cookies, w bardzo prosty
27 sposób; nie trzeba się przejmować detalami samego procesu dekodowania.
28
29 %prep
30 %setup -q -n %{pdir}-%{pnam}-%{version}
31
32 %build
33 %{__perl} Makefile.PL \
34         INSTALLDIRS=vendor
35 %{__make}
36 find examples -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc CHANGES README TODO
53 %{perl_vendorlib}/CGI/Lite.pm
54 %{_mandir}/man3/*
55 %{_examplesdir}/%{name}-%{version}
This page took 0.092664 seconds and 4 git commands to generate.