ghostscript-afpl.spec

Szymon Siwek sls w poczta.wp.pl
Wto, 8 Sie 2006, 06:14:56 CEST


On Mon, Aug 07, 2006 at 10:49:30AM +0200, Jakub Bogusz wrote:
> > Dodałem bconda umożliwiającego zbudowanie z systemowym jbig2dec
> 
> Jeżeli to działa, to powinno być domyślne (nawet bez bconda).
> 
jbig2dec.spec z cvsu wygląda na mocno eksprymentalny (czy wręcz nie
dokończony). Poprawkę wysłałem na listę, niemniej wydaje mi się, że
używanie systemowego jbig2dec jest sztuką dla sztuki.
W każdym razie, u mnie ghostscript buduje się z systemowym jbig2dec i
działa.
> 
> Jeżeli to ma być GPL Ghostscript, to musi być ze źródeł
> ghostscript-%{version}-gpl.tar.bz2. Wersja bez "-gpl" to AFPL
> Ghostscript.
> 
A dziwiłem się dlaczego w LICENSE nie ma nic na temat GPL...

-- 
Szymon Siwek
Los nikomu nie szczędzi rozczarowań.
-------------- następna część ---------
--- ghostscript-afpl.spec	2006-08-01 09:44:16.000000000 +0000
+++ ghostscript.spec	2006-08-08 02:42:57.000000000 +0000
@@ -2,10 +2,9 @@
 #
 # TODO:
 #	- fix svga bcond
-#	- create shared libijs
-#	- link with dynamic jbig2dec
 #
 # Conditional build:
+%bcond_without	system_jbig2dec
 %bcond_with	svga		# with svgalib display support (vgalib and lvga256 devices)
 %bcond_without	gtk		# without gsx 
 #
@@ -16,13 +15,13 @@
 Summary(ja):	PostScript Ľ¤ĽóĽżĄźĽ×ĽęĽżĄŚĽěĽóĽŔĽéĄź
 Summary(pl):	Bezpłatny interpreter i renderer PostScriptu i PDF
 Summary(tr):	PostScript & PDF yorumlayýcý ve gösterici
-Name:		%{_name}-afpl
-Version:	8.53
-Release:	1
-License:	AFPL
+Name:		%{_name}
+Version:	8.54
+Release:	0.2
+License:	GPL
 Group:		Applications/Graphics
-Source0:	http://dl.sourceforge.net/ghostscript/%{_name}-%{version}.tar.bz2
-# Source0-md5:	e65e0c40213a616174572faa639e04d6
+Source0:	http://dl.sourceforge.net/ghostscript/%{_name}-%{version}-gpl.tar.bz2
+# Source0-md5:	5d0ad0da8297fe459a788200f0eaeeba
 # we need to link with libjpeg recompiled with our parameters
 Source2:	ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
 # Source2-md5:	dbd5f3b47ed13132f04c685d608a7547
@@ -38,16 +37,17 @@
 #Patch5:		%{name}-glib.patch
 Patch6:		%{name}-ijs_pkgconfig_64.patch
 URL:		http://www.ghostscript.com/
-BuildRequires:	XFree86-devel
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	docbook-style-dsssl
 BuildRequires:	glib2-devel
+%{?with_system_jbig2dec:BuildRequires:	jbig2dec-devel}
 # for gsx
 %{?with_gtk:BuildRequires:	gtk+-devel}
 BuildRequires:	libpng-devel >= 1.0.8
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtiff-devel
+BuildRequires:	libtool
 BuildRequires:	pkgconfig
 BuildRequires:	jasper-devel
 # Required by 'gdevvglb' device.
@@ -55,8 +55,9 @@
 # for documentation regeneration
 BuildRequires:	tetex
 BuildRequires:	tetex-dvips
-Provides:	ghostscript = %{version}-%{release}
-Obsoletes:	ghostscript
+BuildRequires:	xorg-lib-libXext-devel
+BuildRequires:	xorg-lib-libXt-devel
+Obsoletes:	ghostscript-afpl
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -98,8 +99,7 @@
 Summary(pl):	Ghostscript z konsolą GTK+
 Group:		Applications/Graphics
 Requires:	%{name} = %{version}-%{release}
-Provides:	ghostscript-gtk = %{version}-%{release}
-Obsoletes:	ghostscript-gtk
+Obsoletes:	ghostscript-afpl-gtk
 
 %description gtk
 Ghostscript with GTK+ console.
