SPECS: lcms.spec - updated to 1.16, added python patch

qboosh qboosh at pld-linux.org
Sun Dec 24 15:45:54 CET 2006


Author: qboosh                       Date: Sun Dec 24 14:45:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 1.16, added python patch

---- Files affected:
SPECS:
   lcms.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/lcms.spec
diff -u SPECS/lcms.spec:1.32 SPECS/lcms.spec:1.33
--- SPECS/lcms.spec:1.32	Tue Dec 19 00:17:47 2006
+++ SPECS/lcms.spec	Sun Dec 24 15:45:48 2006
@@ -6,12 +6,13 @@
 Summary:	Little CMS - a library to transform between colour profiles
 Summary(pl):	Little CMS - biblioteka do konwersji między profilami kolorów
 Name:		lcms
-Version:	1.15
-Release:	2
+Version:	1.16
+Release:	1
 License:	LGPL
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
-# Source0-md5:	76c921973fdea4f880944a024197f924
+# Source0-md5:	b07b623f3e712373ff713fb32cf23651
+Patch0:		%{name}-python.patch
 URL:		http://www.littlecms.com/
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake >= 1:1.7.2
@@ -21,8 +22,8 @@
 BuildRequires:	libtool >= 1:1.4.2-9
 BuildRequires:	sed >= 4.0
 %if %{with python}
-BuildRequires:	python-devel >= 1.5
-BuildRequires:	swig-python >= 1.3.25
+BuildRequires:	python-devel >= 2.2
+BuildRequires:	swig-python >= 1.3.30
 %endif
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -92,10 +93,14 @@
 
 %prep
 %setup -q
-# http://www.mail-archive.com/lcms-user@lists.sourceforge.net/msg01261.html
-sed -i s/SWIGTYPE_LPGAMMATABLE/SWIGTYPE_p_GAMMATABLE/g python/lcms*
+%patch0 -p1
 
 %build
+# rebuild using newer swig (needed for g++ 4/python 2.5)
+cd python
+rm -f lcms.py lcms_wrap.cxx
+swig -python -c++ -I../include lcms.i
+cd ..
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -124,19 +129,19 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README.1ST
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/liblcms.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc doc/*
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/liblcms.so
+%{_libdir}/liblcms.la
 %{_includedir}/*.h
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/lcms.pc
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/liblcms.a
 
 %files progs
 %defattr(644,root,root,755)
@@ -156,6 +161,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2006/12/24 14:45:48  qboosh
+- updated to 1.16, added python patch
+
 Revision 1.32  2006/12/18 23:17:47  shadzik
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/lcms.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list