re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-06-29 11:17:16 +02:00
parent 41d53538e1
commit 75ecbda131
3 changed files with 28 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/byte-buddy-1.12.10.tar.gz
/*.src.rpm
/*.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# byte-buddy
The byte-buddy package

23
generate-tarball.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -e
name=byte-buddy
version="$(sed -n 's/Version:\s*//p' *.spec)"
# RETRIEVE
wget "https://github.com/raphw/byte-buddy/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
rm -rf tarball-tmp
mkdir tarball-tmp
pushd tarball-tmp
tar -xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
find -name '*.jar' -delete
find -name '*.class' -delete
find -name '*.zip' -delete
find -name '*.dll' -delete
tar -czf "../${name}-${version}.tar.gz" *
popd
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"