3 %bcond_without python # don't build python bindings
5 Summary: Little CMS - a library to transform between colour profiles
6 Summary(pl): Little CMS - biblioteka do konwersji miêdzy profilami kolorów
12 Source0: http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
13 # Source0-md5: b07b623f3e712373ff713fb32cf23651
14 Patch0: %{name}-python.patch
15 URL: http://www.littlecms.com/
16 BuildRequires: autoconf >= 2.57
17 BuildRequires: automake >= 1:1.7.2
18 BuildRequires: libjpeg-devel
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtiff-devel
21 BuildRequires: libtool >= 1:1.4.2-9
22 BuildRequires: sed >= 4.0
24 BuildRequires: python-devel >= 2.2
25 BuildRequires: swig-python >= 1.3.30
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 # There is no pretty description in source archive... use these.
33 lcms does not allow to write profiles, and profile manipulation is not
34 its goal. Instead, lcms focus on implement fast transforms between
38 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
39 tej biblioteki. Natomiast lcms skupia siê na implementacji szybkiej
40 konwersji miêdzy profilami.
43 Summary: Little CMS - header files and developer's documentation
44 Summary(pl): Little CMS - pliki nag³ówkowe i dokumentacja
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Header files needed to compile programs with liblcms and some
50 documentation useful for programmers.
52 %description devel -l pl
53 Pliki nag³ówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
57 Summary: Little CMS - static library
58 Summary(pl): Little CMS - biblioteka statyczna
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static version of liblcms.
65 %description static -l pl
66 Statyczna biblioteka liblcms.
69 Summary: Example and demonstration programs for Little CMS
70 Summary(pl): Programy przyk³adowe i demonstracyjne do Little CMS
71 Group: Applications/Graphics
72 Requires: %{name} = %{version}-%{release}
75 Example and demonstration programs for Little CMS.
77 %description progs -l pl
78 Programy przyk³adowe i demonstracyjne do Little CMS.
80 %package -n python-lcms
81 Summary: Little CMS module for Python
82 Summary(pl): Modu³ Little CMS dla Pythona
83 Group: Libraries/Python
84 Requires: %{name} = %{version}-%{release}
87 %description -n python-lcms
88 Little CMS module for Python.
90 %description -n python-lcms -l pl
91 Modu³ Little CMS dla Pythona.
98 # rebuild using newer swig (needed for g++ 4/python 2.5)
100 rm -f lcms.py lcms_wrap.cxx
101 swig -python -c++ -I../include lcms.i
108 --with%{!?with_python:out}-python
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
118 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
120 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
123 rm -rf $RPM_BUILD_ROOT
125 %post -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
129 %defattr(644,root,root,755)
130 %doc AUTHORS NEWS README.1ST
131 %attr(755,root,root) %{_libdir}/liblcms.so.*.*.*
134 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/liblcms.so
137 %{_libdir}/liblcms.la
139 %{_pkgconfigdir}/lcms.pc
142 %defattr(644,root,root,755)
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/*
151 %files -n python-lcms
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{py_sitedir}/_lcms.so
154 %{py_sitedir}/lcms.py