1 %include /usr/lib/rpm/macros.python
2 Summary: Little CMS - a library to transform between colour profiles
3 Summary(pl): Little CMS - biblioteka do konwersji miêdzy profilami kolorów
9 Source0: http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
10 # Source0-md5: ac377fc055cf50aa8a8505aedb13a125
11 URL: http://www.littlecms.com/
12 BuildRequires: autoconf >= 2.57
13 BuildRequires: automake >= 1.7.2
14 BuildRequires: libjpeg-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: libtiff-devel
17 BuildRequires: libtool >= 1:1.4.2-9
18 BuildRequires: python-devel >= 1.5
19 BuildRequires: rpm-pythonprov
20 BuildRequires: swig >= 1.3.12
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 # There is no pretty description in source archive... use these.
27 lcms does not allow to write profiles, and profile manipulation is not
28 its goal. Instead, lcms focus on implement fast transforms between
32 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
33 tej biblioteki. Natomiast lcms skupia siê na implementacji szybkiej
34 konwersji miêdzy profilami.
37 Summary: Little CMS - header files and developer's documentation
38 Summary(pl): Little CMS - pliki nag³ówkowe i dokumentacja
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header files needed to compile programs with liblcms and some
44 documentation useful for programmers.
46 %description devel -l pl
47 Pliki nag³ówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
51 Summary: Little CMS - static library
52 Summary(pl): Little CMS - biblioteka statyczna
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static version of liblcms.
59 %description static -l pl
60 Statyczna biblioteka liblcms.
63 Summary: Example and demonstration programs for Little CMS
64 Summary(pl): Programy przyk³adowe i demonstracyjne do Little CMS
65 Group: Applications/Graphics
66 Requires: %{name} = %{version}-%{release}
69 Example and demonstration programs for Little CMS.
71 %description progs -l pl
72 Programy przyk³adowe i demonstracyjne do Little CMS.
74 %package -n python-lcms
75 Summary: Little CMS module for Python
76 Summary(pl): Modu³ Little CMS dla Pythona
77 Group: Libraries/Python
78 Requires: %{name} = %{version}-%{release}
81 %description -n python-lcms
82 Little CMS module for Python.
84 %description -n python-lcms -l pl
85 Modu³ Little CMS dla Pythona.
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT
106 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
108 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc AUTHORS NEWS README.1ST
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
129 %defattr(644,root,root,755)
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/*
136 %files -n python-lcms
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{py_sitedir}/_lcms.so
139 %{py_sitedir}/lcms.py