forked from pool/ghostscript
Accepting request 881509 from home:dimstar:Factory
- Do not rely on apparmor at all for the -mini flavor: + Drop apparmor-abstraction and apparmor-rpm-macros BuildRequires. + Do not package apparmor files. Shame on me - this should have been included in the previous submission already Sure, apparmor is a great thing for security with ghostscript, but considering the -mini flavor only ever exists inside OBS during package builds, we can perfectly get away with this. Users will only ever get 'ghostscript' - the full version. OBS-URL: https://build.opensuse.org/request/show/881509 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=141
This commit is contained in:
parent
295bf60893
commit
a660ee5ba6
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Mar 9 12:34:30 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -26,12 +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
|
|
||||||
%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
|
||||||
@ -103,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
|
||||||
|
|
||||||
@ -148,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.
|
||||||
@ -348,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
|
||||||
@ -358,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
|
||||||
|
|
||||||
@ -448,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…
x
Reference in New Issue
Block a user