forked from pool/paperclips
Compare commits
10 Commits
d9d9bbc12f
...
d92b798938
Author | SHA256 | Date | |
---|---|---|---|
d92b798938 | |||
58cda98d0b | |||
5c06d9c9e9 | |||
92b6d58820 | |||
7f515a14d5 | |||
d835ef42bb | |||
198f8647e3 | |||
ba02792542 | |||
076e2634c2 | |||
dbfe0e5af4 |
@@ -1,24 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 21 21:05:12 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
Wed Feb 5 06:45:50 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Use %patch -P N instead of deprecated %patchN.
|
||||
- Work around the fact that %%_libdir is now not defined for noarch
|
||||
builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 09:23:26 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Compile with java source and target levels 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 20 07:02:33 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Specify java source and target level 1.6: fix build with jdk9
|
||||
- Added patch:
|
||||
* paperclips-1.0.4-javadoc.patch
|
||||
+ Don't hardcode the source level, specify it on command-line
|
||||
+ Fix the classpath to look for swt.jar in the right place
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 9 09:26:00 UTC 2016 - mailaender@opensuse.org
|
||||
|
||||
- initial packaging of version 1.0.4
|
||||
Sun Sep 29 19:55:05 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fix build after removal of the default %%{java_home} define
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package paperclips
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -65,16 +65,20 @@ and the layout is up to you.
|
||||
%patch -P 0 -p1
|
||||
|
||||
%build
|
||||
export CLASSPATH=%{_libdir}/java/swt.jar
|
||||
export CLASSPATH=$(find-jar swt)
|
||||
|
||||
pushd src
|
||||
%javac -source 1.8 -target 1.8 -g -encoding UTF-8 $(find . -type f -name "*.java")
|
||||
javac -source 1.8 -target 1.8 -g -encoding UTF-8 $(find . -type f -name "*.java")
|
||||
jarfile="../net.sf.paperclips_%{version}.jar"
|
||||
files="$(find . -type f \( -name '*.class' -o -name '*.properties' \))"
|
||||
test ! -d classes && mf="" \
|
||||
|| mf="`find classes/ -type f -name "*.mf" 2>/dev/null`"
|
||||
test -n "$mf" && jar cvfm $jarfile $mf $files \
|
||||
|| %jar cvf $jarfile $files
|
||||
|| jar --create --verbose \
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
|
||||
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
|
||||
%endif
|
||||
--file=$jarfile $files
|
||||
popd
|
||||
|
||||
%{ant} \
|
||||
|
Reference in New Issue
Block a user