6
0
forked from pool/paperclips

Compare commits

...

10 Commits

Author SHA256 Message Date
d92b798938 Accepting request 1243252 from Java:packages
fix build

OBS-URL: https://build.opensuse.org/request/show/1243252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=7
2025-02-05 11:41:54 +00:00
58cda98d0b OBS-URL: https://build.opensuse.org/package/show/Java:packages/paperclips?expand=0&rev=16 2025-02-05 06:46:12 +00:00
5c06d9c9e9 Accepting request 1204572 from Java:packages
Fix build after removal of the default %{java_home} define

OBS-URL: https://build.opensuse.org/request/show/1204572
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=6
2024-09-30 13:40:08 +00:00
92b6d58820 OBS-URL: https://build.opensuse.org/package/show/Java:packages/paperclips?expand=0&rev=14 2024-09-29 19:55:20 +00:00
7f515a14d5 OBS-URL: https://build.opensuse.org/package/show/Java:packages/paperclips?expand=0&rev=13 2024-09-29 09:19:36 +00:00
d835ef42bb Accepting request 1203013 from Java:packages
Use SOURCE_DATE_EPOCH for reproducible jar mtime

OBS-URL: https://build.opensuse.org/request/show/1203013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=5
2024-09-25 19:53:15 +00:00
198f8647e3 OBS-URL: https://build.opensuse.org/package/show/Java:packages/paperclips?expand=0&rev=11 2024-09-24 14:40:19 +00:00
ba02792542 Accepting request 1148878 from Java:packages
rpm 4.20 compat

OBS-URL: https://build.opensuse.org/request/show/1148878
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=4
2024-02-22 19:57:47 +00:00
076e2634c2 Accepting request 964198 from Java:packages
Build with source and target levels 8

OBS-URL: https://build.opensuse.org/request/show/964198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=3
2022-03-23 19:18:34 +00:00
dbfe0e5af4 Accepting request 527464 from Java:packages
Fix build with jdk9

OBS-URL: https://build.opensuse.org/request/show/527464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/paperclips?expand=0&rev=2
2017-09-20 15:13:51 +00:00
2 changed files with 13 additions and 23 deletions

View File

@@ -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

View File

@@ -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} \