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: 5a803460aeb10e762d97e11a37462a69
14 URL: http://www.littlecms.com/
15 BuildRequires: autoconf >= 2.57
16 BuildRequires: automake >= 1:1.7.2
17 BuildRequires: libjpeg-devel
18 BuildRequires: libstdc++-devel
19 BuildRequires: libtiff-devel
20 BuildRequires: libtool >= 1:1.4.2-9
22 BuildRequires: python-devel >= 1.5
23 BuildRequires: swig >= 1.3.12
25 BuildRequires: zlib-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 # There is no pretty description in source archive... use these.
31 lcms does not allow to write profiles, and profile manipulation is not
32 its goal. Instead, lcms focus on implement fast transforms between
36 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
37 tej biblioteki. Natomiast lcms skupia siê na implementacji szybkiej
38 konwersji miêdzy profilami.
41 Summary: Little CMS - header files and developer's documentation
42 Summary(pl): Little CMS - pliki nag³ówkowe i dokumentacja
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files needed to compile programs with liblcms and some
48 documentation useful for programmers.
50 %description devel -l pl
51 Pliki nag³ówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
55 Summary: Little CMS - static library
56 Summary(pl): Little CMS - biblioteka statyczna
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static version of liblcms.
63 %description static -l pl
64 Statyczna biblioteka liblcms.
67 Summary: Example and demonstration programs for Little CMS
68 Summary(pl): Programy przyk³adowe i demonstracyjne do Little CMS
69 Group: Applications/Graphics
70 Requires: %{name} = %{version}-%{release}
73 Example and demonstration programs for Little CMS.
75 %description progs -l pl
76 Programy przyk³adowe i demonstracyjne do Little CMS.
78 %package -n python-lcms
79 Summary: Little CMS module for Python
80 Summary(pl): Modu³ Little CMS dla Pythona
81 Group: Libraries/Python
82 Requires: %{name} = %{version}-%{release}
85 %description -n python-lcms
86 Little CMS module for Python.
88 %description -n python-lcms -l pl
89 Modu³ Little CMS dla Pythona.
100 --with%{!?with_python:out}-python
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
112 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc AUTHORS NEWS README.1ST
123 %attr(755,root,root) %{_libdir}/lib*.so.*.*
126 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/lib*.so
131 %{_pkgconfigdir}/*.pc
134 %defattr(644,root,root,755)
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/*
143 %files -n python-lcms
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{py_sitedir}/_lcms.so
146 %{py_sitedir}/lcms.py