forked from pool/ghostscript
Accepting request 881824 from Printing
OBS-URL: https://build.opensuse.org/request/show/881824 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=49
This commit is contained in:
commit
967d1b20b0
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 26 13:42:05 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Do not rely on apparmor at all for the -mini flavor:
|
||||||
|
+ Drop apparmor-abstraction and apparmor-rpm-macros
|
||||||
|
BuildRequires.
|
||||||
|
+ Do not package apparmor files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 9 12:34:30 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Do not require apparmor-abstractions: with the mini package being
|
||||||
|
used only during build (and never on end user workstations),
|
||||||
|
apparmor is not going to be enabled (build is in chroot/vm).
|
||||||
|
Keeping the dep-chain of the -mini flavor as small as possible.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 5 12:35:16 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
Fri Mar 5 12:35:16 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -26,13 +26,8 @@ BuildRequires: libtool
|
|||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
BuildRequires: apparmor-abstractions
|
|
||||||
BuildRequires: apparmor-rpm-macros
|
|
||||||
Requires: apparmor-abstractions
|
|
||||||
%endif
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun):update-alternatives
|
||||||
Summary: Minimal Ghostscript for minimal build requirements
|
Summary: Minimal Ghostscript for minimal build requirements
|
||||||
License: AGPL-3.0-only
|
License: AGPL-3.0-only
|
||||||
Group: Productivity/Office/Other
|
Group: Productivity/Office/Other
|
||||||
@ -104,9 +99,9 @@ Patch101: ijs_exec_server_dont_use_sh.patch
|
|||||||
# in openSUSE products, cf. https://build.opensuse.org/request/show/877083
|
# in openSUSE products, cf. https://build.opensuse.org/request/show/877083
|
||||||
Provides: ghostscript_any = %{version}
|
Provides: ghostscript_any = %{version}
|
||||||
Conflicts: ghostscript
|
Conflicts: ghostscript
|
||||||
Conflicts: ghostscript-x11
|
|
||||||
Conflicts: ghostscript-devel
|
Conflicts: ghostscript-devel
|
||||||
Conflicts: ghostscript-library
|
Conflicts: ghostscript-library
|
||||||
|
Conflicts: ghostscript-x11
|
||||||
# Install into this non-root directory (required when norootforbuild is used):
|
# Install into this non-root directory (required when norootforbuild is used):
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -149,9 +144,9 @@ Summary: Development files for Minimal Ghostscript
|
|||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: ghostscript-mini = %{version}
|
Requires: ghostscript-mini = %{version}
|
||||||
Conflicts: ghostscript
|
Conflicts: ghostscript
|
||||||
Conflicts: ghostscript-x11
|
|
||||||
Conflicts: ghostscript-devel
|
Conflicts: ghostscript-devel
|
||||||
Conflicts: ghostscript-library
|
Conflicts: ghostscript-library
|
||||||
|
Conflicts: ghostscript-x11
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the development files for Minimal Ghostscript.
|
This package contains the development files for Minimal Ghostscript.
|
||||||
@ -349,7 +344,6 @@ 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
|
||||||
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/ghostscript
|
|
||||||
|
|
||||||
# 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
|
||||||
@ -359,9 +353,6 @@ ln -sf %{_sysconfdir}/alternatives/gs %{buildroot}%{_bindir}/gs
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%apparmor_reload /etc/apparmor.d/ghostscript
|
|
||||||
%endif
|
|
||||||
%{_sbindir}/update-alternatives \
|
%{_sbindir}/update-alternatives \
|
||||||
--install %{_bindir}/gs gs %{_bindir}/gs.bin 15
|
--install %{_bindir}/gs gs %{_bindir}/gs.bin 15
|
||||||
|
|
||||||
@ -449,10 +440,6 @@ fi
|
|||||||
%{_libdir}/libgs.so.*
|
%{_libdir}/libgs.so.*
|
||||||
%{_libdir}/ghostscript/
|
%{_libdir}/ghostscript/
|
||||||
%{_libdir}/libijs-0.35.so
|
%{_libdir}/libijs-0.35.so
|
||||||
%if 0%{?suse_version} < 1500
|
|
||||||
%dir %{_sysconfdir}/apparmor.d
|
|
||||||
%endif
|
|
||||||
%{_sysconfdir}/apparmor.d/ghostscript
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -56,7 +56,7 @@ BuildRequires: apparmor-rpm-macros
|
|||||||
Requires: apparmor-abstractions
|
Requires: apparmor-abstractions
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun):update-alternatives
|
||||||
Summary: The Ghostscript interpreter for PostScript and PDF
|
Summary: The Ghostscript interpreter for PostScript and PDF
|
||||||
License: AGPL-3.0-only
|
License: AGPL-3.0-only
|
||||||
Group: Productivity/Office/Other
|
Group: Productivity/Office/Other
|
||||||
|
Loading…
Reference in New Issue
Block a user