Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sbradnick
ghostscript
project.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File project.diff of Package ghostscript
--- _multibuild.orig +++ _multibuild @@ -1,3 +1,3 @@ <multibuild> - <flavor>mini</flavor> + <flavor></flavor> </multibuild> --- ghostscript.changes.orig +++ ghostscript.changes @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Mar 5 15:56:13 UTC 2024 - Scott Bradnick <scott.bradnick@suse.com> + +- Updating so doc lives in `%{_defaultdocdir}` subdir + * Instead of `%{_datadir}/doc` with symlink(s) + * Changing `/ghostscript/` reference to `/%{name}/` + +------------------------------------------------------------------- Tue Feb 27 10:59:43 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> - Use %patch -P N instead of deprecated %patchN. --- ghostscript.spec.orig +++ ghostscript.spec @@ -130,7 +130,7 @@ filtering (data compression / decompress appear as primitive operations in the PostScript language and in PDF. For information how to use Ghostscript see -%{_datadir}/ghostscript/%{version}/doc/Use.htm +%{_defaultdocdir}/ghostscript/%{version}/doc/Use.htm %package x11 Summary: X11 library for Ghostscript @@ -276,20 +276,15 @@ done # Install documentation which is not installed by default # see http://bugs.ghostscript.com/show_bug.cgi?id=693002 # and fail intentionally as notification if something changed: -DOCDIR=%{buildroot}%{_datadir}/doc/ghostscript/%{version} -for D in LICENSE -do test -e $DOCDIR/$( basename $D ) && exit 99 - install -m 644 $D $DOCDIR -done +DOCDIR=%{buildroot}%{_defaultdocdir}/%{name}/%{version} # Add a link named 'ghostscript' from SUSE's usual documentation directory /usr/share/doc/packages # with link target Ghostscript's documentation directory e.g. /usr/share/doc/ghostscript/9.23 # as relative link to get the link independent of the buildroot prefix # i.e. in /usr/share/doc/packages add the link ghostscript -> ../ghostscript/9.23 # because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above): -install -d -m 755 %{buildroot}%{_defaultdocdir} -pushd %{buildroot}%{_defaultdocdir} -ln -s ../ghostscript/%{version} ghostscript -popd +install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name} +install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name}/%{version} +mv -v %{buildroot}%{_datadir}/doc/%{name} _doc # Extract the catalog of devices which are actually built-in in exactly this Ghostscript: # If a needed source file is no longer accessible fail intentionally as notification # that something changed which needs adaptions here: @@ -392,9 +387,7 @@ fi %{_mandir}/man1/ps2pdf14.1%{?ext_man} %{_mandir}/man1/ps2pdfwr.1%{?ext_man} %{_mandir}/man1/ps2ps.1%{?ext_man} -%doc %{_defaultdocdir}/ghostscript -%dir %{_datadir}/doc/ghostscript -%doc %{_datadir}/doc/ghostscript/%{version} +%doc _doc/* %dir %{_datadir}/ghostscript %dir %{_datadir}/ghostscript/%{version} %{_datadir}/ghostscript/%{version}/Resource @@ -410,7 +403,7 @@ fi %if 0%{?suse_version} < 1500 %dir %{_sysconfdir}/apparmor.d %endif -%{_sysconfdir}/apparmor.d/ghostscript +%config %{_sysconfdir}/apparmor.d/ghostscript %endif %files x11
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor