]> git.pld-linux.org Git - packages/lcms.git/blob - lcms.spec
b4e22752714a66f43f48b54bca4d4f45f697aa6f
[packages/lcms.git] / lcms.spec
1 #
2 # Conditional build:
3 %bcond_without  python  # don't build python bindings
4 #
5 Summary:        Little CMS - a library to transform between colour profiles
6 Summary(pl):    Little CMS - biblioteka do konwersji miêdzy profilami kolorów
7 Name:           lcms
8 Version:        1.14
9 Release:        2
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/lcms/%{name}-%{version}.tar.gz
13 # Source0-md5:  5a803460aeb10e762d97e11a37462a69
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 %if %{with python}
22 BuildRequires:  python-devel >= 1.5
23 BuildRequires:  swig >= 1.3.12
24 %endif
25 BuildRequires:  zlib-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 # There is no pretty description in source archive... use these.
29
30 %description
31 lcms does not allow to write profiles, and profile manipulation is not
32 its goal. Instead, lcms focus on implement fast transforms between
33 profiles.
34
35 %description -l pl
36 lcms nie pozwala na tworzenie profili i obróbka profili nie jest celem
37 tej biblioteki. Natomiast lcms skupia siê na implementacji szybkiej
38 konwersji miêdzy profilami.
39
40 %package devel
41 Summary:        Little CMS - header files and developer's documentation
42 Summary(pl):    Little CMS - pliki nag³ówkowe i dokumentacja
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45
46 %description devel
47 Header files needed to compile programs with liblcms and some
48 documentation useful for programmers.
49
50 %description devel -l pl
51 Pliki nag³ówkowe potrzebne do konsolidacji z liblcms oraz dokumentacja
52 dla programistów.
53
54 %package static
55 Summary:        Little CMS - static library
56 Summary(pl):    Little CMS - biblioteka statyczna
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static version of liblcms.
62
63 %description static -l pl
64 Statyczna biblioteka liblcms.
65
66 %package progs
67 Summary:        Example and demonstration programs for Little CMS
68 Summary(pl):    Programy przyk³adowe i demonstracyjne do Little CMS
69 Group:          Applications/Graphics
70 Requires:       %{name} = %{version}-%{release}
71
72 %description progs
73 Example and demonstration programs for Little CMS.
74
75 %description progs -l pl
76 Programy przyk³adowe i demonstracyjne do Little CMS.
77
78 %package -n python-lcms
79 Summary:        Little CMS module for Python
80 Summary(pl):    Modu³ Little CMS dla Pythona
81 Group:          Libraries/Python
82 Requires:       %{name} = %{version}-%{release}
83 %pyrequires_eq  python
84
85 %description -n python-lcms
86 Little CMS module for Python.
87
88 %description -n python-lcms -l pl
89 Modu³ Little CMS dla Pythona.
90
91 %prep
92 %setup -q
93
94 %build
95 %{__libtoolize}
96 %{__aclocal}
97 %{__autoconf}
98 %{__automake}
99 %configure \
100         --with%{!?with_python:out}-python
101
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 install samples/{icctrans,wtpt} tifficc/tifficc $RPM_BUILD_ROOT%{_bindir}
111
112 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files
121 %defattr(644,root,root,755)
122 %doc AUTHORS NEWS README.1ST
123 %attr(755,root,root) %{_libdir}/lib*.so.*.*
124
125 %files devel
126 %defattr(644,root,root,755)
127 %doc doc/*
128 %attr(755,root,root) %{_libdir}/lib*.so
129 %{_libdir}/lib*.la
130 %{_includedir}/*.h
131 %{_pkgconfigdir}/*.pc
132
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/lib*.a
136
137 %files progs
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/*
140 %{_mandir}/man1/*.1*
141
142 %if %{with python}
143 %files -n python-lcms
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{py_sitedir}/_lcms.so
146 %{py_sitedir}/lcms.py
147 %endif
This page took 0.077037 seconds and 3 git commands to generate.