[packages/perl-HTTP-Headers-ActionPack] - initial

arekm arekm at pld-linux.org
Tue Jul 21 10:56:54 CEST 2020


commit 592c99caee1550f85ed4aa8f95b8fd3e820fdf08
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 21 10:56:39 2020 +0200

    - initial

 perl-HTTP-Headers-ActionPack.spec | 72 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/perl-HTTP-Headers-ActionPack.spec b/perl-HTTP-Headers-ActionPack.spec
new file mode 100644
index 0000000..08f88db
--- /dev/null
+++ b/perl-HTTP-Headers-ActionPack.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	HTTP
+%define		pnam	Headers-ActionPack
+Summary:	HTTP::Headers::ActionPack - HTTP Action, Adventure and Excitement
+Name:		perl-HTTP-Headers-ActionPack
+Version:	0.09
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	d0d2cb37e259cc0449f7883202356654
+URL:		https://metacpan.org/release/HTTP-Headers-ActionPack
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires:	perl-HTTP-Date
+BuildRequires:	perl-HTTP-Message
+BuildRequires:	perl-Module-Runtime
+BuildRequires:	perl-Sub-Exporter
+BuildRequires:	perl-Test-Fatal >= 0.0003
+BuildRequires:	perl-Test-Warnings
+BuildRequires:	perl-URI
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a module to handle the inflation and deflation of complex HTTP
+header types. In many cases header values are simple strings, but in
+some cases they are complex values with a lot of information encoded
+in them. The goal of this module is to make the parsing and analysis
+of these headers as easy as calling inflate on a compatible object
+(see below for a list).
+
+This top-level class is basically a Factory for creating instances of
+the other classes in this module. It contains a number of convenience
+methods to help make common cases easy to write.
+
+%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
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README
+%{perl_vendorlib}/HTTP/Headers/*.pm
+%{perl_vendorlib}/HTTP/Headers/ActionPack
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-HTTP-Headers-ActionPack.git/commitdiff/592c99caee1550f85ed4aa8f95b8fd3e820fdf08



More information about the pld-cvs-commit mailing list