6
0

Compare commits

...

11 Commits

Author SHA256 Message Date
c5cda94e6f Accepting request 1258545 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/1258545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-binfmt-misc?expand=0&rev=19
2025-03-27 21:33:57 +00:00
485e0a7fd9 Add supplements to openJDK (boo#1205413 and boo#1205825)
OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=17
2025-03-27 14:14:14 +00:00
c8a2540748 Accepting request 828864 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/828864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-binfmt-misc?expand=0&rev=18
2020-08-24 13:13:47 +00:00
78fb842fd4 Accepting request 827804 from home:gmbr3:libexecdir
- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075)
- Spec file cleanups

OBS-URL: https://build.opensuse.org/request/show/827804
OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=15
2020-08-24 08:22:49 +00:00
9d5535cb43 OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=14 2019-02-07 07:41:24 +00:00
1629cdfc19 OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=13 2018-05-17 20:02:46 +00:00
9375cacc5d Accepting request 521954 from Java:packages
1

OBS-URL: https://build.opensuse.org/request/show/521954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-binfmt-misc?expand=0&rev=17
2017-09-09 18:26:01 +00:00
Tomáš Chvátal
875c364430 Accepting request 521916 from home:pluskalm:branches:Java:packages
- Reload systemd-binfmt.service so that binfmt setting are applied
  without need to reboot (bsc#1057531)

OBS-URL: https://build.opensuse.org/request/show/521916
OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=11
2017-09-07 09:01:04 +00:00
c248292051 Accepting request 482748 from Java:packages
- Run desktop db scriptlet updates wrt bsc#1030903

OBS-URL: https://build.opensuse.org/request/show/482748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-binfmt-misc?expand=0&rev=16
2017-04-06 09:01:14 +00:00
Tomáš Chvátal
77b135ddc4 OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-binfmt-misc?expand=0&rev=9 2017-03-26 14:07:53 +00:00
35b7e3ddb4 Accepting request 481751 from Java:packages
- Move the wrappers to libexec wrt bsc#1029650 (see binfmt.d(5))
- Format a bit with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/481751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-binfmt-misc?expand=0&rev=15
2017-03-24 01:22:27 +00:00
2 changed files with 44 additions and 17 deletions

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sat Mar 22 03:14:47 UTC 2025 - Heitor Moreira da Silva <heitor@opensuse.org>
- Add supplements to openJDK (boo#1205413 boo#1205825)
-------------------------------------------------------------------
Wed Aug 19 09:19:01 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075)
- Spec file cleanups
-------------------------------------------------------------------
Thu Sep 7 07:44:19 UTC 2017 - mpluskal@suse.com
- Reload systemd-binfmt.service so that binfmt setting are applied
without need to reboot (bsc#1057531)
-------------------------------------------------------------------
Sun Mar 26 13:05:19 UTC 2017 - tchvatal@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package java-binfmt-misc
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -20,15 +20,22 @@ Name: java-binfmt-misc
Version: 1.4
Release: 0
Summary: The binfmt_misc support for Java
License: GPL-2.0
License: GPL-2.0-only
Group: Development/Languages/Java
Url: http://www.kernel.org/
URL: http://www.kernel.org/
# derived from Linux's Documentation/java.txt
Source0: %{name}-%{version}.tar.gz
BuildRequires: update-desktop-files
Requires(post): desktop-file-utils
Requires(post): shared-mime-info
Requires(post): systemd
Requires(postun): desktop-file-utils
Requires(postun): shared-mime-info
Requires(postun): systemd
# split-alias for libzypp
Provides: jpackage-utils:%{_bindir}/jarwrapper
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Supplements: java
%description
Linux beats them ALL! While all other OS's are TALKING about direct
@@ -45,25 +52,25 @@ gcc %{optflags} javaclassname.c -o javaclassname
%install
# a basic directory structure
install -d -m 0755 %{buildroot}/%{_datadir}/{applications,pixmaps}
install -d -m 0755 %{buildroot}/%{_libexecdir}/binfmt.d
install -d -m 0755 %{buildroot}/%{_bindir}/
install -d -m 0755 %{buildroot}/%{_mandir}/man1
install -d -m 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -d -m 0755 %{buildroot}%{_binfmtdir}
install -d -m 0755 %{buildroot}%{_bindir}/
install -d -m 0755 %{buildroot}%{_mandir}/man1
# wrappers
install -m 0755 javaclassname %{buildroot}/%{_bindir}/
install -m 0755 *wrapper %{buildroot}/%{_bindir}/
install -m 0755 javaclassname %{buildroot}%{_bindir}/
install -m 0755 *wrapper %{buildroot}%{_bindir}/
# desktop menu
install -m 0644 share/java.png %{buildroot}%{_datadir}/pixmaps/java.png
install -m 0644 share/*desktop %{buildroot}%{_datadir}/applications/
for wrapper in jarwrapper javawrapper javawswrapper; do
# init binfmt.d snippet
install -m 0644 ${wrapper}.conf %{buildroot}%{_libexecdir}/binfmt.d/
install -m 0644 ${wrapper}.conf %{buildroot}%{_binfmtdir}/
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/$wrapper.desktop Technology Java
done
# manual page
mv docs/%{name}.1 %{buildroot}/%{_mandir}/man1
mv docs/%{name}.1 %{buildroot}%{_mandir}/man1
(
cd %{buildroot}/%{_mandir}/man1
cd %{buildroot}%{_mandir}/man1
for alias in jarwrapper javawrapper javawswrapper javaclassname; do
ln -sf %{name}.1 $alias.1
done
@@ -71,17 +78,20 @@ done
%post
%desktop_database_post
%mime_database_post
%{_bindir}/systemctl restart systemd-binfmt.service ||:
%postun
%desktop_database_postun
%mime_database_postun
%{_bindir}/systemctl restart systemd-binfmt.service ||:
%files
%defattr(-,root,root,0755)
%doc docs/
%attr(755,root,root) %{_bindir}/*
# Avoid dependency on systemd
%dir %{_libexecdir}/binfmt.d/
%{_libexecdir}/binfmt.d/*.conf
%dir %{_binfmtdir}
%{_binfmtdir}/*.conf
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man1/*