]> git.pld-linux.org Git - packages/lcms.git/blame - lcms.spec
- updated base desc
[packages/lcms.git] / lcms.spec
CommitLineData
86fd4aa9
JB
1#
2# Conditional build:
3%bcond_without python # don't build python bindings
4#
914017f0 5Summary: Little CMS - a library to transform between colour profiles
ba784bd7 6Summary(pl.UTF-8): Little CMS - biblioteka do konwersji między profilami kolorów
914017f0 7Name: lcms
4977361f 8Version: 1.19
9Release: 1
896f7926 10License: MIT
914017f0 11Group: Libraries
4977361f 12Source0: http://downloads.sourceforge.net/lcms/%{name}-%{version}.tar.gz
13# Source0-md5: 8af94611baf20d9646c7c2c285859818
14847a72 14Patch0: %{name}-python.patch
914017f0 15URL: http://www.littlecms.com/
429231dc 16BuildRequires: autoconf >= 2.57
63b969c4 17BuildRequires: automake >= 1:1.7.2
38ffa639 18BuildRequires: libjpeg-devel
429231dc 19BuildRequires: libstdc++-devel
38ffa639 20BuildRequires: libtiff-devel
429231dc 21BuildRequires: libtool >= 1:1.4.2-9
4af9957c 22BuildRequires: sed >= 4.0
64ad2df3 23%if %{with python}
14847a72 24BuildRequires: python-devel >= 2.2
4bb6fa74 25BuildRequires: python-modules
26BuildRequires: rpm-pythonprov
14847a72 27BuildRequires: swig-python >= 1.3.30
64ad2df3 28%endif
38ffa639 29BuildRequires: zlib-devel
914017f0
JB
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32# There is no pretty description in source archive... use these.
33
34%description
476668a8
JB
35Little CMS intends to be a small-footprint color management engine,
36with special focus on accuracy and performance. It uses the
37International Color Consortium standard (ICC), which is the modern
38standard when regarding to color management.
39
40Little CMS 1.x supports ICC profile specification v3.4.
914017f0 41
b3bff7a9 42%description -l pl.UTF-8
476668a8
JB
43Little CMS jest lekkim silnikiem zarządzania kolorami, tworzonym
44przede wszystkim z myślą o dokładności i wydajności. Wykorzystuje
45standard International Color Consortium (ICC), będący współczesnym
46standardem zarządzania kolorami.
47
48Little CMS obsługuje specyfikację profili ICC w wersji 3.4.
914017f0
JB
49
50%package devel
51Summary: Little CMS - header files and developer's documentation
ba784bd7 52Summary(pl.UTF-8): Little CMS - pliki nagłówkowe i dokumentacja
914017f0 53Group: Development/Libraries
d4a273c7 54Requires: %{name} = %{version}-%{release}
914017f0
JB
55
56%description devel
57Header files needed to compile programs with liblcms and some
58documentation useful for programmers.
59
b3bff7a9
JR
60%description devel -l pl.UTF-8
61Pliki nagłówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
62dla programistów.
914017f0
JB
63
64%package static
65Summary: Little CMS - static library
ba784bd7 66Summary(pl.UTF-8): Little CMS - biblioteka statyczna
914017f0 67Group: Development/Libraries
d4a273c7 68Requires: %{name}-devel = %{version}-%{release}
914017f0
JB
69
70%description static
71Static version of liblcms.
72
b3bff7a9 73%description static -l pl.UTF-8
914017f0
JB
74Statyczna biblioteka liblcms.
75
38ffa639
JB
76%package progs
77Summary: Example and demonstration programs for Little CMS
ba784bd7 78Summary(pl.UTF-8): Programy przykładowe i demonstracyjne do Little CMS
38ffa639 79Group: Applications/Graphics
d4a273c7 80Requires: %{name} = %{version}-%{release}
38ffa639
JB
81
82%description progs
83Example and demonstration programs for Little CMS.
84
b3bff7a9
JR
85%description progs -l pl.UTF-8
86Programy przykładowe i demonstracyjne do Little CMS.
38ffa639 87
429231dc
JB
88%package -n python-lcms
89Summary: Little CMS module for Python
ba784bd7 90Summary(pl.UTF-8): Moduł Little CMS dla Pythona
429231dc 91Group: Libraries/Python
d4a273c7 92Requires: %{name} = %{version}-%{release}
429231dc
JB
93%pyrequires_eq python
94
95%description -n python-lcms
96Little CMS module for Python.
97
b3bff7a9
JR
98%description -n python-lcms -l pl.UTF-8
99Moduł 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)
108cd python
109rm -f lcms.py lcms_wrap.cxx
110swig -python -c++ -I../include lcms.i
111cd ..
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
122rm -rf $RPM_BUILD_ROOT
123
5ec09a5a 124%{__make} install \
125 DESTDIR=$RPM_BUILD_ROOT
914017f0 126
38ffa639
JB
127install 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
132rm -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
This page took 0.092888 seconds and 4 git commands to generate.