Compare commits
3 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
8798d8de2f | ||
e354efe4a7 | |||
eff2ebaacd |
@@ -16,3 +16,12 @@
|
||||
|
||||
profile: JispLoadTest
|
||||
java -Xrunhprof:cpu=samples,file=JispLoadTest.profile JispLoadTest
|
||||
@@ -16,7 +17,7 @@
|
||||
jar -cfm jisp.jar JISPJAR.MF com/coyotegulch/jisp/*.class svfl.txt
|
||||
|
||||
docs:
|
||||
- javadoc -d docs com.coyotegulch.jisp
|
||||
+ javadoc -d docs -notimestamp com.coyotegulch.jisp
|
||||
|
||||
clean:
|
||||
-rm -rf *.class
|
||||
|
13
jisp2-2.5.1-reproducible-jar-mtime.patch
Normal file
13
jisp2-2.5.1-reproducible-jar-mtime.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- jisp-2.5.1/Makefile 2024-09-23 17:44:21.056217694 +0200
|
||||
+++ jisp-2.5.1/Makefile 2024-09-23 17:48:23.961290309 +0200
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
jars:
|
||||
-rm -rf *.jar
|
||||
- jar -cfm jisp-demo.jar MANIFEST.MF *.class svfl.txt
|
||||
- jar -cfm jisp.jar JISPJAR.MF com/coyotegulch/jisp/*.class svfl.txt
|
||||
+ jar --date="$$(date -u -d @$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create --file=jisp-demo.jar --manifest=MANIFEST.MF *.class svfl.txt
|
||||
+ jar --date="$$(date -u -d @$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create --file=jisp.jar --manifest=JISPJAR.MF com/coyotegulch/jisp/*.class svfl.txt
|
||||
|
||||
docs:
|
||||
javadoc -d docs -notimestamp com.coyotegulch.jisp
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 15:58:19 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* jisp2-2.5.1-reproducible-jar-mtime.patch
|
||||
+ Use SOURCE_DATE_EPOCH for jar modification times
|
||||
- Modified patch:
|
||||
* jisp2-2.5.1-javac-flags.patch
|
||||
+ build javadoc with the -notimestamp option
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 21 12:37:06 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
53
jisp2.spec
53
jisp2.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package jisp2
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,18 +23,16 @@ Release: 0
|
||||
Summary: The Java Indexed Serialization Package
|
||||
License: Libpng
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://www.coyotegulch.com/jisp/
|
||||
URL: https://www.coyotegulch.com/jisp/
|
||||
Source0: jisp-2.5.1-source.tar.bz2
|
||||
Patch0: jisp2-2.5.1-java5-enum.patch
|
||||
Patch1: jisp2-2.5.1-javac-flags.patch
|
||||
Patch2: jisp2-2.5.1-reproducible-jar-mtime.patch
|
||||
# jisp-3.0.0 won't work with jakarta-turbine-jcs
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: make
|
||||
Requires: javapackages-tools
|
||||
Requires(post): update-alternatives
|
||||
Requires(pre): update-alternatives
|
||||
Provides: hibernate_in_process_cache
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -62,6 +60,9 @@ serialized objects stored in files.
|
||||
%patch -P 0 -p1
|
||||
sed -i -e 's/\r$//g' svfl.txt
|
||||
%patch -P 1 -b .java-cflags
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
|
||||
%patch -P 2 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
export CLASSPATH=
|
||||
@@ -71,47 +72,27 @@ export CLASSPATH=
|
||||
|
||||
%install
|
||||
# jars
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
cp -p jisp.jar \
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 jisp.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# javadoc
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
# demo
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/lib
|
||||
cp jisp-demo.jar %{buildroot}%{_datadir}/%{name}-%{version}/lib
|
||||
cp *.java %{buildroot}%{_datadir}/%{name}-%{version}
|
||||
cp *.txt %{buildroot}%{_datadir}/%{name}-%{version}
|
||||
# hibernate_in_process_cache ghost symlink
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
||||
ln -sf %{_sysconfdir}/alternatives/hibernate_in_process_cache.jar %{buildroot}%{_javadir}/hibernate_in_process_cache.jar
|
||||
|
||||
%post
|
||||
%{_sbindir}/update-alternatives --install %{_javadir}/hibernate_in_process_cache.jar \
|
||||
hibernate_in_process_cache %{_javadir}/%{name}.jar 30
|
||||
|
||||
%preun
|
||||
if [ "$1" = "0" ]; then
|
||||
%{_sbindir}/update-alternatives --remove hibernate_in_process_cache %{_javadir}/%{name}.jar
|
||||
fi
|
||||
install -dm 0755 %{buildroot}%{_datadir}/%{name}/lib
|
||||
install -pm 0644 jisp-demo.jar %{buildroot}%{_datadir}/%{name}/lib
|
||||
install -pm 0644 *.java %{buildroot}%{_datadir}/%{name}
|
||||
install -pm 0644 *.txt %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc svfl.txt
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/hibernate_in_process_cache.jar
|
||||
%ghost %{_sysconfdir}/alternatives/hibernate_in_process_cache.jar
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user