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