]>
Commit | Line | Data |
---|---|---|
0ce1f133 JB |
1 | # |
2 | # Conditional build: | |
1eab0def | 3 | %bcond_with tests # perform "make test" (fetches URL passed interactively) |
0ce1f133 | 4 | # |
5e5c7e2e | 5 | %define pdir WWW |
6 | %define pnam Curl | |
0ce1f133 | 7 | Summary: WWW::Curl::easy - Perl extension interface for libcurl |
f129820c | 8 | Summary(pl.UTF-8): WWW::Curl::easy - interfejs perlowy do biblioteki libcurl |
0ce1f133 | 9 | Name: perl-WWW-Curl |
5bed86b0 | 10 | Version: 4.17 |
51a7bf57 | 11 | Release: 7 |
0ce1f133 JB |
12 | License: MPL or MIT/X |
13 | Group: Development/Languages/Perl | |
0e3c8050 | 14 | Source0: http://www.cpan.org/modules/by-authors/id/S/SZ/SZBALINT/%{pdir}-%{pnam}-%{version}.tar.gz |
5bed86b0 AM |
15 | # Source0-md5: 997ac81cd6b03b30b36f7cd930474845 |
16 | Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch | |
6cfc52b9 | 17 | Patch1: curl-7.66.0.patch |
2cf90da8 | 18 | Patch2: curl-7.69.0.patch |
0ce1f133 JB |
19 | URL: http://curl.haxx.se/libcurl/perl/ |
20 | BuildRequires: curl-devel | |
21 | BuildRequires: perl-devel >= 1:5.8.0 | |
5bed86b0 | 22 | BuildRequires: perl-Module-Install |
0ce1f133 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
7e5d374d | 24 | BuildRequires: rpmbuild(macros) >= 1.745 |
45720984 | 25 | Obsoletes: perl-Curl-easy < 2 |
0ce1f133 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | WWW::Curl::easy provides an interface to the libcurl C library | |
8b7228f9 | 30 | <http://curl.haxx.se/>. |
0ce1f133 JB |
31 | |
32 | Before v2.0, this module was called 'Curl::easy'. The name has changed | |
33 | to better suit CPAN naming guidelines. | |
34 | ||
1839ea5b | 35 | %description -l pl.UTF-8 |
0ce1f133 | 36 | WWW::Curl::easy dostarcza interfejs do biblioteki C libcurl |
8b7228f9 | 37 | <http://curl.haxx.se/>. |
0ce1f133 | 38 | |
1839ea5b JR |
39 | Przed wersją 2.0 ten moduł nazywał się Curl::easy. Nazwa została |
40 | zmieniona, aby lepiej pasowała do wytycznych CPAN dotyczących | |
0ce1f133 JB |
41 | nazewnictwa. |
42 | ||
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
5bed86b0 | 45 | %patch0 -p1 |
6cfc52b9 | 46 | %patch1 -p1 |
2cf90da8 | 47 | %patch2 -p1 |
0ce1f133 JB |
48 | |
49 | %build | |
50 | %{__perl} Makefile.PL \ | |
51 | INSTALLDIRS=vendor | |
0ce1f133 | 52 | %{__make} \ |
830316d1 | 53 | CC="%{__cc}" \ |
306f3314 | 54 | LD="%{__cc}" \ |
55 | OPTIMIZE="%{rpmcflags}" \ | |
56 | OTHERLDFLAGS="%{rpmldflags}" | |
0ce1f133 JB |
57 | |
58 | %{?with_tests:%{__make} test} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
8b7228f9 | 63 | %{__make} pure_install \ |
0ce1f133 JB |
64 | DESTDIR=$RPM_BUILD_ROOT |
65 | ||
0e3c8050 | 66 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/WWW/Curl/.packlist |
8b7228f9 | 67 | |
0ce1f133 JB |
68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc Changes README | |
0ce1f133 JB |
74 | %{perl_vendorarch}/WWW/Curl.pm |
75 | %{perl_vendorarch}/WWW/Curl | |
76 | %dir %{perl_vendorarch}/auto/WWW/Curl | |
0ce1f133 | 77 | %attr(755,root,root) %{perl_vendorarch}/auto/WWW/Curl/Curl.so |
0e3c8050 | 78 | %{_mandir}/man3/WWW::Curl.3pm* |