[packages/perl-HTML-TagParser] - initial

arekm arekm at pld-linux.org
Tue Nov 5 13:10:04 CET 2013


commit c08917e2f865d641c619b83f61f04b2c8df902ed
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 5 13:09:52 2013 +0100

    - initial

 perl-HTML-TagParser.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/perl-HTML-TagParser.spec b/perl-HTML-TagParser.spec
new file mode 100644
index 0000000..e24b1fc
--- /dev/null
+++ b/perl-HTML-TagParser.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	HTML
+%define		pnam	TagParser
+Summary:	HTML::TagParser - Yet another HTML document parser with DOM-like methods
+Name:		perl-HTML-TagParser
+Version:	0.20
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	3069391a49c6df9abcf1e0a88371ea68
+URL:		http://search.cpan.org/dist/HTML-TagParser/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HTML::TagParser - Yet another HTML document parser with DOM-like
+methods.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/HTML/TagParser.pm
+%{_mandir}/man[13]/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-TagParser.git/commitdiff/c08917e2f865d641c619b83f61f04b2c8df902ed



More information about the pld-cvs-commit mailing list