This commit is contained in:
parent
3ad2254382
commit
87abb5b0be
21
generate-tarball.sh
Normal file
21
generate-tarball.sh
Normal 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"
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c4e06b8cc43b39d0f35e6e39cbc1eddbb45132ef8bbb1e9c489a04a7cc03338d
|
||||
size 386845
|
||||
oid sha256:6054c9a7f5cc99b2e6c12016e68075a59b76d4415a626cc609f6a2bc8bddf805
|
||||
size 242975
|
||||
|
@ -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>
|
||||
|
||||
|
@ -23,8 +23,11 @@ Summary: Java library for working with HTML
|
||||
License: MIT
|
||||
Group: Development/Libraries/Java
|
||||
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
|
||||
# The sources contain non-free scraped web pages as test data
|
||||
Source100: generate-tarball.sh
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.7
|
||||
|
Loading…
Reference in New Issue
Block a user