Update config.sub and config.guess
[platform/upstream/lcms2.git] / packaging / lcms2.spec
1 %define lname libcms2
2 Name:           lcms2
3 Summary:        Little CMS Engine - A color managment library and tools
4 License:        MIT
5 Group:          Graphics/Libraries
6 Url:            http://www.littlecms.com/
7 Version:        2.12
8 Release:        0
9 BuildRequires:  libjpeg-devel
10 BuildRequires:  libtiff-devel
11 BuildRequires:  pkg-config
12 BuildRequires:  zlib-devel
13 Source0:        http://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
14 Source1001:     lcms2.manifest
15
16 %description
17 Littlecms is a small speed optimized color management engine.
18 Little CMS intends to be a small-footprint color management engine
19 with a special focus on accuracy and performance. It uses the International
20 Color Consortium standard (ICC), which is the modern standard when
21 regarding to color management. The ICC specification is widely used and is
22 referred to in many International and other de-facto standards.
23
24 %package -n libcms2
25 Summary:        Libraries for the Little CMS Engine
26 Group:          Graphics/Libraries
27
28 %description -n libcms2
29 Little CMS Engine - A color managment library and tools.
30
31 %package -n liblcms2-devel
32 Summary:        Include Files and Libraries Mandatory for Development
33 Group:          Development/Libraries
34 Requires:       libcms2 = %{version}
35 Requires:       glibc-devel
36
37 %description -n liblcms2-devel
38 This package contains all necessary include files and libraries needed
39 to develop applications that require these.
40
41 %prep
42 %setup -q
43 cp %{SOURCE1001} .
44
45 chmod a-x doc/* COPYING AUTHORS
46
47 %build
48 %configure --without-threads
49 make %{?_smp_flags}
50
51 %install
52 %make_install
53
54 %post -n libcms2 -p /sbin/ldconfig
55
56 %postun -n libcms2 -p /sbin/ldconfig
57
58 %files
59 %manifest %{name}.manifest
60 %defattr(-,root,root)
61 %license COPYING
62 %{_bindir}/*
63
64 %files -n libcms2
65 %manifest %{name}.manifest
66 %defattr(-,root,root)
67 %license COPYING
68 %{_libdir}/liblcms2.so.2*
69
70 %files -n liblcms2-devel
71 %manifest %{name}.manifest
72 %defattr(-,root,root)
73 %{_includedir}/*.h
74 %{_libdir}/*.so
75 %{_libdir}/pkgconfig/*.pc
76
77 %docs_package