[packages/perl-AnyEvent-HTTP] - new

qboosh qboosh at pld-linux.org
Thu May 24 19:33:14 CEST 2018


commit b11fa8935ec3eec8b8901b2327e972017096dd06
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu May 24 19:33:58 2018 +0200

    - new

 perl-AnyEvent-HTTP.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/perl-AnyEvent-HTTP.spec b/perl-AnyEvent-HTTP.spec
new file mode 100644
index 0000000..b6025af
--- /dev/null
+++ b/perl-AnyEvent-HTTP.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	AnyEvent
+%define		pnam	HTTP
+%include	/usr/lib/rpm/macros.perl
+Summary:	AnyEvent::HTTP - simple but non-blocking HTTP/HTTPS client
+Summary(pl.UTF-8):	AnyEvent::HTTP - prosty, nieblokujący klient HTTP/HTTPS
+Name:		perl-AnyEvent-HTTP
+Version:	2.23
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/AnyEvent/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	76e2c024cc45df126fa0ea63ab9b4707
+URL:		http://search.cpan.org/dist/AnyEvent-HTTP/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-AnyEvent >= 5.33
+BuildRequires:	perl-common-sense >= 3.30
+%endif
+Requires:	perl-AnyEvent >= 5.33
+Requires:	perl-common-sense >= 3.30
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module implements a simple, stateless and non-blocking HTTP
+client. It supports GET, POST and other request methods, cookies and
+more, all on a very low level. It can follow redirects, supports
+proxies, and automatically limits the number of connections to the
+values specified in the RFC.
+
+%description -l pl.UTF-8
+Ten moduł jest implementacją prostego, bezstanowego i nieblokującego
+klienta HTTP. Obsługuje GET, POST i inne metody żądań, ciasteczka itd.
+na bardzo niskim poziomie. Potrafi podążać za przekierowaniami,
+obsługuje proxy i automatycznie ogranicza liczbę połączeń do wartości
+określonych w RFC.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING Changes README
+%{perl_vendorlib}/AnyEvent/HTTP.pm
+%{_mandir}/man3/AnyEvent::HTTP.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-AnyEvent-HTTP.git/commitdiff/b11fa8935ec3eec8b8901b2327e972017096dd06



More information about the pld-cvs-commit mailing list