SPECS: ghostscript-gpl.spec - official ghostscript GPL 8.15, rel 1...

djurban djurban at pld-linux.org
Tue Sep 6 18:16:09 CEST 2005


Author: djurban                      Date: Tue Sep  6 16:16:09 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- official ghostscript GPL 8.15, rel 1 as it works, but svga is untested and patch4 is not updated
- removed cups filter as it is only in the ESP fork which is now in ghostscript-esp.spec
- added libgs, the irectory for incldues is includedir/ps not gs
- fixed %files, not installing headers manually, waiting for ghostscript to install it itself
  one day in next version
- no idea about omni bcond, it doesnt bereak stuff, no idea if it does anything really,
  probably ghostscript-gpl doesnt have the omni backend

---- Files affected:
SPECS:
   ghostscript-gpl.spec (1.152 -> 1.153) 

---- Diffs:

================================================================
Index: SPECS/ghostscript-gpl.spec
diff -u SPECS/ghostscript-gpl.spec:1.152 SPECS/ghostscript-gpl.spec:1.153
--- SPECS/ghostscript-gpl.spec:1.152	Thu Jul 21 22:41:11 2005
+++ SPECS/ghostscript-gpl.spec	Tue Sep  6 18:15:58 2005
@@ -1,60 +1,58 @@
 # $Revision$, $Date$
-#
 # TODO:
-#	- fix svga bcond
-#	- create shared libijs
-#	- link with dynamic jbig2dec
-#
+#	- update patch4
+#	- check svga??
 # Conditional build:
+%bcond_without	cups		# without CUPS support
 %bcond_with	svga		# with svgalib display support (vgalib and lvga256 devices)
-%bcond_without	gtk		# without gsx 
-#
+%bcond_without	omni		# without omni support
+
+%define		_name	ghostscript
+
 Summary:	PostScript & PDF interpreter and renderer
 Summary(de):	PostScript & PDF Interpreter und Renderer
 Summary(fr):	Interpréteur et visualisateur PostScript & PDF
 Summary(ja):	PostScript Ľ¤ĽóĽżĄźĽ×ĽęĽżĄŚĽěĽóĽŔĽéĄź
 Summary(pl):	Bezpłatny interpreter i renderer PostScriptu i PDF
 Summary(tr):	PostScript & PDF yorumlayýcý ve gösterici
-Name:		ghostscript
-Version:	8.51
-Release:	2
-License:	AFPL
+Name:		%{_name}-gpl
+%define gnu_ver 8.15
+Version:	%{gnu_ver}
+Release:	1
+License:	GPL
 Group:		Applications/Graphics
-Source0:	http://dl.sourceforge.net/ghostscript/%{name}-%{version}.tar.bz2
-# Source0-md5:	8b328b47cce3b7f97f35296aae8e7b77
+Source0:	http://mesh.dl.sourceforge.net/sourceforge/ghostscript/%{_name}-%{version}.tar.bz2
+# Source0-md5:	ab8502f30629b730e0c9ca56b88a6b9d
 # we need to link with libjpeg recompiled with our parameters
 Source2:	ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
 # Source2-md5:	dbd5f3b47ed13132f04c685d608a7547
-Source5:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Source5:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{_name}-non-english-man-pages.tar.bz2
 # Source5-md5:	9b5953aa0cc155f4364f20036b848585
 Patch0:		%{name}-missquotes.patch
 Patch1:		%{name}-setuid.patch
 Patch2:		%{name}-time_h.patch
 Patch3:		%{name}-am.patch
-# no device for cdj850 in non-espgs ghostscript
-# look for patch in old spec for GNU ghostscript
-#Patch4:		%{name}-gdevcd8-fixes.patch
-Patch5:		%{name}-glib.patch
-Patch6:		%{name}-ijs_pkgconfig_64.patch
+Patch4:		%{name}-gdevcd8-fixes.patch
 URL:		http://www.ghostscript.com/
 BuildRequires:	XFree86-devel
 BuildRequires:	autoconf
 BuildRequires:	automake
+%{?with_cups:BuildRequires:	cups-devel}
 BuildRequires:	docbook-style-dsssl
 BuildRequires:	glib2-devel
 # for gsx
-%{?with_gtk:BuildRequires:	gtk+-devel}
+#BuildRequires:	gtk+-devel
 BuildRequires:	libpng-devel >= 1.0.8
 BuildRequires:	libstdc++-devel
