3699250
Name:		htmlcleaner
3699250
Version:	2.2.1
a583669
Release:	6%{?dist}
3699250
Summary:	HTML parser written in Java
3699250
License:	BSD
3699250
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}%20v%{version}/%{name}-%{version}-src.zip
3699250
URL:		http://htmlcleaner.sourceforge.net/
3699250
BuildArch:	noarch
3699250
3699250
BuildRequires:	maven-local
3699250
BuildRequires:	java-devel
3699250
3699250
3699250
%description
3699250
HtmlCleaner is open-source HTML parser written in Java. HTML found on Web is
3699250
usually dirty, ill-formed and unsuitable for further processing.
3699250
For any serious consumption of such documents, it is necessary to first
3699250
clean up the mess and bring the order to tags, attributes and ordinary text.
3699250
For the given HTML document, HtmlCleaner reorders individual elements and
3699250
produces well-formed XML. By default, it follows similar rules that the most
3699250
of web browsers use in order to create Document Object Model. However, user
3699250
may provide custom tag and rule set for tag filtering and balancing.
3699250
3699250
3699250
%package javadoc
3699250
Summary:	API documentation for %{name}
3699250
3699250
3699250
%description javadoc
3699250
This package contains the API documentation for %{name}
3699250
3699250
%prep
3699250
%setup -q -c -T
3699250
jar xf %{SOURCE0}
3699250
%pom_remove_plugin :maven-gpg-plugin
3699250
sed -i -e 's!\r!!g' licence.txt
3699250
543985c
%pom_xpath_remove pom:build/pom:extensions
543985c
3699250
# avoid Pre-built JARfiles
3699250
JARfiles=""
3699250
for j in $(find -name \*.jar); do
3699250
if [ ! -L $j ] ; then
3699250
JARfiles="$JARfiles $j"
3699250
fi
3699250
done
3699250
if [ ! -z "$JARfiles" ] ; then
3699250
echo "These JARfiles should be deleted and symlinked to system JARfiles: $JARfiles"
3699250
exit 1
3699250
fi
3699250
3699250
3699250
%build
3699250
%mvn_build
3699250
3699250
3699250
%install
3699250
%mvn_install
3699250
3699250
3699250
%check
3699250
mvn-rpmbuild verify
3699250
3699250
3699250
%files -f .mfiles
3699250
%doc licence.txt
3699250
3699250
3699250
%files javadoc -f .mfiles-javadoc
3699250
%doc licence.txt
3699250
3699250
3699250
%changelog
a583669
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
a583669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a583669
543985c
* Tue Apr 08 2014 Michael Simacek <msimacek@redhat.com> - 2.2.1-5
543985c
- Remove wagon from extensions
543985c
42b5c0c
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2.1-4
42b5c0c
- Use Requires: java-headless rebuild (#1067528)
42b5c0c
afc3387
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
afc3387
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
afc3387
3699250
* Thu Jun 20 2013 Marcin Dulak <Marcin.Dulak@gmail.com> - 2.2.1-2
3699250
- fix bug #973084 comment #11
3699250
3699250
* Fri Jun 07 2013 Marcin Dulak <Marcin.Dulak@gmail.com> - 2.2.1-1
3699250
- initial release