]>
Commit | Line | Data |
---|---|---|
b6441cf5 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without autodeps # don't BR packages needed only for resolving deps | |
fb92eb1e | 4 | %bcond_without tests # do not perform "make test" |
b6441cf5 | 5 | # |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir HTTP | |
8 | %define pnam Request-Params | |
9 | Summary: Retrieve GET/POST Parameters from HTTP Requests | |
0ae14726 | 10 | Summary(pl.UTF-8): Odczytywanie parametrów GET/POST z zapytań HTTP |
b6441cf5 | 11 | Name: perl-%{pdir}-%{pnam} |
12 | Version: 1.01 | |
13 | Release: 1 | |
14 | License: same as Perl | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: fccd255a2992c77b5c40cb5e1e75b256 | |
fb92eb1e | 18 | URL: http://search.cpan.org/dist/HTTP-Request-Params/ |
b6441cf5 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with autodeps} || %{with tests} | |
22 | BuildRequires: perl-Class-Accessor | |
23 | BuildRequires: perl-Email-MIME | |
24 | BuildRequires: perl-Email-MIME-ContentType | |
25 | BuildRequires: perl-Email-MIME-Modifier >= 1.42 | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
b6441cf5 | 30 | %description |
31 | This software does all the dirty work of parsing HTTP Requests to find | |
32 | incoming query parameters. | |
33 | ||
b2d70f49 JR |
34 | %description -l pl.UTF-8 |
35 | Biblioteka wykonująca brudną robotę z parsowaniem zapytań HTTP w celu | |
36 | znalezienia parametrów. | |
b6441cf5 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
b6441cf5 | 42 | %{__perl} Makefile.PL \ |
43 | INSTALLDIRS=vendor | |
44 | ||
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README | |
fb92eb1e | 61 | %{perl_vendorlib}/HTTP/Request/Params.pm |
b6441cf5 | 62 | %{_mandir}/man3/* |