jbig2dec.spec

Szymon Siwek sls w poczta.wp.pl
Wto, 1 Sie 2006, 16:18:36 CEST


Witam!

Przysyłam porawki umożliwiające zbudowanie pakietu (wersja uaktualniona do
0.9). Biblioteka dzielona jest budowana i ghostscript potrafi się z nią
zlinkować.
-- 
Szymon Siwek
Los nikomu nie szczędzi rozczarowań.
-------------- następna część ---------
Index: jbig2dec.spec
===================================================================
RCS file: /cvsroot/SPECS/jbig2dec.spec,v
retrieving revision 1.2
diff -u -r1.2 jbig2dec.spec
--- jbig2dec.spec	21 Jul 2005 18:29:58 -0000	1.2
+++ jbig2dec.spec	1 Aug 2006 12:06:00 -0000
@@ -2,14 +2,18 @@
 Summary:	Decoder implementation of the JBIG2 image compression format
 Summary(pl):	Implementacja dekodera formatu kompresji obrazu JBIG2
 Name:		jbig2dec
-Version:	0.8
+Version:	0.9
 Release:	0.1
 License:	GPL with clause allowing linking to AFPL Ghostscript
 Group:		Applications
 Source0:	http://dl.sourceforge.net/jbig2dec/%{name}-%{version}.tar.gz
-# Source0-md5:	cb8f01ae18987f2cebf6854cdd44c7d0
+# Source0-md5:	e4bff86825ccde304c19bd7ec122fda4
+Patch0:		%{name}-acam.patch
 URL:		http://jbig2dec.sourceforge.net/
+BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	libtool
+Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,11 +62,22 @@
 T.88 można zdobyć z ITU. Wersję ISO JBIG2 można zdobyć ze strony WWW
 ISO.
 
+%package libs
+Summary:	Libraries for jbig2dec
+Summary(pl):	Biblioteki dla jbig2dec
+Group:		Libraries
+
+%description libs
+Libraries for jbig2dec.
+
+%description libs -l pl
+Biblioteki dla jbig2dec
+
 %package devel
 Summary:	Development files for jbig2dec library
 Summary(pl):	Pliki nagłówkowe dla biblioteki jbig2dec
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
 Development files for jbig2dec library.
@@ -84,9 +99,10 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-#%%{__libtoolize}
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
@@ -104,14 +120,27 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p /sbin/ldconfig
-%postun	-p /sbin/ldconfig
+%post libs	-p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so.0.0.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so
+%{_includedir}/*.h
+%{_libdir}/*.la
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/*.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
-------------- następna część ---------
--- jbig2dec-0.9/configure.ac	2006-07-26 23:57:39.000000000 +0000
+++ jbig2dec-0.9.new/configure.ac	2006-07-31 19:31:21.000000000 +0000
@@ -11,7 +11,7 @@
 
 # Checks for programs.
 AC_PROG_CC
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
 
 # platform specific compiler flags
 if test "x$GCC" = xyes; then
--- jbig2dec-0.9/Makefile.am	2005-05-24 03:49:47.000000000 +0000
+++ jbig2dec-0.9.new/Makefile.am	2006-07-31 19:31:21.000000000 +0000
@@ -4,10 +4,10 @@
 # require automake 1.7
 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2 dist-zip -Wall
 
-lib_LIBRARIES = libjbig2dec.a
+lib_LTLIBRARIES = libjbig2dec.la
 include_HEADERS = jbig2.h
 
-libjbig2dec_a_SOURCES = jbig2.c \
+libjbig2dec_la_SOURCES = jbig2.c \
 	jbig2_arith.c jbig2_arith_int.c jbig2_arith_iaid.c jbig2_huffman.c \
 	jbig2_segment.c jbig2_page.c \
 	jbig2_symbol_dict.c jbig2_text.c \
@@ -26,7 +26,7 @@
 jbig2dec_SOURCES = jbig2dec.c sha1.c sha1.h \
 	jbig2.h jbig2_image.h getopt.h \
 	os_types.h config_types.h config_win32.h
-jbig2dec_LDADD = libjbig2dec.a @LIBOBJS@
+jbig2dec_LDADD = libjbig2dec.la @LIBOBJS@
 
 EXTRA_DIST = test_jbig2dec.py msvc.mak LICENSE CHANGES
 
@@ -39,9 +39,9 @@
 
 test_arith_SOURCES = jbig2_arith.c
 test_arith_CFLAGS = -DTEST
-test_arith_LDADD = libjbig2dec.a
+test_arith_LDADD = libjbig2dec.la
 
 test_huffman_SOURCES = jbig2_huffman.c
 test_huffman_CFLAGS = -DTEST
-test_huffman_LDADD = libjbig2dec.a
+test_huffman_LDADD = libjbig2dec.la
 


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