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