source: spec/trunk/SPECS/lcms2.spec@ 1046

Last change on this file since 1046 was 1046, checked in by Silvan Scherrer, 9 years ago

spec: lcms2: Release version 2.8-1.

File size: 2.6 KB
Line 
1Name: lcms2
2Version: 2.8
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 2123
10
11BuildRequires: libjpeg-devel
12BuildRequires: libtiff-devel
13BuildRequires: zlib-devel
14
15%description
16LittleCMS intends to be a small-footprint, speed optimized color management
17engine in open source form. LCMS2 is the current version of LCMS, and can be
18parallel installed with the original (deprecated) lcms.
19
20%package utils
21Summary: Utility applications for %{name}
22Group: Applications/Productivity
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
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
32Provides: littlecms-devel = %{version}-%{release}
33
34%description devel
35Development files for LittleCMS.
36
37%debug_package
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%build
48export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
49export VENDOR="%{vendor}"
50
51%configure --disable-static --enable-shared
52
53make %{?_smp_mflags}
54
55%install
56rm -rf ${RPM_BUILD_ROOT}
57make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
58find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
59
60# install docs as this is all we've got
61install -D -m 644 doc/LittleCMS2.?\ tutorial.pdf ${RPM_BUILD_ROOT}/%{_datadir}/doc/lcms2-devel-%{version}/tutorial.pdf
62install -D -m 644 doc/LittleCMS2.?\ API.pdf ${RPM_BUILD_ROOT}%{_datadir}/doc/lcms2-devel-%{version}/api.pdf
63install -D -m 644 doc/LittleCMS2.?\ Plugin\ API.pdf ${RPM_BUILD_ROOT}%{_datadir}/doc/lcms2-devel-%{version}/plugin-api.pdf
64
65%clean
66rm -rf ${RPM_BUILD_ROOT}
67
68#%post -p /sbin/ldconfig
69
70#%postun -p /sbin/ldconfig
71
72%files
73%defattr(-,root,root,-)
74%doc AUTHORS COPYING
75%{_libdir}/*.dll
76
77%files utils
78%defattr(-,root,root,-)
79%{_bindir}/*.exe
80%{_mandir}/man1/*
81
82%files devel
83%defattr(-,root,root,-)
84%{_datadir}/doc/lcms2-devel-%{version}/*.pdf
85%{_includedir}/*
86%{_libdir}/*.a
87%{_libdir}/pkgconfig/%{name}.pc
88
89%changelog
90* Fri Mar 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8-1
91- update to vendor version 2.8
92_ use scm_ macros
93
94* Wed Mar 16 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.7-1
95- remove dbg files from normal packages
96
97* Thu Feb 16 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.7-0
98- First release
Note: See TracBrowser for help on using the repository browser.