| 1 | Name: lcms2
|
|---|
| 2 | Version: 2.9
|
|---|
| 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 2316
|
|---|
| 10 |
|
|---|
| 11 | BuildRequires: gcc
|
|---|
| 12 | BuildRequires: libjpeg-devel
|
|---|
| 13 | BuildRequires: libtiff-devel
|
|---|
| 14 | BuildRequires: zlib-devel
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | LittleCMS intends to be a small-footprint, speed optimized color management
|
|---|
| 18 | engine in open source form. LCMS2 is the current version of LCMS, and can be
|
|---|
| 19 | parallel installed with the original (deprecated) lcms.
|
|---|
| 20 |
|
|---|
| 21 | %package utils
|
|---|
| 22 | Summary: Utility applications for %{name}
|
|---|
| 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 | Requires: %{name} = %{version}-%{release}
|
|---|
| 31 | Provides: littlecms-devel = %{version}-%{release}
|
|---|
| 32 |
|
|---|
| 33 | %description devel
|
|---|
| 34 | Development files for LittleCMS.
|
|---|
| 35 |
|
|---|
| 36 | %debug_package
|
|---|
| 37 |
|
|---|
| 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 |
|
|---|
| 48 | %build
|
|---|
| 49 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -lcx"
|
|---|
| 50 | export VENDOR="%{vendor}"
|
|---|
| 51 |
|
|---|
| 52 | %configure --disable-static --enable-shared
|
|---|
| 53 |
|
|---|
| 54 | make %{?_smp_mflags}
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | %install
|
|---|
| 58 | make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
|
|---|
| 59 |
|
|---|
| 60 | rm -fv %{buildroot}%{_libdir}/lib*.la
|
|---|
| 61 |
|
|---|
| 62 | # rename docs (for use with %%doc below)
|
|---|
| 63 | cp -af doc/LittleCMS2.?\ API.pdf api.pdf
|
|---|
| 64 | cp -af doc/LittleCMS2.?\ Plugin\ API.pdf plugin-api.pdf
|
|---|
| 65 | cp -af doc/LittleCMS2.?\ tutorial.pdf tutorial.pdf
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | %check
|
|---|
| 69 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
|
|---|
| 70 | make 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
|
|---|