forked from pool/java-binfmt-misc
Compare commits
11 Commits
812f169eda
...
c5cda94e6f
Author | SHA256 | Date | |
---|---|---|---|
c5cda94e6f | |||
485e0a7fd9 | |||
c8a2540748 | |||
78fb842fd4 | |||
9d5535cb43 | |||
1629cdfc19 | |||
9375cacc5d | |||
|
875c364430 | ||
c248292051 | |||
|
77b135ddc4 | ||
35b7e3ddb4 |
@@ -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
|
Sun Mar 26 13:05:19 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package java-binfmt-misc
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Version: 1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The binfmt_misc support for Java
|
Summary: The binfmt_misc support for Java
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Java
|
Group: Development/Languages/Java
|
||||||
Url: http://www.kernel.org/
|
URL: http://www.kernel.org/
|
||||||
# derived from Linux's Documentation/java.txt
|
# derived from Linux's Documentation/java.txt
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRequires: update-desktop-files
|
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
|
# split-alias for libzypp
|
||||||
Provides: jpackage-utils:%{_bindir}/jarwrapper
|
Provides: jpackage-utils:%{_bindir}/jarwrapper
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
Supplements: java
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Linux beats them ALL! While all other OS's are TALKING about direct
|
Linux beats them ALL! While all other OS's are TALKING about direct
|
||||||
@@ -45,25 +52,25 @@ gcc %{optflags} javaclassname.c -o javaclassname
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
# a basic directory structure
|
# a basic directory structure
|
||||||
install -d -m 0755 %{buildroot}/%{_datadir}/{applications,pixmaps}
|
install -d -m 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
|
||||||
install -d -m 0755 %{buildroot}/%{_libexecdir}/binfmt.d
|
install -d -m 0755 %{buildroot}%{_binfmtdir}
|
||||||
install -d -m 0755 %{buildroot}/%{_bindir}/
|
install -d -m 0755 %{buildroot}%{_bindir}/
|
||||||
install -d -m 0755 %{buildroot}/%{_mandir}/man1
|
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||||
# wrappers
|
# wrappers
|
||||||
install -m 0755 javaclassname %{buildroot}/%{_bindir}/
|
install -m 0755 javaclassname %{buildroot}%{_bindir}/
|
||||||
install -m 0755 *wrapper %{buildroot}/%{_bindir}/
|
install -m 0755 *wrapper %{buildroot}%{_bindir}/
|
||||||
# desktop menu
|
# desktop menu
|
||||||
install -m 0644 share/java.png %{buildroot}%{_datadir}/pixmaps/java.png
|
install -m 0644 share/java.png %{buildroot}%{_datadir}/pixmaps/java.png
|
||||||
install -m 0644 share/*desktop %{buildroot}%{_datadir}/applications/
|
install -m 0644 share/*desktop %{buildroot}%{_datadir}/applications/
|
||||||
for wrapper in jarwrapper javawrapper javawswrapper; do
|
for wrapper in jarwrapper javawrapper javawswrapper; do
|
||||||
# init binfmt.d snippet
|
# 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
|
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/$wrapper.desktop Technology Java
|
||||||
done
|
done
|
||||||
# manual page
|
# 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
|
for alias in jarwrapper javawrapper javawswrapper javaclassname; do
|
||||||
ln -sf %{name}.1 $alias.1
|
ln -sf %{name}.1 $alias.1
|
||||||
done
|
done
|
||||||
@@ -71,17 +78,20 @@ done
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%desktop_database_post
|
%desktop_database_post
|
||||||
|
%mime_database_post
|
||||||
|
%{_bindir}/systemctl restart systemd-binfmt.service ||:
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%desktop_database_postun
|
%desktop_database_postun
|
||||||
|
%mime_database_postun
|
||||||
|
%{_bindir}/systemctl restart systemd-binfmt.service ||:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
|
||||||
%doc docs/
|
%doc docs/
|
||||||
%attr(755,root,root) %{_bindir}/*
|
%attr(755,root,root) %{_bindir}/*
|
||||||
# Avoid dependency on systemd
|
# Avoid dependency on systemd
|
||||||
%dir %{_libexecdir}/binfmt.d/
|
%dir %{_binfmtdir}
|
||||||
%{_libexecdir}/binfmt.d/*.conf
|
%{_binfmtdir}/*.conf
|
||||||
%{_datadir}/applications/*
|
%{_datadir}/applications/*
|
||||||
%{_datadir}/pixmaps/*
|
%{_datadir}/pixmaps/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
Reference in New Issue
Block a user