From 75ecbda13150e15c7e33c29b08654971afc65767 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Thu, 29 Jun 2023 11:17:16 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 3 ++- README.md | 3 +++ generate-tarball.sh | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 README.md create mode 100644 generate-tarball.sh diff --git a/.gitignore b/.gitignore index 4d6a41f..4106cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/byte-buddy-1.12.10.tar.gz +/*.src.rpm +/*.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee59cb1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# byte-buddy + +The byte-buddy package \ No newline at end of file diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100644 index 0000000..f9a0dd9 --- /dev/null +++ b/generate-tarball.sh @@ -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"