Repack tarball to remove possibly proprietary binaries
This commit is contained in:
parent
af4e5b05b4
commit
dc2887f1e1
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ qdox-1.12-project.tar.bz2
|
||||
/qdox-2.0-M5-project.tar.gz
|
||||
/qdox-2.0-M7-project.tar.gz
|
||||
/qdox-2.0-M9-project.tar.gz
|
||||
/qdox-2.0-M9.tar.gz
|
||||
|
24
generate-tarball.sh
Executable file
24
generate-tarball.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
name=qdox
|
||||
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
||||
vertag="$(sed -n 's/%global\s*vertag\s*//p' *.spec)"
|
||||
|
||||
# RETRIEVE
|
||||
wget "http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/${version}-${vertag}/${name}-${version}-${vertag}-project.tar.gz" -O "${name}-${version}-${vertag}.orig.tar.gz"
|
||||
|
||||
rm -rf tarball-tmp
|
||||
mkdir tarball-tmp
|
||||
cd tarball-tmp
|
||||
tar xf "../${name}-${version}-${vertag}.orig.tar.gz"
|
||||
|
||||
# CLEAN TARBALL
|
||||
find -name '*.jar' -delete
|
||||
find -name '*.class' -delete
|
||||
# contains possibly proprietary binaries of YACC
|
||||
rm -r */bootstrap
|
||||
|
||||
tar cf "../${name}-${version}-${vertag}.tar.gz" *
|
||||
cd ..
|
||||
rm -r tarball-tmp "${name}-${version}-${vertag}.orig.tar.gz"
|
11
qdox.spec
11
qdox.spec
@ -3,14 +3,18 @@
|
||||
Summary: Extract class/interface/method definitions from sources
|
||||
Name: qdox
|
||||
Version: 2.0
|
||||
Release: 2.%{vertag}%{?dist}
|
||||
Release: 3.%{vertag}%{?dist}
|
||||
Epoch: 0
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/paul-hammant/qdox
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: http://repo2.maven.org/maven2/com/thoughtworks/qdox/qdox/%{version}-%{vertag}/%{name}-%{version}-%{vertag}-project.tar.gz
|
||||
# ./generate-tarball.sh
|
||||
Source0: %{name}-%{version}-%{vertag}.tar.gz
|
||||
Source1: qdox-MANIFEST.MF
|
||||
# Remove bundled binaries which are possibly proprietary
|
||||
Source2: generate-tarball.sh
|
||||
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
||||
@ -72,6 +76,9 @@ jar ufm target/%{name}-%{version}*.jar %{SOURCE1}
|
||||
%doc LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-3.M9
|
||||
- Repack tarball to remove possibly proprietary binaries
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-2.M9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (qdox-2.0-M9-project.tar.gz) = 1f124156d72338242c348296c44730180c91e214601018c0c0872cf954c0dc23001d9041edef758551e40895753f811fc67fc2d031cf148d6a1e7eee83a06787
|
||||
SHA512 (qdox-2.0-M9.tar.gz) = 739f80beb5c9096774923a29731a93754be9b6d434c2fcdaced70dd2f43f102041c53f6b405b88fa2482f3a8f4e8ede701ffc6b14dcbc77c5030c1e0060149f9
|
||||
|
Loading…
Reference in New Issue
Block a user