3 %bcond_without python # don't build python bindings
5 Summary: Little CMS - a library to transform between colour profiles
6 Summary(pl.UTF-8): Little CMS - biblioteka do konwersji między profilami kolorów
13 #Source0: http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
14 Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz
15 # Source0-md5: 9f908e2dc48f76db77ac35a382e394c7
16 Patch0: %{name}-python.patch
17 URL: http://www.littlecms.com/
18 BuildRequires: autoconf >= 2.57
19 BuildRequires: automake >= 1:1.7.2
20 BuildRequires: dos2unix
21 BuildRequires: libjpeg-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtiff-devel
24 BuildRequires: libtool >= 1:1.4.2-9
25 BuildRequires: sed >= 4.0
27 BuildRequires: python-devel >= 2.2
28 BuildRequires: swig-python >= 1.3.30
30 BuildRequires: zlib-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 # There is no pretty description in source archive... use these.
36 lcms does not allow to write profiles, and profile manipulation is not
37 its goal. Instead, lcms focus on implement fast transforms between
40 %description -l pl.UTF-8
41 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
42 tej biblioteki. Natomiast lcms skupia się na implementacji szybkiej
43 konwersji między profilami.
46 Summary: Little CMS - header files and developer's documentation
47 Summary(pl.UTF-8): Little CMS - pliki nagłówkowe i dokumentacja
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Header files needed to compile programs with liblcms and some
53 documentation useful for programmers.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
60 Summary: Little CMS - static library
61 Summary(pl.UTF-8): Little CMS - biblioteka statyczna
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static version of liblcms.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka liblcms.
72 Summary: Example and demonstration programs for Little CMS
73 Summary(pl.UTF-8): Programy przykładowe i demonstracyjne do Little CMS
74 Group: Applications/Graphics
75 Requires: %{name} = %{version}-%{release}
78 Example and demonstration programs for Little CMS.
80 %description progs -l pl.UTF-8
81 Programy przykładowe i demonstracyjne do Little CMS.
83 %package -n python-lcms
84 Summary: Little CMS module for Python
85 Summary(pl.UTF-8): Moduł Little CMS dla Pythona
86 Group: Libraries/Python
87 Requires: %{name} = %{version}-%{release}
90 %description -n python-lcms
91 Little CMS module for Python.
93 %description -n python-lcms -l pl.UTF-8
94 Moduł Little CMS dla Pythona.
102 # rebuild using newer swig (needed for g++ 4/python 2.5)
104 rm -f lcms.py lcms_wrap.cxx
105 swig -python -c++ -I../include lcms.i
112 --with%{!?with_python:out}-python
117 rm -rf $RPM_BUILD_ROOT
120 DESTDIR=$RPM_BUILD_ROOT
122 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
124 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
127 rm -rf $RPM_BUILD_ROOT
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 %defattr(644,root,root,755)
134 %doc AUTHORS COPYING NEWS README.1ST
135 %attr(755,root,root) %{_libdir}/liblcms.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/liblcms.so.1
139 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/liblcms.so
142 %{_libdir}/liblcms.la
144 %{_pkgconfigdir}/lcms.pc
147 %defattr(644,root,root,755)
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/*
156 %files -n python-lcms
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{py_sitedir}/_lcms.so
159 %{py_sitedir}/lcms.py