source: spec/trunk/SPECS/lcms2.spec

Last change on this file was 1545, checked in by Silvan Scherrer, 7 years ago

spec: lcms2: Release version 2.9-1.

File size: 2.4 KB
Line 
1Name: lcms2
2Version: 2.9
3Release: 1%{?dist}
4Summary: Color Management Engine
5License: MIT
6URL: http://www.littlecms.com/
7
8Vendor: bww bitwise works GmbH
9%scm_source svn http://svn.netlabs.org/repos/ports/lcms2/trunk 2316
10
11BuildRequires: gcc
12BuildRequires: libjpeg-devel
13BuildRequires: libtiff-devel
14BuildRequires: zlib-devel
15
16%description
17LittleCMS intends to be a small-footprint, speed optimized color management
18engine in open source form. LCMS2 is the current version of LCMS, and can be
19parallel installed with the original (deprecated) lcms.
20
21%package utils
22Summary: Utility applications for %{name}
23Requires: %{name} = %{version}-%{release}
24
25%description utils
26The %{name}-utils package contains utility applications for %{name}.
27
28%package devel
29Summary: Development files for LittleCMS
30Requires: %{name} = %{version}-%{release}
31Provides: littlecms-devel = %{version}-%{release}
32
33%description devel
34Development files for LittleCMS.
35
36%debug_package
37
38
39%prep
40%scm_setup
41
42# hammer to nuke rpaths, recheck on new releases
43export NOCONFIGURE=1
44libtoolize -fc
45autogen.sh
46
47
48%build
49export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -lcx"
50export VENDOR="%{vendor}"
51
52%configure --disable-static --enable-shared
53
54make %{?_smp_mflags}
55
56
57%install
58make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
59
60rm -fv %{buildroot}%{_libdir}/lib*.la
61
62# rename docs (for use with %%doc below)
63cp -af doc/LittleCMS2.?\ API.pdf api.pdf
64cp -af doc/LittleCMS2.?\ Plugin\ API.pdf plugin-api.pdf
65cp -af doc/LittleCMS2.?\ tutorial.pdf tutorial.pdf
66
67
68%check
69export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
70make check -k ||:
71
72
73#%ldconfig_scriplets
74
75
76%files
77%doc AUTHORS
78%license COPYING
79%{_libdir}/*.dll
80
81%files utils
82%{_bindir}/*.exe
83%{_mandir}/man1/*
84
85%files devel
86%doc api.pdf plugin-api.pdf tutorial.pdf
87%{_includedir}/lcms2*.h
88%{_libdir}/*.a
89%{_libdir}/pkgconfig/lcms2.pc
90
91
92%changelog
93* Sat Dec 29 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.9-1
94- update to vendor version 2.9
95
96* Fri Mar 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8-1
97- update to vendor version 2.8
98- use scm_ macros
99
100* Wed Mar 16 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.7-1
101- remove dbg files from normal packages
102
103* Tue Feb 16 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.7-0
104- First release
Note: See TracBrowser for help on using the repository browser.