97 lines
3.4 KiB
RPMSpec
97 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package htmlunit
|
|
#
|
|
# Copyright (c) 2024 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: htmlunit
|
|
Version: 4.1.0
|
|
Release: 0
|
|
Summary: A “GUI-Less browser for Java programs”
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://www.htmlunit.org/
|
|
Source0: https://github.com/HtmlUnit/htmlunit/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(commons-codec:commons-codec)
|
|
BuildRequires: mvn(commons-io:commons-io)
|
|
BuildRequires: mvn(commons-logging:commons-logging)
|
|
BuildRequires: mvn(commons-net:commons-net)
|
|
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
BuildRequires: mvn(org.apache.commons:commons-text)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.httpcomponents:httpmime)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
BuildRequires: mvn(org.brotli:dec)
|
|
BuildRequires: mvn(org.htmlunit:htmlunit-core-js)
|
|
BuildRequires: mvn(org.htmlunit:htmlunit-csp)
|
|
BuildRequires: mvn(org.htmlunit:htmlunit-cssparser)
|
|
BuildRequires: mvn(org.htmlunit:htmlunit-websocket-client)
|
|
BuildRequires: mvn(org.htmlunit:htmlunit-xpath)
|
|
BuildRequires: mvn(org.htmlunit:neko-htmlunit)
|
|
BuildRequires: mvn(xerces:xercesImpl)
|
|
BuildRequires: mvn(xml-apis:xml-apis)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
HtmlUnit is a “GUI-less browser for Java programs”. It models HTML documents
|
|
and provides an API that allows you to invoke pages, fill out forms, click
|
|
links, etc‥ just like you do in your "normal" browser.
|
|
|
|
It has fairly good JavaScript support (which is constantly improving) and is
|
|
able to work even with quite complex AJAX libraries, simulating Chrome, Firefox
|
|
or Internet Explorer depending on the configuration used.
|
|
|
|
HtmlUnit is typically used for testing purposes or to retrieve information from
|
|
web sites.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
find src/main/java -name \*.java |xargs sed -i -e 's/\<org\.htmlunit\.jetty\./org.eclipse.jetty./'
|
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin org.owasp:dependency-check-maven
|
|
%pom_remove_plugin org.simplify4u.plugins:pgpverify-maven-plugin
|
|
|
|
%{mvn_file} : %{name}/%{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 LICENSE.txt
|
|
%doc {PERFORMANCE,SECURITY,README}.md
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|