Fridrich Strba 2023-09-10 10:27:38 +00:00 committed by Git OBS Bridge
parent a8e6ed33ed
commit c5f5ae3469
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 10 10:27:31 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: Do not create timestamps with bnd wrap
-------------------------------------------------------------------
Sun Aug 27 06:46:38 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@ -81,13 +81,18 @@ cp %{SOURCE1} build.xml
-Djline2.jar=$(find-jar jline/jline) \
jar javadoc
echo "-reproducible: true" >> bnd.bnd
echo "-noextraheaders: true" >> bnd.bnd
echo "-snapshot: SNAPSHOT" >> bnd.bnd
# Convert to OSGi bundle
bnd wrap \
--bsn %{name} \
--version %{version} \
--output target/%{name}-%{version}.bar \
--properties bnd.bnd \
target/%{name}-%{version}.jar
--force \
--bsn %{name} \
--version %{version} \
--output target/%{name}-%{version}.bar \
--properties bnd.bnd \
target/%{name}-%{version}.jar
mv target/%{name}-%{version}.bar target/%{name}-%{version}.jar
%install