Fridrich Strba 2021-08-27 06:55:02 +00:00 committed by Git OBS Bridge
parent 5c00cebf86
commit 1e9930d842
6 changed files with 23 additions and 32 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/jhy/jsoup.git</param>
<param name="version">1.14.2</param>
<param name="revision">jsoup-1.14.2</param>
<param name="exclude">src/test/resources</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,21 +0,0 @@
#!/bin/bash
set -e
name=jsoup
version="$(sed -n 's/Version:\s*//p' *.spec)"
# RETRIEVE
wget "https://github.com/jhy/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
rm -rf tarball-tmp
mkdir tarball-tmp
cd tarball-tmp
tar xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
# contains scraped news articles (non-free)
rm -r */src/test/resources
tar czf "../${name}-${version}.tar.gz" *
cd ..
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84e5bf69bd73e50fb348a0963a067e8306a77db6ffc54dac1aa16c9fb9cfb4e5
size 299703

3
jsoup-1.14.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0857c2c3399879acdd239ef3d56fdcbfe73311d304cf72fb9f3c7ac24f3ef221
size 227624

View File

@ -106,7 +106,7 @@
nonavbar="false"
serialwarn="false"
source="${compiler.source}"
encoding="${project.build.sourceEncoding}"
encoding="${project.build.sourceEncoding}"
linksource="false"
overview="${build.javadocDir.0}/overview.html"
doctitle="${project.name} ${project.version} API"
@ -135,10 +135,10 @@
<attribute name="Bundle-SymbolicName" value="org.jsoup"/>
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="Export-Package" value="org.jsoup;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,javax.net.ssl,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety&quot;,org.jsoup.examples;version=&quot;${project.version}&quot;;uses:=&quot;org.jsoup.nodes&quot;,org.jsoup.helper;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,javax.net.ssl,javax.xml.parsers,org.jsoup,org.jsoup.nodes,org.jsoup.parser,org.jsoup.select,org.w3c.dom&quot;,org.jsoup.internal;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,javax.annotation.meta&quot;,org.jsoup.nodes;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,org.jsoup,org.jsoup.parser,org.jsoup.select&quot;,org.jsoup.parser;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,org.jsoup.nodes&quot;,org.jsoup.safety;version=&quot;${project.version}&quot;;uses:=&quot;org.jsoup.nodes&quot;,org.jsoup.select;version=&quot;${project.version}&quot;;uses:=&quot;javax.annotation,org.jsoup.nodes&quot;"/>
<attribute name="Import-Package" value="javax.annotation,javax.annotation.meta,javax.net.ssl,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.stream,org.jsoup,org.jsoup.helper,org.jsoup.internal,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety,org.jsoup.select,org.w3c.dom"/>
<attribute name="Export-Package" value="org.jsoup;uses:=&quot;javax.annotation,javax.net.ssl,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety&quot;;version=&quot;${project.version}&quot;,org.jsoup.examples;uses:=&quot;org.jsoup.nodes&quot;;version=&quot;${project.version}&quot;,org.jsoup.helper;uses:=&quot;javax.annotation,javax.net.ssl,javax.xml.parsers,org.jsoup,org.jsoup.nodes,org.jsoup.parser,org.jsoup.select,org.w3c.dom&quot;;version=&quot;${project.version}&quot;,org.jsoup.internal;uses:=&quot;javax.annotation,javax.annotation.meta&quot;;version=&quot;${project.version}&quot;,org.jsoup.nodes;uses:=&quot;javax.annotation,org.jsoup,org.jsoup.parser,org.jsoup.select&quot;;version=&quot;${project.version}&quot;,org.jsoup.parser;uses:=&quot;javax.annotation,org.jsoup.nodes&quot;;version=&quot;${project.version}&quot;,org.jsoup.safety;uses:=&quot;org.jsoup.nodes&quot;;version=&quot;${project.version}&quot;,org.jsoup.select;uses:=&quot;javax.annotation,org.jsoup.nodes&quot;;version=&quot;${project.version}&quot;"/>
<attribute name="Import-Package" value="javax.annotation,javax.annotation.meta,javax.net.ssl,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.stream,org.jsoup,org.jsoup.helper,org.jsoup.internal,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety,org.jsoup.select,org.w3c.dom"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
</manifest>
</manifest>
</jar>
</target>

View File

@ -24,10 +24,8 @@ License: MIT
Group: Development/Libraries/Java
URL: https://jsoup.org/
# ./generate-tarball.sh
Source0: %{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-build.xml
# The sources contain non-free scraped web pages as test data
Source100: generate-tarball.sh
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.7
@ -59,7 +57,7 @@ Group: Documentation/HTML
API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%setup -q
cp %{SOURCE1} .
%pom_remove_plugin :animal-sniffer-maven-plugin