From 02d513964d9f205679e10e8c362ce25f795dbf1b Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Jul 31 2018 08:41:51 +0000 Subject: Repack the tarball without binaries --- diff --git a/.gitignore b/.gitignore index 8fc0704..dab5fc4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ cal10n-0.7.4.tar.gz /cal10n-0.7.6.tar.gz /cal10n-0.7.7.tar.gz /v_0.8.1.tar.gz +/cal10n-0.8.1.tar.gz diff --git a/cal10n.spec b/cal10n.spec index 2c692d3..6fe0a5e 100644 --- a/cal10n.spec +++ b/cal10n.spec @@ -1,10 +1,13 @@ Name: cal10n Version: 0.8.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Compiler assisted localization library (CAL10N) License: MIT URL: http://cal10n.qos.ch -Source0: https://github.com/qos-ch/%{name}/archive/v_%{version}.tar.gz +# ./generate-tarball.sh +Source0: %{name}-%{version}.tar.gz +# Remove bundled binaries which cannot be easily verified for licensing +Source1: generate-tarball.sh BuildArch: noarch BuildRequires: maven-local @@ -75,6 +78,9 @@ find . -name \*.jar -delete %license LICENSE.txt %changelog +* Tue Jul 31 2018 Michael Simacek - 0.8.1-7 +- Repack the tarball without binaries + * Thu Jul 12 2018 Fedora Release Engineering - 0.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100755 index 0000000..a0416b6 --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +name=cal10n +version="$(sed -n 's/Version:\s*//p' *.spec)" + +# RETRIEVE +wget "https://github.com/qos-ch/${name}/archive/v_${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 +find -name '*.jar' -delete +find -name '*.class' -delete +# Contains minified js of uncertain origin +rm -r */cal10n-site + +tar cf "../${name}-${version}.tar.gz" * +cd .. +rm -r tarball-tmp "${name}-${version}.orig.tar.gz" diff --git a/sources b/sources index 1fc5d19..9a010c5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -442958fe53819be3bfc86b4beb0f27b3 v_0.8.1.tar.gz +SHA512 (cal10n-0.8.1.tar.gz) = 6df19e5aebba47461e760ac80212eab66d9c9d31956c20612492f411de8c0e632dfa189edf9b4246665af4e6c5f410ad2711d400c2a921aa670efd868498e7d4