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