forked from pool/ghostscript
Accepting request 1155021 from Printing
OBS-URL: https://build.opensuse.org/request/show/1155021 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=65
This commit is contained in:
commit
5914aa83dd
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 27 10:59:43 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Use %patch -P N instead of deprecated %patchN.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 09:07:33 UTC 2024 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Allow to disable apparmor support (ALP supports only SELinux)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 28 10:39:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sun Jan 28 10:39:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
%global psuffix -mini
|
%global psuffix -mini
|
||||||
%else
|
%else
|
||||||
%global psuffix %{nil}
|
%global psuffix %{nil}
|
||||||
|
%bcond_without apparmor
|
||||||
%endif
|
%endif
|
||||||
Name: ghostscript%{psuffix}
|
Name: ghostscript%{psuffix}
|
||||||
Version: 10.02.1
|
Version: 10.02.1
|
||||||
@ -78,11 +79,13 @@ BuildRequires: cups154-devel
|
|||||||
%else
|
%else
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with apparmor}
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} >= 1500
|
||||||
BuildRequires: apparmor-abstractions
|
BuildRequires: apparmor-abstractions
|
||||||
BuildRequires: apparmor-rpm-macros
|
BuildRequires: apparmor-rpm-macros
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
# Always check if latest version of openjpeg becomes compatible with ghostscript
|
# Always check if latest version of openjpeg becomes compatible with ghostscript
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550
|
||||||
BuildRequires: pkgconfig(libopenjp2) >= 2.3.1
|
BuildRequires: pkgconfig(libopenjp2) >= 2.3.1
|
||||||
@ -159,7 +162,7 @@ This package contains the development files for Ghostscript.
|
|||||||
|
|
||||||
# Patch101 ijs_exec_server_dont_use_sh.patch fixes IJS printing problem
|
# Patch101 ijs_exec_server_dont_use_sh.patch fixes IJS printing problem
|
||||||
# additionally allow exec'ing hpijs in apparmor profile was needed (bsc#1128467):
|
# additionally allow exec'ing hpijs in apparmor profile was needed (bsc#1128467):
|
||||||
%patch101 -p1
|
%patch -P 101 -p1
|
||||||
# Remove patch backup files to avoid packaging
|
# Remove patch backup files to avoid packaging
|
||||||
# cf. https://build.opensuse.org/request/show/581052
|
# cf. https://build.opensuse.org/request/show/581052
|
||||||
rm -f Resource/Init/*.ps.orig
|
rm -f Resource/Init/*.ps.orig
|
||||||
@ -305,9 +308,11 @@ done
|
|||||||
# Switch back to the usual build log messages:
|
# Switch back to the usual build log messages:
|
||||||
set -x
|
set -x
|
||||||
install -m 644 catalog.devices $DOCDIR
|
install -m 644 catalog.devices $DOCDIR
|
||||||
|
%if %{with apparmor}
|
||||||
%if "%{flavor}" != "mini"
|
%if "%{flavor}" != "mini"
|
||||||
install -D -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/apparmor.d/ghostscript
|
install -D -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/apparmor.d/ghostscript
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# Move /usr/bin/gs to /usr/bin/gs.bin to be able to use update-alternatives
|
# Move /usr/bin/gs to /usr/bin/gs.bin to be able to use update-alternatives
|
||||||
install -d %{buildroot}%{_sysconfdir}/alternatives
|
install -d %{buildroot}%{_sysconfdir}/alternatives
|
||||||
@ -317,11 +322,13 @@ ln -sf %{_sysconfdir}/alternatives/gs %{buildroot}%{_bindir}/gs
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
%if %{with apparmor}
|
||||||
%if "%{flavor}" != "mini"
|
%if "%{flavor}" != "mini"
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} >= 1500
|
||||||
%apparmor_reload %{_sysconfdir}/apparmor.d/ghostscript
|
%apparmor_reload %{_sysconfdir}/apparmor.d/ghostscript
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%{_sbindir}/update-alternatives \
|
%{_sbindir}/update-alternatives \
|
||||||
--install %{_bindir}/gs gs %{_bindir}/gs.bin 15
|
--install %{_bindir}/gs gs %{_bindir}/gs.bin 15
|
||||||
|
|
||||||
@ -399,10 +406,12 @@ fi
|
|||||||
%{_libdir}/libijs-0.35.so
|
%{_libdir}/libijs-0.35.so
|
||||||
%if "%{flavor}" != "mini"
|
%if "%{flavor}" != "mini"
|
||||||
%exclude %{_libdir}/ghostscript/%{version}/X11.so
|
%exclude %{_libdir}/ghostscript/%{version}/X11.so
|
||||||
|
%if %{with apparmor}
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} < 1500
|
||||||
%dir %{_sysconfdir}/apparmor.d
|
%dir %{_sysconfdir}/apparmor.d
|
||||||
%endif
|
%endif
|
||||||
%{_sysconfdir}/apparmor.d/ghostscript
|
%{_sysconfdir}/apparmor.d/ghostscript
|
||||||
|
%endif
|
||||||
|
|
||||||
%files x11
|
%files x11
|
||||||
%{_libdir}/ghostscript/%{version}/X11.so
|
%{_libdir}/ghostscript/%{version}/X11.so
|
||||||
|
Loading…
Reference in New Issue
Block a user