-BuildRequires:	libtiff-devel
 BuildRequires:	pkgconfig
-BuildRequires:	jasper-devel
+BuildRequires:	libtiff-devel
+Provides:	ghostscript = %{version}
+Obsoletes:	ghostscript
 # Required by 'gdevvglb' device.
 %{?with_svga:BuildRequires:	svgalib-devel}
 # for documentation regeneration
 BuildRequires:	tetex
 BuildRequires:	tetex-dvips
-Obsoletes:	ghostscript-esp
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -95,8 +93,9 @@
 Summary:	Ghostscript with GTK+ console
 Summary(pl):	Ghostscript z konsolą GTK+
 Group:		Applications/Graphics
-Requires:	%{name} = %{version}-%{release}
-Obsoletes:	ghostscript-esp-gtk
+Provides:	ghostscript-gtk = %{version}
+Obsoletes:	ghostscript-gtk
+Requires:	%{name} = %{version}
 
 %description gtk
 Ghostscript with GTK+ console.
@@ -108,8 +107,9 @@
 Summary:	libgs header files
 Summary(pl):	Pliki nagłówkowe libgs
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-Obsoletes:	ghostscript-esp-devel
+Provides:	ghostscript-devel = %{version}
+Obsoletes:	ghostscript-devel
+Requires:	%{name} = %{version}
 
 %description devel
 Header files for libgs - ghostscript shared library.
@@ -121,8 +121,9 @@
 Summary:	IJS development files
 Summary(pl):	Pliki dla programistów IJS
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-Obsoletes:	ghostscript-esp-ijs-devel
+Provides:	ghostscript-ijs-devel = %{version}
+Obsoletes:	ghostscript-ijs-devel
+Requires:	%{name} = %{version}
 
 %description ijs-devel
 IJS development files.
@@ -134,8 +135,9 @@
 Summary:	Static libijs library
 Summary(pl):	Statyczna biblioteka IJS
 Group:		Development/Libraries
-Requires:	%{name}-ijs-devel = %{version}-%{release}
-Obsoletes:	ghostscript-esp-ijs-static
+Provides:	ghostscript-ijs-static = %{version}
+Obsoletes:	ghostscript-ijs-static
+Requires:	%{name}-ijs-devel = %{version}
 
 %description ijs-static
 Static libijs library.
@@ -144,56 +146,47 @@
 Statyczna wersja biblioteki IJS.
 
 %prep
-%setup -q -a2
+%setup -q -n %{_name}-%{version} -a2
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1 -b .am
+%patch3 -p1
 #%patch4 -p1
-#%patch5 -p1
-%patch6 -p1
 ln -sf jp* jpeg
 
 %build
-# workarounds
-touch ijs/ijs-config.1
-# not really needed with new patch :)
-# sed -i -e 's#:$(gsdir)/fonts#:$(gsdir)/fonts:%{_datadir}/fonts:%{_datadir}/fonts/Type1#g' src/Makefile.in
-#
 cp -f %{_datadir}/automake/config.sub .
 %{__aclocal}
 %{__autoconf}
+
 CFLAGS="%{rpmcflags} -DA4"
 export CFLAGS
+
 %configure \
+	--with-drivers=ALL%{?with_svga:,vgalib,lvga256} \
 	--with-fontpath="%{_datadir}/fonts:%{_datadir}/fonts/Type1" \
 	--with-ijs \
-	--with-jbig2dec \
-	--with-jasper \
+	--without-gimp-print \
+	%{!?with_cups:--disable-cups} \
+	--with%{!?with_omni:out}-omni \
 	--with-x
 
-# NEEDS patch because no such configure options
-#        --with-drivers=ALL%{?with_svga:,vgalib,lvga256} \
-
 cd ijs
-%{__aclocal}
+rm -f install-sh missing && install %{_datadir}/automake/{install-sh,missing} .
 %{__autoconf}
-%{__automake}
-%configure
+%configure \
+	--enable-shared \
+	--enable-static
 cd ..
 
 %{__make} \
-	docdir=%{_defaultdocdir}/%{name}-%{version}
-
+	docdir=%{_defaultdocdir}/%{_name}-%{version}
 %{__make} so \
