Name: htmlcleaner Version: 2.2.1 Release: %mkrel 5 Group: Development/Java 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 * Wed Oct 15 2014 umeabot <umeabot> 2.2.1-5.mga5 + Revision: 749665 - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild * Sat May 24 2014 dmorgan <dmorgan> 2.2.1-3.mga5 + Revision: 625383 - imported package htmlcleaner * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jun 20 2013 Marcin Dulak <Marcin.Dulak@gmail.com> - 2.2.1-2 - fix bug #973084 comment #11 * Fri Jun 07 2013 Marcin Dulak <Marcin.Dulak@gmail.com> - 2.2.1-1 - initial release