On Sun, Jul 30, 2006 at 05:44:18PM +0200, Arkadiusz Miskiewicz wrote:
> On Sunday 30 July 2006 17:40, Szymon Siwek wrote:
> > On Sun, Jul 30, 2006 at 04:09:33PM +0200, Arkadiusz Miskiewicz wrote:
> > > On Sunday 30 July 2006 15:59, Szymon Siwek wrote:
> > > > Witam!
> > > >
> > > > Odnoszę wrażenie, że w pakiecie ghostscript-afpl-ijs-devel jest pomyłka
> > > > w provides - powinno być "ghostscript-ijs-devel" zamiast
> > > > "ghostscript-devel"
> > >
> > > Ten pakiet traci sens skoro od niedawna wszystkie nowe ghostscripty są
> > > GPL.
> >
> > Ciekawa uwaga, niemniej to ghostscript.spec w ostatnim logu ma wpis
> > obsolated i od 2005.09.06 jest nie ruszany (bo w między czasie
> > ghostscript.spec został przemianowany na ghostscript-afpl.spec)
> 
> Nikomu się nie chciało tego uporządkować po zGPLowaniu ghostscripta. Teraz 
> sens ma tylko ghostscript.spec i ghostscript-esp.spec (mv 
> ghostscript-afpl.spec ghostscript.spec po stronie cvsu).
> 
Jak już będzie przeniesione w cvsie, to można uaktualnić wersję (za pomocą
dołączonych łatek).
Nie usunąłem "define _name", aby łatka była mniejsza (a w przyszłości może
być znowu potrzebne).
Tworzony jest shared libijs.
Dodałem bconda umożliwiającego zbudowanie z systemowym jbig2dec
Bconda svga można pewnie wyrzucić (nigdzie nie używany).
Bconda gtk też można wyrzucić, bo w trakcie budowy jest nie używany i
BuildReq: gtk-devel jest bezwzględnie konieczne.
Nie jestem pewien czy wstawiłem wystarczająco dużo provides/obsoletes (na
przykład co z obsoletes ghostscript-esp)
Na upartego można jeszcze wydzielić pakiet z biblioteką ijs.

-- 
Szymon Siwek
Los nikomu nie szczędzi rozczarowań.
--- ghostscript-afpl.spec       2006-08-01 09:44:16.000000000 +0000
+++ ghostscript.spec    2006-08-01 12:55:08.000000000 +0000
@@ -2,10 +2,9 @@
 #
 # TODO:
 #      - fix svga bcond
-#      - create shared libijs
-#      - link with dynamic jbig2dec
 #
 # Conditional build:
+%bcond_with    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.1
+License:       GPL
 Group:         Applications/Graphics
 Source0:       
http://dl.sourceforge.net/ghostscript/%{_name}-%{version}.tar.bz2
-# Source0-md5: e65e0c40213a616174572faa639e04d6
+# Source0-md5: 58f688190dcc5e9e337edad22b23fc0d
 # 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:     %{name}-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.
@@ -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
--- 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}" |
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym