[htmlcleaner] Initial import (#973084).

Marcin Dulak marcindulak at fedoraproject.org
Fri Jun 21 19:13:20 UTC 2013


commit 36992502f8105dd5a89ab8c19a0a85022c808fd9
Author: marcindulak <Marcin.Dulak at gmail.com>
Date:   Fri Jun 21 21:12:40 2013 +0200

    Initial import (#973084).

 .gitignore       |    1 +
 htmlcleaner.spec |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7f744a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/htmlcleaner-2.2.1-src.zip
diff --git a/htmlcleaner.spec b/htmlcleaner.spec
new file mode 100644
index 0000000..c6f5f4c
--- /dev/null
+++ b/htmlcleaner.spec
@@ -0,0 +1,77 @@
+Name:		htmlcleaner
+Version:	2.2.1
+Release:	2%{?dist}
+Summary:	HTML parser written in Java
+License:	BSD
+Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}%20v%{version}/%{name}-%{version}-src.zip
+URL:		http://htmlcleaner.sourceforge.net/
+BuildArch:	noarch
+
+BuildRequires:	maven-local
+BuildRequires:	java-devel
+
+Requires:	java
+
+%description
+HtmlCleaner is open-source HTML parser written in Java. HTML found on Web is
+usually dirty, ill-formed and unsuitable for further processing.
+For any serious consumption of such documents, it is necessary to first
+clean up the mess and bring the order to tags, attributes and ordinary text.
+For the given HTML document, HtmlCleaner reorders individual elements and
+produces well-formed XML. By default, it follows similar rules that the most
+of web browsers use in order to create Document Object Model. However, user
+may provide custom tag and rule set for tag filtering and balancing.
+
+
+%package javadoc
+Summary:	API documentation for %{name}
+
+
+%description javadoc
+This package contains the API documentation for %{name}
+
+%prep
+%setup -q -c -T
+jar xf %{SOURCE0}
+%pom_remove_plugin :maven-gpg-plugin
+sed -i -e 's!\r!!g' licence.txt
+
+# avoid Pre-built JARfiles
+JARfiles=""
+for j in $(find -name \*.jar); do
+if [ ! -L $j ] ; then
+JARfiles="$JARfiles $j"
+fi
+done
+if [ ! -z "$JARfiles" ] ; then
+echo "These JARfiles should be deleted and symlinked to system JARfiles: $JARfiles"
+exit 1
+fi
+
+
+%build
+%mvn_build
+
+
+%install
+%mvn_install
+
+
+%check
+mvn-rpmbuild verify
+
+
+%files -f .mfiles
+%doc licence.txt
+
+
+%files javadoc -f .mfiles-javadoc
+%doc licence.txt
+
+
+%changelog
+* Thu Jun 20 2013 Marcin Dulak <Marcin.Dulak at gmail.com> - 2.2.1-2
+- fix bug #973084 comment #11
+
+* Fri Jun 07 2013 Marcin Dulak <Marcin.Dulak at gmail.com> - 2.2.1-1
+- initial release
diff --git a/sources b/sources
index e69de29..f4062c5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+67504efc98c33850193f45d4c0326669  htmlcleaner-2.2.1-src.zip


More information about the scm-commits mailing list