Repack the tarball without binaries
This commit is contained in:
parent
8eb90452c6
commit
ebaf1ede54
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
bsh-1.3.0-src.tar.bz2
|
||||
/2.0b6.tar.gz
|
||||
/bsh-2.0-b6.tar.gz
|
||||
|
14
bsh.spec
14
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
|
||||
|
||||
|
23
generate-tarball.sh
Executable file
23
generate-tarball.sh
Executable file
@ -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"
|
Loading…
Reference in New Issue
Block a user