[packages/perl-HTML-Gumbo] - initial
arekm
arekm at pld-linux.org
Wed Jul 16 20:58:45 CEST 2014
commit ba9c8ad6c435cb62e4733a77b52ff66a75380645
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jul 16 20:58:34 2014 +0200
- initial
perl-HTML-Gumbo.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
---
diff --git a/perl-HTML-Gumbo.spec b/perl-HTML-Gumbo.spec
new file mode 100644
index 0000000..a563674
--- /dev/null
+++ b/perl-HTML-Gumbo.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir HTML
+%define pnam Gumbo
+%include /usr/lib/rpm/macros.perl
+Summary: HTML::Gumbo - HTML5 parser based on gumbo C library
+Name: perl-HTML-Gumbo
+Version: 0.12
+Release: 0.1
+License: unknown
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 7102b6dcff72434b519d9ab294934e28
+URL: http://search.cpan.org/dist/HTML-Gumbo/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Alien::LibGumbo)
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Gumbo is an implementation of the HTML5 parsing algorithm implemented
+as a pure C99 library with no outside dependencies.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ config="optimize='%{rpmcflags}'" \
+ 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)
+%{perl_vendorarch}/HTML/*.pm
+%dir %{perl_vendorarch}/auto/HTML/Gumbo
+%{perl_vendorarch}/auto/HTML/Gumbo/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/HTML/Gumbo/*.so
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-Gumbo.git/commitdiff/ba9c8ad6c435cb62e4733a77b52ff66a75380645
More information about the pld-cvs-commit
mailing list