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