]>
Commit | Line | Data |
---|---|---|
a4386125 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
dea601d7 | 5 | %define pdir HTTP |
6 | %define pnam GHTTP | |
3f62a1f5 | 7 | Summary: HTTP::GHTTP - Perl interface to the GNOME ghttp library |
24919aca | 8 | Summary(pl.UTF-8): HTTP::GHTTP - moduł Perla z interfejsem do biblioteki GNOME ghttp |
68069a76 | 9 | Name: perl-HTTP-GHTTP |
38474779 | 10 | Version: 1.07 |
a663dfc3 | 11 | Release: 18 |
7fb19f19 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
68069a76 | 14 | Group: Development/Languages/Perl |
3e6ae42c | 15 | Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz |
340b6d7b | 16 | # Source0-md5: af6090669fde7709c765c2caf03aa42b |
3e6ae42c | 17 | URL: http://search.cpan.org/dist/HTTP-GHTTP/ |
68069a76 | 18 | BuildRequires: libghttp-devel |
d7dd2976 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
e1255426 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
68069a76 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
3f62a1f5 | 24 | The HTTP::GHTTP module is a simple Perl interface to the GNOME ghttp |
25 | library. It allows you to make very simple HTTP requests, without the | |
26 | weight of something like LWP. This makes it very useful in situations | |
27 | where memory and speed are at a premium, such as mod_perl. | |
68069a76 | 28 | |
16c8aee4 JR |
29 | %description -l pl.UTF-8 |
30 | Moduł Perla HTTP::GHTTP stanowi prosty interfejs do biblioteki GNOME | |
31 | ghttp. Umożliwia on tworzenie bardzo prostych zapytań HTTP bez narzutu | |
32 | czegoś takiego, jak LWP. Czyni to go bardzo przydatnym, gdy pamięć i | |
33 | prędkość są bardzo istotne, np. w mod_perl. | |
68069a76 | 34 | |
35 | %prep | |
7dff68ab | 36 | %setup -q -n %{pdir}-%{pnam}-%{version} |
68069a76 | 37 | |
38 | %build | |
e1255426 | 39 | %{__perl} Makefile.PL \ |
8d803cfb | 40 | INSTALLDIRS=vendor |
a4386125 | 41 | %{__make} \ |
6f64d8b1 | 42 | CC="%{__cc}" \ |
a4386125 | 43 | OPTIMIZE="%{rpmcflags}" |
44 | ||
45 | %{?with_tests:%{__make} test} | |
68069a76 | 46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
a4386125 | 50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
68069a76 | 52 | |
68069a76 | 53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
ea12007b | 58 | %doc Changes README |
68069a76 | 59 | %attr(755,root,root) %{_bindir}/g-request |
e1255426 | 60 | %dir %{perl_vendorarch}/HTTP |
61 | %{perl_vendorarch}/HTTP/GHTTP.pm | |
62 | %dir %{perl_vendorarch}/auto/HTTP | |
51a1049f | 63 | %dir %{perl_vendorarch}/auto/HTTP/GHTTP |
51a1049f JB |
64 | %attr(755,root,root) %{perl_vendorarch}/auto/HTTP/GHTTP/GHTTP.so |
65 | %{_mandir}/man3/HTTP::GHTTP*.3pm* |