| 1 | Name: lcms2
|
|---|
| 2 | Version: 2.8
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Color Management Engine
|
|---|
| 5 | License: MIT
|
|---|
| 6 | URL: http://www.littlecms.com/
|
|---|
| 7 |
|
|---|
| 8 | Vendor: bww bitwise works GmbH
|
|---|
| 9 | %scm_source svn http://svn.netlabs.org/repos/ports/lcms2/trunk 2123
|
|---|
| 10 |
|
|---|
| 11 | BuildRequires: libjpeg-devel
|
|---|
| 12 | BuildRequires: libtiff-devel
|
|---|
| 13 | BuildRequires: zlib-devel
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | LittleCMS intends to be a small-footprint, speed optimized color management
|
|---|
| 17 | engine in open source form. LCMS2 is the current version of LCMS, and can be
|
|---|
| 18 | parallel installed with the original (deprecated) lcms.
|
|---|
| 19 |
|
|---|
| 20 | %package utils
|
|---|
| 21 | Summary: Utility applications for %{name}
|
|---|
| 22 | Group: Applications/Productivity
|
|---|
| 23 | Requires: %{name} = %{version}-%{release}
|
|---|
| 24 |
|
|---|
| 25 | %description utils
|
|---|
| 26 | The %{name}-utils package contains utility applications for %{name}.
|
|---|
| 27 |
|
|---|
| 28 | %package devel
|
|---|
| 29 | Summary: Development files for LittleCMS
|
|---|
| 30 | Group: Development/Libraries
|
|---|
| 31 | Requires: %{name} = %{version}-%{release}
|
|---|
| 32 | Provides: littlecms-devel = %{version}-%{release}
|
|---|
| 33 |
|
|---|
| 34 | %description devel
|
|---|
| 35 | Development files for LittleCMS.
|
|---|
| 36 |
|
|---|
| 37 | %debug_package
|
|---|
| 38 |
|
|---|
| 39 | %prep
|
|---|
| 40 | %scm_setup
|
|---|
| 41 |
|
|---|
| 42 | # hammer to nuke rpaths, recheck on new releases
|
|---|
| 43 | export NOCONFIGURE=1
|
|---|
| 44 | libtoolize -fc
|
|---|
| 45 | autogen.sh
|
|---|
| 46 |
|
|---|
| 47 | %build
|
|---|
| 48 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 49 | export VENDOR="%{vendor}"
|
|---|
| 50 |
|
|---|
| 51 | %configure --disable-static --enable-shared
|
|---|
| 52 |
|
|---|
| 53 | make %{?_smp_mflags}
|
|---|
| 54 |
|
|---|
| 55 | %install
|
|---|
| 56 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 57 | make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|---|
| 58 | find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
|
|---|
| 59 |
|
|---|
| 60 | # install docs as this is all we've got
|
|---|
| 61 | install -D -m 644 doc/LittleCMS2.?\ tutorial.pdf ${RPM_BUILD_ROOT}/%{_datadir}/doc/lcms2-devel-%{version}/tutorial.pdf
|
|---|
| 62 | install -D -m 644 doc/LittleCMS2.?\ API.pdf ${RPM_BUILD_ROOT}%{_datadir}/doc/lcms2-devel-%{version}/api.pdf
|
|---|
| 63 | install -D -m 644 doc/LittleCMS2.?\ Plugin\ API.pdf ${RPM_BUILD_ROOT}%{_datadir}/doc/lcms2-devel-%{version}/plugin-api.pdf
|
|---|
| 64 |
|
|---|
| 65 | %clean
|
|---|
| 66 | rm -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
|
|---|