SPECS: tagsoup.spec (NEW) - new, based on jpackage

glen glen at pld-linux.org
Sun Nov 18 16:28:27 CET 2007


Author: glen                         Date: Sun Nov 18 15:28:27 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, based on jpackage

---- Files affected:
SPECS:
   tagsoup.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/tagsoup.spec
diff -u /dev/null SPECS/tagsoup.spec:1.1
--- /dev/null	Sun Nov 18 16:28:27 2007
+++ SPECS/tagsoup.spec	Sun Nov 18 16:28:21 2007
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+Summary:	A SAX-compliant parser written in Java that parses HTML as it is found in the wild: nasty and brutish
+Name:		tagsoup
+Version:	1.0.1
+Release:	0.1
+Epoch:		0
+License:	GPL
+Source0:	http://home.ccil.org/~cowan/XML/tagsoup/%{name}-%{version}-src.zip
+# Source0-md5:	35088ab782cb31bbf63e745302379fa5
+Group:		Applications/Text
+URL:		http://mercury.ccil.org/~cowan/XML/tagsoup/
+BuildRequires:	ant
+BuildRequires:	ant-trax
+BuildRequires:	jpackage-utils
+BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	xalan-j
+Requires:	jpackage-utils >= 0:1.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+TagSoup is a SAX-compliant parser written in Java that, instead of
+parsing well-formed or valid XML, parses HTML as it is found in the
+wild: nasty and brutish, though quite often far from short. TagSoup is
+designed for people who have to process this stuff using some
+semblance of a rational application design. By providing a SAX
+interface, it allows standard XML tools to be applied to even the
+worst HTML.
+
+%package javadoc
+Summary:	Javadoc for %{name}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Javadoc for %{name}.
+
+%prep
+%setup -q
+
+%build
+required_jars="xalan"
+export CLASSPATH=$(build-classpath $required_jars)
+%ant \
+  -Dversion=%{version} \
+  -Dj2se.apiurl=%{_javadocdir}/java \
+  dist docs-api
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+install dist/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+%doc CHANGES README
+
+%files javadoc
+%defattr(644,root,root,755)
+%doc %{_javadocdir}/%{name}-%{version}
+%ghost %doc %{_javadocdir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007-11-18 15:28:21  glen
+- new, based on jpackage
+
================================================================


More information about the pld-cvs-commit mailing list