@@ -112,8 +112,7 @@
 Summary(pl):	Pliki nagłówkowe libgs
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Provides:	ghostscript-devel = %{version}-%{release}
-Obsoletes:	ghostscript-devel
+Obsoletes:	ghostscript-afpl-devel
 
 %description devel
 Header files for libgs - ghostscript shared library.
@@ -126,8 +125,7 @@
 Summary(pl):	Pliki dla programistów IJS
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Provides:	ghostscript-devel = %{version}-%{release}
-Obsoletes:	ghostscript-ijs-devel
+Obsoletes:	ghostscript-afpl-ijs-devel
 
 %description ijs-devel
 IJS development files.
@@ -140,8 +138,7 @@
 Summary(pl):	Statyczna biblioteka IJS
 Group:		Development/Libraries
 Requires:	%{name}-ijs-devel = %{version}-%{release}
-Provides:	ghostscript-ijs-static = %{version}-%{release}
-Obsoletes:	ghostscript-ijs-static
+Obsoletes:	ghostscript-afpl-ijs-static
 
 %description ijs-static
 Static libijs library.
@@ -150,7 +147,7 @@
 Statyczna wersja biblioteki IJS.
 
 %prep
-%setup -q -a2 -n %{_name}-%{version}
+%setup -q -a2 -n %{_name}-%{version}-gpl
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -163,6 +160,11 @@
 %build
 # workarounds
 touch ijs/ijs-config.1
+%if %{with system_jbig2dec}
+if [ -d jbig2dec ]; then
+	rm -rf jbig2dec
+fi
+%endif
 # not really needed with new patch :)
 # sed -i -e 's#:$(gsdir)/fonts#:$(gsdir)/fonts:%{_datadir}/fonts:%{_datadir}/fonts/Type1#g' src/Makefile.in
 #
@@ -187,7 +189,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	--enable-shared
 cd ..
 
 %{__make} \
@@ -268,7 +271,7 @@
 %attr(755,root,root) %{_bindir}/gs[!x]*
 %attr(755,root,root) %{_bindir}/ijs_*_example
 %attr(755,root,root) %{_libdir}/libgs.so.*.*
-#%attr(755,root,root) %{_libdir}/libijs.so
+%attr(755,root,root) %{_libdir}/libijs-*.so
 %dir %{_datadir}/%{_name}
 %dir %{_datadir}/%{_name}/lib
 %{_datadir}/%{_name}/lib/*.*
@@ -303,6 +306,7 @@
 %files ijs-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/ijs-config
+%attr(755,root,root) %{_libdir}/libijs.so
 %{_includedir}/ijs
 %{_libdir}/libijs.la
 %{_pkgconfigdir}/*.pc
-------------- następna część ---------
--- ghostscript-afpl-missquotes.patch	2006-08-01 09:49:32.000000000 +0000
+++ ghostscript-missquotes.patch	2006-07-31 15:16:54.000000000 +0000
@@ -58,32 +58,11 @@
 --- ghostscript-8.51/lib/ps2epsi.orig	2004-08-04 02:55:46.000000000 +0200
 +++ ghostscript-8.51/lib/ps2epsi	2005-07-19 16:36:24.000000000 +0200
 @@ -5,7 +5,7 @@
- # executable name set in the makefile
- GS_EXECUTABLE=gs
- 
--tmpfile=/tmp/ps2epsi$$
-+tmpfile=`mktemp /tmp/ps2epsi.XXXXXX` || exit 1
- 
- export outfile
- 
-@@ -14,7 +14,7 @@
+ 	echo "failed: could not create temporary file"
  	exit 1
  fi
+-tmpfile=$tmpdir/ps2epsi$$
++tmpfile=`mktemp $tmpdir/ps2epsi.XXXXXX` || exit 1
  
--infile=$1;
-+infile="$1";
- 
- if [ $# -eq 1 ]
- then
-@@ -25,9 +25,9 @@
- 	  *.epsf)	base=`basename "${infile}" .epsf` ;;
- 	  *)		base=`basename "${infile}"` ;;
- 	esac
--	outfile=${base}.epsi
-+	outfile="${base}.epsi"
- else
--	outfile=$2
-+	outfile="$2"
- fi
+ export outfile
  
- ls -l "${infile}" |


Więcej informacji o liście dyskusyjnej pld-devel-pl