Fridrich Strba 2019-02-22 22:40:18 +00:00 committed by Git OBS Bridge
parent 3ad2254382
commit 87abb5b0be
4 changed files with 32 additions and 3 deletions

21
generate-tarball.sh Normal file
View File

@ -0,0 +1,21 @@
#!/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 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:c4e06b8cc43b39d0f35e6e39cbc1eddbb45132ef8bbb1e9c489a04a7cc03338d oid sha256:6054c9a7f5cc99b2e6c12016e68075a59b76d4415a626cc609f6a2bc8bddf805
size 386845 size 242975

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 22 22:39:00 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove from the tarball the non-free test data
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Feb 2 18:52:01 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Sat Feb 2 18:52:01 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -23,8 +23,11 @@ Summary: Java library for working with HTML
License: MIT License: MIT
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://jsoup.org/ URL: http://jsoup.org/
Source0: https://github.com/jhy/%{name}/archive/%{name}-%{version}.tar.gz # ./generate-tarball.sh
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-build.xml Source1: %{name}-build.xml
# The sources contain non-free scraped web pages as test data
Source100: generate-tarball.sh
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.7 BuildRequires: java-devel >= 1.7