Clean tarball from proprietary content

Resolves: RHEL-40364
This commit is contained in:
Mikolaj Izdebski 2024-06-07 10:32:26 +02:00
parent 3333a1ca72
commit 00daefa453
3 changed files with 9 additions and 6 deletions

View File

@ -15,6 +15,9 @@ tar xf "../${name}-${version}.orig.tar.gz"
# CLEAN TARBALL
find -name '*.jar' -delete
find -name '*.class' -delete
rm */src/*.tar.gz
rm -r */samples
rm -r */xalan-test
mv * ${name}-${version}
tar czf "../${name}-${version}.tar.gz" *

View File

@ -1,3 +1,3 @@
SHA512 (xalan-j2-2.7.3.tar.gz) = 846f8da060888977ade2816db0c30616ae66013ce9abbe3e17318b792a6fa31d83856f798a0b8dddc506cf6ffd0e73389b850e124db77acd42aadb37e9d0bfdd
SHA512 (xalan-j2-2.7.3.tar.gz) = 48fcec89040236c8ab4cf3facf54e6c491a4d4851f6fe47369150f033ed6fcdab50fa228f36200e0de65c251a7e24a7f76f56fbb9f3e5d071d139a254710cc4d
SHA512 (xalan-2.7.3.pom) = 65f1bb02ad4d0ddc1da20a54e6937353e39a9f70f9860b74ffef6061f7c55980f31258ba7e4b2664a6546208e4d41a4bd2c8beed3739248d89424d4bce561434
SHA512 (serializer-2.7.3.pom) = ab19e0d5de56a0b6db4515f3169bef9aadd8c6522296da4bb64eb2b271b4293aa4b37bc2c34fd1df50c53fb431c469eaa3df7144f53f4b6eb9faf9f9bd9a43e1

View File

@ -1,6 +1,6 @@
Name: xalan-j2
Version: 2.7.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Java XSLT processor
# src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C
License: Apache-2.0 AND W3C
@ -65,11 +65,7 @@ Documentation for %{name}.
%setup -q
%patch0 -p0
find . -name '*.jar' -delete
find . -name '*.class' -delete
sed -i '/<bootclasspath/d' build.xml
(cd ./src && tar xf xml-commons-external-*-src.tar.gz)
# Remove classpaths from manifests
sed -i '/class-path/I d' $(find -iname '*manifest*')
@ -122,6 +118,10 @@ jar ufm build/xalan-interpretive.jar %{SOURCE5}
%doc build/docs/*
%changelog
* Fri Jun 07 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.3-2
- Remove proprietary data from source RPM
- Resolves: RHEL-40364
* Fri Feb 02 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.3-1
- Update to upstream version 2.7.3
- Remove alternatives post striplet