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: 76c921973fdea4f880944a024197f924
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
21 BuildRequires: sed >= 4.0
23 BuildRequires: python-devel >= 1.5
24 BuildRequires: swig-python >= 1.3.25
26 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 # There is no pretty description in source archive... use these.
32 lcms does not allow to write profiles, and profile manipulation is not
33 its goal. Instead, lcms focus on implement fast transforms between
37 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
38 tej biblioteki. Natomiast lcms skupia siê na implementacji szybkiej
39 konwersji miêdzy profilami.
42 Summary: Little CMS - header files and developer's documentation
43 Summary(pl): Little CMS - pliki nag³ówkowe i dokumentacja
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
48 Header files needed to compile programs with liblcms and some
49 documentation useful for programmers.
51 %description devel -l pl
52 Pliki nag³ówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
56 Summary: Little CMS - static library
57 Summary(pl): Little CMS - biblioteka statyczna
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static version of liblcms.
64 %description static -l pl
65 Statyczna biblioteka liblcms.
68 Summary: Example and demonstration programs for Little CMS
69 Summary(pl): Programy przyk³adowe i demonstracyjne do Little CMS
70 Group: Applications/Graphics
71 Requires: %{name} = %{version}-%{release}
74 Example and demonstration programs for Little CMS.
76 %description progs -l pl
77 Programy przyk³adowe i demonstracyjne do Little CMS.
79 %package -n python-lcms
80 Summary: Little CMS module for Python
81 Summary(pl): Modu³ Little CMS dla Pythona
82 Group: Libraries/Python
83 Requires: %{name} = %{version}-%{release}
86 %description -n python-lcms
87 Little CMS module for Python.
89 %description -n python-lcms -l pl
90 Modu³ Little CMS dla Pythona.
94 # http://www.mail-archive.com/lcms-user@lists.sourceforge.net/msg01261.html
95 sed -i s/SWIGTYPE_LPGAMMATABLE/SWIGTYPE_p_GAMMATABLE/g python/lcms*
103 --with%{!?with_python:out}-python
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
115 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc AUTHORS NEWS README.1ST
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
129 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/lib*.so
134 %{_pkgconfigdir}/*.pc
137 %defattr(644,root,root,755)
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/*
146 %files -n python-lcms
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{py_sitedir}/_lcms.so
149 %{py_sitedir}/lcms.py