]> git.pld-linux.org Git - packages/lcms.git/blame - lcms.spec
- BR: python-modules, rpm-pythonprov
[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
3d8ffedb 8Version: 1.18
fc92757b 9Release: 3
896f7926 10License: MIT
914017f0 11Group: Libraries
3d8ffedb
JB
12# corrupted
13#Source0: http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
14Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz
15# Source0-md5: 9f908e2dc48f76db77ac35a382e394c7
14847a72 16Patch0: %{name}-python.patch
914017f0 17URL: http://www.littlecms.com/
429231dc 18BuildRequires: autoconf >= 2.57
63b969c4 19BuildRequires: automake >= 1:1.7.2
a855e4c9 20BuildRequires: dos2unix
38ffa639 21BuildRequires: libjpeg-devel
429231dc 22BuildRequires: libstdc++-devel
38ffa639 23BuildRequires: libtiff-devel
429231dc 24BuildRequires: libtool >= 1:1.4.2-9
4af9957c 25BuildRequires: sed >= 4.0
64ad2df3 26%if %{with python}
14847a72 27BuildRequires: python-devel >= 2.2
4bb6fa74 28BuildRequires: python-modules
29BuildRequires: rpm-pythonprov
14847a72 30BuildRequires: swig-python >= 1.3.30
64ad2df3 31%endif
38ffa639 32BuildRequires: zlib-devel
914017f0
JB
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35# There is no pretty description in source archive... use these.
36
37%description
38lcms does not allow to write profiles, and profile manipulation is not
39its goal. Instead, lcms focus on implement fast transforms between
40profiles.
41
b3bff7a9
JR
42%description -l pl.UTF-8
43lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
44tej biblioteki. Natomiast lcms skupia się na implementacji szybkiej
45konwersji między profilami.
914017f0
JB
46
47%package devel
48Summary: Little CMS - header files and developer's documentation
ba784bd7 49Summary(pl.UTF-8): Little CMS - pliki nagłówkowe i dokumentacja
914017f0 50Group: Development/Libraries
d4a273c7 51Requires: %{name} = %{version}-%{release}
914017f0
JB
52
53%description devel
54Header files needed to compile programs with liblcms and some
55documentation useful for programmers.
56
b3bff7a9
JR
57%description devel -l pl.UTF-8
58Pliki nagłówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
59dla programistów.
914017f0
JB
60
61%package static
62Summary: Little CMS - static library
ba784bd7 63Summary(pl.UTF-8): Little CMS - biblioteka statyczna
914017f0 64Group: Development/Libraries
d4a273c7 65Requires: %{name}-devel = %{version}-%{release}
914017f0
JB
66
67%description static
68Static version of liblcms.
69
b3bff7a9 70%description static -l pl.UTF-8
914017f0
JB
71Statyczna biblioteka liblcms.
72
38ffa639
JB
73%package progs
74Summary: Example and demonstration programs for Little CMS
ba784bd7 75Summary(pl.UTF-8): Programy przykładowe i demonstracyjne do Little CMS
38ffa639 76Group: Applications/Graphics
d4a273c7 77Requires: %{name} = %{version}-%{release}
38ffa639
JB
78
79%description progs
80Example and demonstration programs for Little CMS.
81
b3bff7a9
JR
82%description progs -l pl.UTF-8
83Programy przykładowe i demonstracyjne do Little CMS.
38ffa639 84
429231dc
JB
85%package -n python-lcms
86Summary: Little CMS module for Python
ba784bd7 87Summary(pl.UTF-8): Moduł Little CMS dla Pythona
429231dc 88Group: Libraries/Python
d4a273c7 89Requires: %{name} = %{version}-%{release}
429231dc
JB
90%pyrequires_eq python
91
92%description -n python-lcms
93Little CMS module for Python.
94
b3bff7a9
JR
95%description -n python-lcms -l pl.UTF-8
96Moduł Little CMS dla Pythona.
429231dc 97
914017f0
JB
98%prep
99%setup -q
a855e4c9 100dos2unix configure.ac
14847a72 101%patch0 -p1
914017f0
JB
102
103%build
14847a72
JB
104# rebuild using newer swig (needed for g++ 4/python 2.5)
105cd python
106rm -f lcms.py lcms_wrap.cxx
107swig -python -c++ -I../include lcms.i
108cd ..
5ec09a5a 109%{__libtoolize}
110%{__aclocal}
111%{__autoconf}
112%{__automake}
429231dc 113%configure \
64ad2df3 114 --with%{!?with_python:out}-python
5ec09a5a 115
429231dc 116%{__make}
914017f0
JB
117
118%install
119rm -rf $RPM_BUILD_ROOT
120
5ec09a5a 121%{__make} install \
122 DESTDIR=$RPM_BUILD_ROOT
914017f0 123
38ffa639
JB
124install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
125
429231dc
JB
126rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
127
914017f0
JB
128%clean
129rm -rf $RPM_BUILD_ROOT
130
131%post -p /sbin/ldconfig
132%postun -p /sbin/ldconfig
133
134%files
135%defattr(644,root,root,755)
896f7926 136%doc AUTHORS COPYING NEWS README.1ST
14847a72 137%attr(755,root,root) %{_libdir}/liblcms.so.*.*.*
f723569a 138%attr(755,root,root) %ghost %{_libdir}/liblcms.so.1
914017f0
JB
139
140%files devel
141%defattr(644,root,root,755)
44e323b4 142%doc doc/*
14847a72
JB
143%attr(755,root,root) %{_libdir}/liblcms.so
144%{_libdir}/liblcms.la
429231dc 145%{_includedir}/*.h
14847a72 146%{_pkgconfigdir}/lcms.pc
914017f0
JB
147
148%files static
149%defattr(644,root,root,755)
14847a72 150%{_libdir}/liblcms.a
38ffa639
JB
151
152%files progs
153%defattr(644,root,root,755)
154%attr(755,root,root) %{_bindir}/*
02971f77 155%{_mandir}/man1/*.1*
429231dc 156
64ad2df3 157%if %{with python}
429231dc
JB
158%files -n python-lcms
159%defattr(644,root,root,755)
160%attr(755,root,root) %{py_sitedir}/_lcms.so
161%{py_sitedir}/lcms.py
64ad2df3 162%endif
This page took 0.486442 seconds and 4 git commands to generate.