Repack the tarball without binaries

This commit is contained in:
Michael Simacek 2018-07-30 19:31:48 +02:00
parent 7d4e0b0a4d
commit 630f5595ab
4 changed files with 30 additions and 3 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
/1.65.tar.gz
/1.66.tar.gz
/1.71.tar.gz
/beust-jcommander-1.71.tar.gz

View File

@ -1,14 +1,17 @@
Name: beust-jcommander
Version: 1.71
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Java framework for parsing command line parameters
License: ASL 2.0
URL: http://jcommander.org/
BuildArch: noarch
Source0: https://github.com/cbeust/jcommander/archive/%{version}.tar.gz
# ./generate-tarball.sh
Source0: %{name}-%{version}.tar.gz
# Adapted from earlier version that still shipped poms. It uses kobalt for building now
Source1: %{name}.pom
# Cleaned up bundled jars hose licensing cannot be easily verified
Source2: generate-tarball.sh
Patch0: 0001-ParseValues-NullPointerException-patch.patch
@ -49,6 +52,9 @@ sed -i 's/@VERSION@/%{version}/g' pom.xml
%doc license.txt notice.md
%changelog
* Mon Jul 30 2018 Michael Simacek <msimacek@redhat.com> - 1.71-5
- Repack the tarball without binaries
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.71-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

20
generate-tarball.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
name=beust-jcommander
version="$(sed -n 's/Version:\s*//p' *.spec)"
# RETRIEVE
wget "https://github.com/cbeust/jcommander/archive/${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
rm -r */gradle* */kobalt* */lib
tar cf "../${name}-${version}.tar.gz" *
cd ..
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"

View File

@ -1 +1 @@
SHA512 (1.71.tar.gz) = 50424b00ee8f53870108eae8a117c92d1ae35bfd0aaba64bdcc0ae015029f81ff8bad448a4ebbd095bee32b0cab9162748a7d3ff39fce21925b5eb431e7811d0
SHA512 (beust-jcommander-1.71.tar.gz) = a3f7061f3afacd57092f62b9f8540a1f1e210ad6efc7f41ae10cee725a546b4cdcecee4a4f7056224936a59be18b11f2547002ec18be36626847b79a27a081d1