Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1112639 OBS-URL: https://build.opensuse.org/package/show/Java:packages/htmlcleaner?expand=0&rev=1
77 lines
2.5 KiB
RPMSpec
77 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package htmlcleaner
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: htmlcleaner
|
|
Version: 2.29
|
|
Release: 0
|
|
Summary: An open source HTML parser written in Java
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Java
|
|
URL: https://%{name}.sourceforge.net/
|
|
Source0: https://sourceforge.net/projects/%{name}/files/%{name}/%{name}%%20v%{version}/%{name}-src-%{version}.zip
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.apache.ant:ant)
|
|
BuildRequires: mvn(org.jdom:jdom2)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildRequires: unzip
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
HtmlCleaner is an open source HTML parser written in Java. HTML found on the
|
|
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 some order to the tags, attributes and ordinary text. For any
|
|
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 the Document Object Model. However, you can
|
|
provide custom tag and rule sets for tag filtering and balancing.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_xpath_remove 'pom:extensions'
|
|
%pom_xpath_replace 'pom:project/pom:packaging' '<packaging>jar</packaging>'
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license licence.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license licence.txt
|
|
|
|
%changelog
|