-	docdir=%{_defaultdocdir}/%{name}-%{version}
+	docdir=%{_defaultdocdir}/%{_name}-%{version}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/ghostscript/lib,%{_libdir},%{_includedir}/gs}
-
-# api includes 
-install src/{iapi.h,ierrors.h,gdevdsp.h} $RPM_BUILD_ROOT%{_includedir}/gs
+install -d $RPM_BUILD_ROOT{%{_datadir}/ghostscript/lib,%{_libdir},%{_includedir}}
 
 %{__make} install \
 	install_prefix=$RPM_BUILD_ROOT \
@@ -201,31 +194,29 @@
 	bindir=$RPM_BUILD_ROOT%{_bindir} \
 	datadir=$RPM_BUILD_ROOT%{_datadir} \
 	libdir=$RPM_BUILD_ROOT%{_libdir} \
-	docdir=$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} \
+	docdir=$RPM_BUILD_ROOT%{_defaultdocdir}/%{_name}-%{version} \
 	mandir=$RPM_BUILD_ROOT%{_mandir}
 
-
 %{__make} soinstall \
 	install_prefix=$RPM_BUILD_ROOT \
 	prefix=$RPM_BUILD_ROOT%{_prefix} \
 	bindir=$RPM_BUILD_ROOT%{_bindir} \
 	datadir=$RPM_BUILD_ROOT%{_datadir} \
 	libdir=$RPM_BUILD_ROOT%{_libdir} \
-	docdir=$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} \
+	docdir=$RPM_BUILD_ROOT%{_defaultdocdir}/%{_name}-%{version} \
 	mandir=$RPM_BUILD_ROOT%{_mandir}
 
 cd ijs
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
-#	prefix=$RPM_BUILD_ROOT%{_prefix} \
-#	bindir=$RPM_BUILD_ROOT%{_bindir} \
-#	datadir=$RPM_BUILD_ROOT%{_datadir} \
-#	libdir=$RPM_BUILD_ROOT%{_libdir} \
-#	includedir=$RPM_BUILD_ROOT%{_includedir} \
-#	mandir=$RPM_BUILD_ROOT%{_mandir}
+	prefix=$RPM_BUILD_ROOT%{_prefix} \
+	bindir=$RPM_BUILD_ROOT%{_bindir} \
+	datadir=$RPM_BUILD_ROOT%{_datadir} \
+	libdir=$RPM_BUILD_ROOT%{_libdir} \
+	includedir=$RPM_BUILD_ROOT%{_includedir} \
+	mandir=$RPM_BUILD_ROOT%{_mandir}
 cd ..
 
-install lib/{gs_frsd,pdfopt,pdfwrite}.ps $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
+install lib/{gs_frsd,pdfopt,pdfwrite}.ps $RPM_BUILD_ROOT%{_datadir}/ghostscript/lib
 
 #install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc \
@@ -247,6 +238,10 @@
 ln -sf gs $RPM_BUILD_ROOT%{_bindir}/gsc
 ln -sf gs $RPM_BUILD_ROOT%{_bindir}/ghostscript
 
+install -d $RPM_BUILD_ROOT%{_includedir}/ps
+# dont install headers that are not spread betwen distros
+#install src/{iapi,errors}.h $RPM_BUILD_ROOT%{_includedir}/ps
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -255,27 +250,27 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_defaultdocdir}/%{name}-%{version}
+%doc %{_defaultdocdir}/%{_name}-%{version}
 %attr(755,root,root) %{_bindir}/[bdeflpsux]*
 %attr(755,root,root) %{_bindir}/gs
 %attr(755,root,root) %{_bindir}/wftopfa
-%attr(755,root,root) %{_bindir}/gs[!x]*
-%attr(755,root,root) %{_bindir}/ijs_*_example
+%attr(755,root,root) %{_bindir}/gs[^x]*
+%attr(755,root,root) %{_bindir}/ijs_client_example
 %attr(755,root,root) %{_libdir}/libgs.so.*.*
