From d378086d0bcb2a0b09c2edf62c40f15cb055ae773a2b9f26745d912a4bff111f Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Fri, 4 Jan 2013 09:02:55 +0000 Subject: [PATCH] Accepting request 146955 from home:jsmeix Provide libijs that is needed by pdftoijs in cups-filters OBS-URL: https://build.opensuse.org/request/show/146955 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=25 --- ghostscript-mini.changes | 13 ++++++++++--- ghostscript-mini.spec | 32 ++++++++++++++++++++++++++++++-- ghostscript.changes | 7 +++++++ ghostscript.spec | 32 ++++++++++++++++++++++++++++++-- 4 files changed, 77 insertions(+), 7 deletions(-) diff --git a/ghostscript-mini.changes b/ghostscript-mini.changes index 92df4dd..fc41c16 100644 --- a/ghostscript-mini.changes +++ b/ghostscript-mini.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 3 11:58:51 CET 2013 - jsmeix@suse.de + +- Provide libijs (that is not done via "configure --with-ijs") + because libijs is needed by the pdftoijs filter in the + cups-filters package (see the README file in cups-filters). + ------------------------------------------------------------------- Thu Sep 27 12:02:51 UTC 2012 - mmeister@suse.com @@ -5,14 +12,14 @@ Thu Sep 27 12:02:51 UTC 2012 - mmeister@suse.com * pdfwrite announcements: pdfwrite now supports the creation of PDF/A-2 files. For further details see the NEWS file. - * remove moribund dumphint tool, ssee History9.htm and + * removed moribund dumphint tool, see History9.htm and http://bugs.ghostscript.com/show_bug.cgi?id=693223 ------------------------------------------------------------------- Mon Sep 24 10:44:57 UTC 2012 - idonmez@suse.com -- Disable -Wl,--as-needed, see upstream bug report - http://bugs.ghostscript.com/show_bug.cgi?id=693100 +- "export SUSE_ASNEEDED=0" disables -Wl,--as-needed linker flags, + see http://bugs.ghostscript.com/show_bug.cgi?id=693100 ------------------------------------------------------------------- Thu May 10 15:49:33 CEST 2012 - jsmeix@suse.de diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index a41689d..78c788e 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -33,7 +33,7 @@ Release: 0 # Source0...Source9 is for sources from upstream: # URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.06.tar.gz # URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS -# MD5 checksum for Source0: f7c6f0431ca8d44ee132a55d583212c1 +# MD5 checksum for Source0: 153ddb0622cb155d2f600146f1e28d84 Source0: ghostscript-%{version}.tar.gz # Patch0...Patch9 is for patches from upstream: # @@ -109,7 +109,8 @@ Conflicts: ghostscript-library This package contains the development files for Minimal Ghostscript. %prep -# Be quiet when unpacking using a directory name matching Source0: +# Be quiet when unpacking and +# use a directory name matching Source0 to make it work also for ghostscript-mini: %setup -q -n ghostscript-%{version} %build @@ -178,11 +179,32 @@ export SUSE_ASNEEDED=0 make # Make libgs.so and two programs which use it, gsx and gsc: make so +# Configure and make libijs (that is not done regardless --with-ijs above): +pushd ijs +./autogen.sh +./configure --prefix=%{_prefix} \ + --bindir=%{_bindir} \ + --libdir=%{_libdir} \ + --datadir=%{_datadir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --enable-shared \ + --disable-static +make +popd %install make install DESTDIR=%{buildroot} # Install libgs.so gsx gsc and some header files: make soinstall DESTDIR=%{buildroot} +# Install libijs and its header files: +pushd ijs +make install DESTDIR=%{buildroot} +popd +# Remove installed ijs example client and server and its .la file: +rm %{buildroot}%{_bindir}/ijs_client_example +rm %{buildroot}%{_bindir}/ijs_server_example +rm %{buildroot}%{_libdir}/libijs.la # 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: @@ -280,6 +302,7 @@ exit 0 %doc %{_mandir}/man1/ps2pdfwr.1.gz %doc %{_mandir}/man1/ps2ps.1.gz %doc %{_mandir}/man1/wftopfa.1.gz +%doc %{_mandir}/man1/ijs-config.1.gz %doc %{_mandir}/de/man1/dvipdf.1.gz %doc %{_mandir}/de/man1/eps2eps.1.gz %doc %{_mandir}/de/man1/font2c.1.gz @@ -305,10 +328,15 @@ exit 0 %{_datadir}/ghostscript/%{version}/Resource/ %{_libdir}/libgs.so.* %{_libdir}/ghostscript/ +%{_libdir}/libijs-0.35.so %files devel %defattr(-,root,root) %{_includedir}/ghostscript/ %{_libdir}/libgs.so +%{_bindir}/ijs-config +%{_includedir}/ijs/ +%{_libdir}/libijs.so +%{_libdir}/pkgconfig/ijs.pc %changelog diff --git a/ghostscript.changes b/ghostscript.changes index 1d7c6f6..fd4eea7 100644 --- a/ghostscript.changes +++ b/ghostscript.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 3 11:58:51 CET 2013 - jsmeix@suse.de + +- Provide libijs (that is not done via "configure --with-ijs") + because libijs is needed by the pdftoijs filter in the + cups-filters package (see the README file in cups-filters). + ------------------------------------------------------------------- Thu Sep 27 12:02:51 UTC 2012 - mmeister@suse.com diff --git a/ghostscript.spec b/ghostscript.spec index aad13c8..8cd8dc0 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -223,8 +223,9 @@ Conflicts: ghostscript-mini-devel This package contains the development files for Ghostscript. %prep -# Be quiet when unpacking: -%setup -q +# Be quiet when unpacking and +# use a directory name matching Source0 to make it work also for ghostscript-mini: +%setup -q -n ghostscript-%{version} %build # Set our preferred architecture-specific flags for the compiler and linker: @@ -293,11 +294,32 @@ export SUSE_ASNEEDED=0 make # Make libgs.so and two programs which use it, gsx and gsc: make so +# Configure and make libijs (that is not done regardless --with-ijs above): +pushd ijs +./autogen.sh +./configure --prefix=%{_prefix} \ + --bindir=%{_bindir} \ + --libdir=%{_libdir} \ + --datadir=%{_datadir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --enable-shared \ + --disable-static +make +popd %install make install DESTDIR=%{buildroot} # Install libgs.so gsx gsc and some header files: make soinstall DESTDIR=%{buildroot} +# Install libijs and its header files: +pushd ijs +make install DESTDIR=%{buildroot} +popd +# Remove installed ijs example client and server and its .la file: +rm %{buildroot}%{_bindir}/ijs_client_example +rm %{buildroot}%{_bindir}/ijs_server_example +rm %{buildroot}%{_libdir}/libijs.la # 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: @@ -404,6 +426,7 @@ exit 0 %doc %{_mandir}/man1/ps2pdfwr.1.gz %doc %{_mandir}/man1/ps2ps.1.gz %doc %{_mandir}/man1/wftopfa.1.gz +%doc %{_mandir}/man1/ijs-config.1.gz %doc %{_mandir}/de/man1/dvipdf.1.gz %doc %{_mandir}/de/man1/eps2eps.1.gz %doc %{_mandir}/de/man1/font2c.1.gz @@ -429,6 +452,7 @@ exit 0 %{_datadir}/ghostscript/%{version}/Resource/ %{_libdir}/libgs.so.* %{_libdir}/ghostscript/ +%{_libdir}/libijs-0.35.so %exclude %{_libdir}/ghostscript/%{version}/X11.so %files x11 @@ -439,5 +463,9 @@ exit 0 %defattr(-,root,root) %{_includedir}/ghostscript/ %{_libdir}/libgs.so +%{_bindir}/ijs-config +%{_includedir}/ijs/ +%{_libdir}/libijs.so +%{_libdir}/pkgconfig/ijs.pc %changelog