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