]>
Commit | Line | Data |
---|---|---|
86fd4aa9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python # don't build python bindings | |
4 | # | |
914017f0 | 5 | Summary: Little CMS - a library to transform between colour profiles |
ba784bd7 | 6 | Summary(pl.UTF-8): Little CMS - biblioteka do konwersji między profilami kolorów |
914017f0 | 7 | Name: lcms |
4977361f | 8 | Version: 1.19 |
9 | Release: 1 | |
896f7926 | 10 | License: MIT |
914017f0 | 11 | Group: Libraries |
4977361f | 12 | Source0: http://downloads.sourceforge.net/lcms/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 8af94611baf20d9646c7c2c285859818 | |
14847a72 | 14 | Patch0: %{name}-python.patch |
914017f0 | 15 | URL: http://www.littlecms.com/ |
429231dc | 16 | BuildRequires: autoconf >= 2.57 |
63b969c4 | 17 | BuildRequires: automake >= 1:1.7.2 |
38ffa639 | 18 | BuildRequires: libjpeg-devel |
429231dc | 19 | BuildRequires: libstdc++-devel |
38ffa639 | 20 | BuildRequires: libtiff-devel |
429231dc | 21 | BuildRequires: libtool >= 1:1.4.2-9 |
4af9957c | 22 | BuildRequires: sed >= 4.0 |
64ad2df3 | 23 | %if %{with python} |
14847a72 | 24 | BuildRequires: python-devel >= 2.2 |
4bb6fa74 | 25 | BuildRequires: python-modules |
26 | BuildRequires: rpm-pythonprov | |
14847a72 | 27 | BuildRequires: swig-python >= 1.3.30 |
64ad2df3 | 28 | %endif |
38ffa639 | 29 | BuildRequires: zlib-devel |
914017f0 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | # There is no pretty description in source archive... use these. | |
33 | ||
34 | %description | |
476668a8 JB |
35 | Little CMS intends to be a small-footprint color management engine, |
36 | with special focus on accuracy and performance. It uses the | |
37 | International Color Consortium standard (ICC), which is the modern | |
38 | standard when regarding to color management. | |
39 | ||
40 | Little CMS 1.x supports ICC profile specification v3.4. | |
914017f0 | 41 | |
b3bff7a9 | 42 | %description -l pl.UTF-8 |
476668a8 JB |
43 | Little CMS jest lekkim silnikiem zarządzania kolorami, tworzonym |
44 | przede wszystkim z myślą o dokładności i wydajności. Wykorzystuje | |
45 | standard International Color Consortium (ICC), będący współczesnym | |
46 | standardem zarządzania kolorami. | |
47 | ||
48 | Little CMS obsługuje specyfikację profili ICC w wersji 3.4. | |
914017f0 JB |
49 | |
50 | %package devel | |
51 | Summary: Little CMS - header files and developer's documentation | |
ba784bd7 | 52 | Summary(pl.UTF-8): Little CMS - pliki nagłówkowe i dokumentacja |
914017f0 | 53 | Group: Development/Libraries |
d4a273c7 | 54 | Requires: %{name} = %{version}-%{release} |
914017f0 JB |
55 | |
56 | %description devel | |
57 | Header files needed to compile programs with liblcms and some | |
58 | documentation useful for programmers. | |
59 | ||
b3bff7a9 JR |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja | |
62 | dla programistów. | |
914017f0 JB |
63 | |
64 | %package static | |
65 | Summary: Little CMS - static library | |
ba784bd7 | 66 | Summary(pl.UTF-8): Little CMS - biblioteka statyczna |
914017f0 | 67 | Group: Development/Libraries |
d4a273c7 | 68 | Requires: %{name}-devel = %{version}-%{release} |
914017f0 JB |
69 | |
70 | %description static | |
71 | Static version of liblcms. | |
72 | ||
b3bff7a9 | 73 | %description static -l pl.UTF-8 |
914017f0 JB |
74 | Statyczna biblioteka liblcms. |
75 | ||
38ffa639 JB |
76 | %package progs |
77 | Summary: Example and demonstration programs for Little CMS | |
ba784bd7 | 78 | Summary(pl.UTF-8): Programy przykładowe i demonstracyjne do Little CMS |
38ffa639 | 79 | Group: Applications/Graphics |
d4a273c7 | 80 | Requires: %{name} = %{version}-%{release} |
38ffa639 JB |
81 | |
82 | %description progs | |
83 | Example and demonstration programs for Little CMS. | |
84 | ||
b3bff7a9 JR |
85 | %description progs -l pl.UTF-8 |
86 | Programy przykładowe i demonstracyjne do Little CMS. | |
38ffa639 | 87 | |
429231dc JB |
88 | %package -n python-lcms |
89 | Summary: Little CMS module for Python | |
ba784bd7 | 90 | Summary(pl.UTF-8): Moduł Little CMS dla Pythona |
429231dc | 91 | Group: Libraries/Python |
d4a273c7 | 92 | Requires: %{name} = %{version}-%{release} |
429231dc JB |
93 | %pyrequires_eq python |
94 | ||
95 | %description -n python-lcms | |
96 | Little CMS module for Python. | |
97 | ||
b3bff7a9 JR |
98 | %description -n python-lcms -l pl.UTF-8 |
99 | Moduł Little CMS dla Pythona. | |
429231dc | 100 | |
914017f0 JB |
101 | %prep |
102 | %setup -q | |
4977361f | 103 | %undos configure.ac |
14847a72 | 104 | %patch0 -p1 |
914017f0 JB |
105 | |
106 | %build | |
14847a72 JB |
107 | # rebuild using newer swig (needed for g++ 4/python 2.5) |
108 | cd python | |
109 | rm -f lcms.py lcms_wrap.cxx | |
110 | swig -python -c++ -I../include lcms.i | |
111 | cd .. | |
5ec09a5a | 112 | %{__libtoolize} |
113 | %{__aclocal} | |
114 | %{__autoconf} | |
115 | %{__automake} | |
429231dc | 116 | %configure \ |
64ad2df3 | 117 | --with%{!?with_python:out}-python |
5ec09a5a | 118 | |
429231dc | 119 | %{__make} |
914017f0 JB |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
5ec09a5a | 124 | %{__make} install \ |
125 | DESTDIR=$RPM_BUILD_ROOT | |
914017f0 | 126 | |
38ffa639 JB |
127 | install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir} |
128 | ||
476668a8 | 129 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la} |
429231dc | 130 | |
914017f0 JB |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
137 | %files | |
138 | %defattr(644,root,root,755) | |
896f7926 | 139 | %doc AUTHORS COPYING NEWS README.1ST |
14847a72 | 140 | %attr(755,root,root) %{_libdir}/liblcms.so.*.*.* |
f723569a | 141 | %attr(755,root,root) %ghost %{_libdir}/liblcms.so.1 |
914017f0 JB |
142 | |
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
44e323b4 | 145 | %doc doc/* |
14847a72 JB |
146 | %attr(755,root,root) %{_libdir}/liblcms.so |
147 | %{_libdir}/liblcms.la | |
476668a8 JB |
148 | %{_includedir}/icc34.h |
149 | %{_includedir}/lcms.h | |
14847a72 | 150 | %{_pkgconfigdir}/lcms.pc |
914017f0 JB |
151 | |
152 | %files static | |
153 | %defattr(644,root,root,755) | |
14847a72 | 154 | %{_libdir}/liblcms.a |
38ffa639 JB |
155 | |
156 | %files progs | |
157 | %defattr(644,root,root,755) | |
476668a8 JB |
158 | %attr(755,root,root) %{_bindir}/icc2ps |
159 | %attr(755,root,root) %{_bindir}/icclink | |
160 | %attr(755,root,root) %{_bindir}/icctrans | |
161 | %attr(755,root,root) %{_bindir}/jpegicc | |
162 | %attr(755,root,root) %{_bindir}/tiffdiff | |
163 | %attr(755,root,root) %{_bindir}/tifficc | |
164 | %attr(755,root,root) %{_bindir}/wtpt | |
165 | %{_mandir}/man1/icc2ps.1* | |
166 | %{_mandir}/man1/icclink.1* | |
167 | %{_mandir}/man1/jpegicc.1* | |
168 | %{_mandir}/man1/tifficc.1* | |
169 | %{_mandir}/man1/wtpt.1* | |
429231dc | 170 | |
64ad2df3 | 171 | %if %{with python} |
429231dc JB |
172 | %files -n python-lcms |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{py_sitedir}/_lcms.so | |
175 | %{py_sitedir}/lcms.py | |
64ad2df3 | 176 | %endif |