]> git.pld-linux.org Git - packages/perl-HTTP-Headers-Fast.git/commitdiff
- initial auto/th/perl-HTTP-Headers-Fast-0.17-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 14 Jun 2015 11:21:04 +0000 (13:21 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 14 Jun 2015 11:21:04 +0000 (13:21 +0200)
perl-HTTP-Headers-Fast.spec [new file with mode: 0644]

diff --git a/perl-HTTP-Headers-Fast.spec b/perl-HTTP-Headers-Fast.spec
new file mode 100644 (file)
index 0000000..4e656c5
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    HTTP
+%define                pnam    Headers-Fast
+%include       /usr/lib/rpm/macros.perl
+Summary:       HTTP::Headers::Fast - faster implementation of HTTP::Headers
+Name:          perl-HTTP-Headers-Fast
+Version:       0.17
+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: fed9a43d49a0b50b2325f79ea3b30cac
+URL:           http://search.cpan.org/dist/HTTP-Headers-Fast/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-HTTP-Date
+BuildRequires: perl-Test-Requires
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HTTP::Headers::Fast is a perl class for parsing/writing HTTP headers.
+
+The interface is same as HTTP::Headers.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+       destdir=$RPM_BUILD_ROOT \
+       installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/HTTP/Headers/*.pm
+%{_mandir}/man3/*
This page took 0.080924 seconds and 4 git commands to generate.