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