public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Simacek <msimacek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bsh] epel10: Repack the tarball without binaries
Date: Wed, 15 Jul 2026 09:36:36 GMT	[thread overview]
Message-ID: <178410819639.1.4064846170312820093.rpms-bsh-ebaf1ede5444@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bsh
Branch : epel10
Commit : ebaf1ede5444279d7928e8693dbb23dbb02ad0a6
Author : Michael Simacek <msimacek@redhat.com>
Date   : 2018-07-30T20:41:45+02:00
Stats  : +33/-7 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/bsh/c/ebaf1ede5444279d7928e8693dbb23dbb02ad0a6?branch=epel10

Log:
Repack the tarball without binaries

---
diff --git a/.gitignore b/.gitignore
index 112da74..02b4714 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 bsh-1.3.0-src.tar.bz2
 /2.0b6.tar.gz
+/bsh-2.0-b6.tar.gz

diff --git a/bsh.spec b/bsh.spec
index f1f913d..4eda051 100644
--- a/bsh.spec
+++ b/bsh.spec
@@ -33,7 +33,7 @@
 
 Name:           bsh
 Version:        2.0
-Release:        10.%{reltag}%{?dist}
+Release:        11.%{reltag}%{?dist}
 Epoch:          0
 Summary:        Lightweight Scripting for Java
 URL:            http://www.beanshell.org/
@@ -41,8 +41,11 @@ URL:            http://www.beanshell.org/
 # bsf/src/bsh/util/BeanShellBSFEngine.java is public-domain
 License:        ASL 2.0 and BSD and Public Domain
 BuildArch:      noarch
-Source0:        https://github.com/beanshell/beanshell/archive/%{version}%{reltag}.tar.gz
+# ./generate-tarball.sh
+Source0:        %{name}-%{version}-%{reltag}.tar.gz
 Source1:        %{name}-desktop.desktop
+# Remove bundled jars which cannot be easily verified for licensing
+Source2:        generate-tarball.sh
 
 BuildRequires:  javapackages-local
 BuildRequires:  ant
@@ -102,10 +105,6 @@ This package provides %{summary}.
 %prep
 %setup -q -n beanshell-%{version}%{reltag}
 
-rm -r lib
-find -name '*.jar' -delete
-find -name '*.class' -delete
-
 # those are now included in JDK itself
 rm -r engine/javax-src
 
@@ -169,6 +168,9 @@ cat scripts/bshdoc.bsh >> %{buildroot}%{_bindir}/bshdoc
 %license LICENSE NOTICE
 
 %changelog
+* Mon Jul 30 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-11.b6
+- Repack the tarball without binaries
+
 * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-10.b6
 - 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..78b7226
--- /dev/null
+++ b/generate-tarball.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+set -e
+
+name=bsh
+version="$(sed -n 's/Version:\s*//p' *.spec)"
+reltag="$(sed -n 's/%global\s*reltag\s*//p' *.spec)"
+
+# RETRIEVE
+wget "https://github.com/beanshell/beanshell/archive/${version}${reltag}.tar.gz" -O "${name}-${version}-${reltag}.orig.tar.gz"
+
+rm -rf tarball-tmp
+mkdir tarball-tmp
+cd tarball-tmp
+tar xf "../${name}-${version}-${reltag}.orig.tar.gz"
+
+# CLEAN TARBALL
+rm -r */lib
+find -name '*.jar' -delete
+find -name '*.class' -delete
+
+tar cf "../${name}-${version}-${reltag}.tar.gz" *
+cd ..
+rm -r tarball-tmp "${name}-${version}-${reltag}.orig.tar.gz"

diff --git a/sources b/sources
index b47a7ec..b81a685 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b2cc737a850d49c2eb94567de33135cc  2.0b6.tar.gz
+SHA512 (bsh-2.0-b6.tar.gz) = ac65c24fefc9bd46b821b6292f9db35766fc1ad46091baac96c77f131950e6605dee9bf80d9faf1488fd837a0bccab31c466040474805f2bb4b1839acfd2148c

                 reply	other threads:[~2026-07-15  9:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178410819639.1.4064846170312820093.rpms-bsh-ebaf1ede5444@fedoraproject.org \
    --to=msimacek@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox