Hello community,
here is the log from the commit of package lcms
checked in at Tue Jul 8 15:28:36 CEST 2008.
--------
--- lcms/lcms.changes 2008-06-03 13:29:33.000000000 +0200
+++ lcms/lcms.changes 2008-07-01 17:36:24.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Jul 1 17:27:44 CEST 2008 - sbrabec@suse.cz
+
+- Enabled python-lcms bindings (bnc#371592).
+
+-------------------------------------------------------------------
Old:
----
lcms-implicit-dectlaration.patch
New:
----
lcms-implicit-declaration.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ lcms.spec ++++++
--- /var/tmp/diff_new_pack.h26038/_old 2008-07-08 15:26:42.000000000 +0200
+++ /var/tmp/diff_new_pack.h26038/_new 2008-07-08 15:26:42.000000000 +0200
@@ -12,18 +12,18 @@
Name: lcms
-BuildRequires: gcc-c++ libtiff-devel
+BuildRequires: gcc-c++ libtiff-devel python-devel swig
License: X11/MIT
Group: Productivity/Graphics/Other
Summary: Utilities for the Little CMS Engine
Url: http://www.littlecms.com/
Version: 1.17
-Release: 39
+Release: 44
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
Patch: lcms-endian.patch
Patch1: lcms-strict-aliasing.patch
-Patch2: lcms-implicit-dectlaration.patch
+Patch2: lcms-implicit-declaration.patch
# Package name for <= 10.3 and <=SLE10:
Provides: liblcms = %{version}
Obsoletes: liblcms <= 1.16
@@ -71,6 +71,21 @@
--------
Marti Maria
+%package -n python-lcms
+License: X11/MIT
+Summary: Python Bindings for the Little CMS Engine
+Group: Development/Libraries/Python
+%py_requires
+
+%description -n python-lcms
+Little cms is a small speed optimized color management engine.
+
+
+
+Authors:
+--------
+ Marti Maria
+
%prep
%setup -q
%patch
@@ -81,8 +96,12 @@
%build
autoreconf -f -i
-#CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
-%configure --disable-static --with-pic
+cd python
+./swig_lcms
+cd ..
+%configure\
+ --disable-static\
+ --with-python
make %{?jobs:-j%jobs}
%check
@@ -91,8 +110,10 @@
%install
%makeinstall
-#mkdir -p $RPM_BUILD_ROOT%{_datadir}/liblcms/
-rm -f %{buildroot}%{_libdir}/*.la
+rm $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{py_sitedir}/_lcms.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -n liblcms1 -p /sbin/ldconfig
@@ -115,7 +136,14 @@
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
+%files -n python-lcms
+%defattr(-,root,root,-)
+%{py_sitedir}/lcms.py*
+%{py_sitedir}/_lcms.so
+
%changelog
+* Tue Jul 01 2008 sbrabec@suse.cz
+- Enabled python-lcms bindings (bnc#371592).
* Tue Jun 03 2008 coolo@suse.de
- require COPYING package
* Sun May 11 2008 coolo@suse.de
++++++ lcms-implicit-declaration.patch ++++++
cmsio1.c: In function 'AdjustEndianessArray16':
cmsio1.c:118: warning: implicit declaration of function 'swab'
testcms.c: In function 'CheckSwab':
testcms.c:113: warning: implicit declaration of function 'swab'
================================================================================
--- src/Makefile.am
+++ src/Makefile.am
@@ -6,6 +6,9 @@
# Don't require all the GNU mandated files
AUTOMAKE_OPTIONS = 1.7 foreign
+# _XOPEN_SOURCE is required for swab() but undefines strcasecmp(), so add _GNU_SOURCE as well:
+AM_CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE
+
includedir = ${prefix}/include
# Shared libraries built in this directory
--- src/cmsio1.c
+++ src/cmsio1.c
@@ -24,6 +24,7 @@
#include "lcms.h"
+#include
// ----------------------------------------------------------------- Tag Serialization
--- testbed/Makefile.am
+++ testbed/Makefile.am
@@ -6,6 +6,9 @@
# Don't require all the GNU mandated files
AUTOMAKE_OPTIONS = 1.7 foreign
+# Required for swab()
+AM_CPPFLAGS = -D_XOPEN_SOURCE
+
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
check_PROGRAMS = testcms
--- testbed/testcms.c
+++ testbed/testcms.c
@@ -36,6 +36,7 @@
#include
#include
#include
+#include
#ifndef NON_WINDOWS
#include
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org