2019-02-01 09:48:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package jsoup
|
|
|
|
#
|
2021-08-25 15:43:14 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-02-01 09:48:22 +01:00
|
|
|
#
|
|
|
|
# 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: jsoup
|
2021-08-25 15:43:14 +02:00
|
|
|
Version: 1.14.2
|
2019-02-01 09:48:22 +01:00
|
|
|
Release: 0
|
2019-02-02 22:01:44 +01:00
|
|
|
Summary: Java library for working with HTML
|
2019-02-01 09:48:22 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Java
|
2021-08-25 15:43:14 +02:00
|
|
|
URL: https://jsoup.org/
|
2019-02-22 23:40:18 +01:00
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2019-02-01 09:48:22 +01:00
|
|
|
Source1: %{name}-build.xml
|
2019-02-22 23:40:18 +01:00
|
|
|
# The sources contain non-free scraped web pages as test data
|
|
|
|
Source100: generate-tarball.sh
|
2019-02-01 09:48:22 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: java-devel >= 1.7
|
|
|
|
BuildRequires: javapackages-local
|
2021-08-25 15:43:14 +02:00
|
|
|
BuildRequires: jsr-305
|
2019-02-01 09:48:22 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2019-02-02 22:01:44 +01:00
|
|
|
jsoup is a Java library for working with HTML.
|
|
|
|
It provides an API for extracting and manipulating data,
|
|
|
|
using DOM, CSS, and jquery-like methods.
|
2019-02-01 09:48:22 +01:00
|
|
|
|
2019-02-02 22:01:44 +01:00
|
|
|
jsoup implements the WHATWG HTML5 specification.
|
2019-02-01 09:48:22 +01:00
|
|
|
|
2019-02-02 22:01:44 +01:00
|
|
|
- scrapes and parses HTML from a URL, file, or string
|
|
|
|
- finds and extracts data, using DOM traversal or CSS selectors
|
|
|
|
- manipulates the HTML elements, attributes, and text
|
|
|
|
- cleans user-submitted content against a safe white-list,
|
2019-02-01 09:48:22 +01:00
|
|
|
to prevent XSS attacks
|
2019-02-02 22:01:44 +01:00
|
|
|
- outputs tidied HTML
|
2019-02-01 09:48:22 +01:00
|
|
|
|
2019-02-02 22:01:44 +01:00
|
|
|
jsoup can deal with invalid HTML tag soup.
|
2019-02-01 09:48:22 +01:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
|
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin
|
2021-08-25 15:43:14 +02:00
|
|
|
%pom_remove_plugin :japicmp-maven-plugin
|
|
|
|
%pom_remove_plugin :maven-failsafe-plugin
|
2019-02-01 09:48:22 +01:00
|
|
|
|
|
|
|
%build
|
2021-08-25 15:43:14 +02:00
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib jsr-305
|
|
|
|
%{ant} -f %{name}-build.xml jar javadoc
|
2019-02-01 09:48:22 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
|
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}
|
|
|
|
install -pdm 0755 target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%doc README.md CHANGES
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%license LICENSE
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|