-#%attr(755,root,root) %{_libdir}/libijs.so
-%dir %{_datadir}/%{name}
-%dir %{_datadir}/%{name}/lib
-%{_datadir}/%{name}/lib/*.*
-%dir %{_datadir}/%{name}/%{version}
-%dir %{_datadir}/%{name}/%{version}/lib
+%attr(755,root,root) %{_libdir}/libijs*.so
+%dir %{_datadir}/%{_name}
+%dir %{_datadir}/%{_name}/lib
+%{_datadir}/%{_name}/lib/*.*
+%dir %{_datadir}/%{_name}/%{version}
+%dir %{_datadir}/%{_name}/%{version}/lib
 # "*.*" will not match "Fontmap". It is OK.
-%{_datadir}/%{name}/%{version}/lib/*.*
-%{_datadir}/%{name}/%{version}/lib/[!F]*map
-%{_datadir}/%{name}/%{version}/lib/FAPI*map
-%config %verify(not size md5 mtime) %{_datadir}/%{name}/%{version}/lib/Fontmap
-%config %verify(not size md5 mtime) %{_datadir}/%{name}/%{version}/lib/FAPIconfig
-%{_datadir}/%{name}/%{version}/Resource
-%{_datadir}/%{name}/%{version}/examples
+%{_datadir}/%{_name}/%{version}/lib/*.*
+%{_datadir}/%{_name}/%{version}/lib/[!F]*map
+%{_datadir}/%{_name}/%{version}/lib/FAPI*map
+%config %verify(not size md5 mtime) %{_datadir}/%{_name}/%{version}/lib/Fontmap
+%config %verify(not size md5 mtime) %{_datadir}/%{_name}/%{version}/lib/FAPIconfig
+%{_datadir}/%{_name}/%{version}/Resource
+%{_datadir}/%{_name}/%{version}/examples
 %{_mandir}/man*/*
 %lang(cs) %{_mandir}/cs/man*/*
 %lang(de) %{_mandir}/de/man*/*
@@ -283,15 +278,13 @@
 %lang(fr) %{_mandir}/fr/man*/*
 %lang(pl) %{_mandir}/pl/man*/*
 
-%if %{with gtk}
 %files gtk
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gsx
-%endif
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/gs
+%{_includedir}/ps
 %{_libdir}/libgs.so
 
 %files ijs-devel
@@ -299,7 +292,7 @@
 %attr(755,root,root) %{_bindir}/ijs-config
 %{_includedir}/ijs
 %{_libdir}/libijs.la
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/ijs.pc
 
 %files ijs-static
 %defattr(644,root,root,755)
@@ -311,39 +304,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.152  2005/07/21 20:41:11  djurban
-- rel. 2 works with new am patch + include headers for ghostscript library
-
-Revision 1.151  2005/07/20 21:22:08  qboosh
-- cdj850 comment
-
-Revision 1.150  2005/07/20 14:24:28  djurban
-- fontdir broken somehow 0.1 for now, will fix later
-
-Revision 1.149  2005/07/19 21:21:13  djurban
-- += buildrequires jasper-devel
-
-Revision 1.148  2005/07/19 21:15:47  djurban
-- updated to version 8.51, inclues the libgs.so and works, rel. 1
-- added bcond without gtk for gsx, patches -ijs_cflags and -gevcd8-fixes.patch
-  no longer necessary, second patche's device no longer existant
-- added fontdir configure option and links with system jasper
-- will add link to dynamic jbig2dec ocne someone makes it dynamic in the spec
-
-Revision 1.147  2005/06/08 18:37:37  twittner
-- ghostscript-esp.spec and ghostscript.spec obsolete each other
-
-Revision 1.146  2005/04/18 20:35:03  mmazur
-- rel 0.2; fixed building on amd64
-
-Revision 1.145  2004/12/25 23:32:08  arekm
-- fix resouce path, TODO list added
-
-Revision 1.144  2004/12/25 23:18:20  qboosh
-- unified
-
-Revision 1.143  2004/12/25 21:56:00  arekm
-- started work on AFPL 8.50
+Revision 1.153  2005/09/06 16:15:58  djurban
+- official ghostscript GPL 8.15, rel 1 as it works, but svga is untested and patch4 is not updated
+- removed cups filter as it is only in the ESP fork which is now in ghostscript-esp.spec
+- added libgs, the irectory for incldues is includedir/ps not gs
+- fixed %files, not installing headers manually, waiting for ghostscript to install it itself
+  one day in next version
+- no idea about omni bcond, it doesnt bereak stuff, no idea if it does anything really,
+  probably ghostscript-gpl doesnt have the omni backend
 
 Revision 1.142  2004/10/25 08:49:33  paladine
 - [Gg]tk+ -> GTK+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ghostscript-gpl.spec?r1=1.152&r2=1.153&f=u




More information about the pld-cvs-commit mailing list