lcms2/lcms2.spec
Dominique Leuenberger 826edb8986 Accepting request 888172 from home:dirkmueller:Factory
- update to 2.12:
  * Added build system for fast-float plugin (see plugin documentation)
  * Added new build-in sigmoidal tone curve
  * Added XCode 12 project
  * Added support for multichannel input up to 15 channels
  * Fix LUT8 write matrix
  * Fix version mess on 10/11
  * Fix tools & samples xgetopt
  * Fix warnings on different function pointers
  * Fix matlab MEX compilation
  * plugin: cleanup and better SSE detection
  * plugin: add lab to any on float
  * plugin: it can now be compiled as C++
  * recover PDF documentation, but try to keep it under a resonable size.
  * Prevent a rare but possible out-of-bounds read in postscript generator
  * Fix some compiler warnings
  * Add named color profile building sample to testbed

OBS-URL: https://build.opensuse.org/request/show/888172
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lcms2?expand=0&rev=76
2021-05-03 14:48:30 +00:00

137 lines
3.6 KiB
RPMSpec

#
# spec file for package lcms2
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: lcms2
Version: 2.12
Release: 0
Summary: Little CMS Engine - A color managment library and tools
License: MIT
Group: Productivity/Graphics/Other
URL: http://www.littlecms.com/
Source0: https://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch1: lcms2-ocloexec.patch
Patch2: lcms2-visibility.patch
%if 0%{?suse_version}
BuildRequires: autoconf
BuildRequires: glibc-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%endif
%if 0%{?fedora_version}
BuildRequires: gcc
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%endif
%if 0%{?mandriva_version}
BuildRequires: gcc
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%endif
%description
Littlecms is a small speed optimized color management engine.
Little CMS intends to be a small-footprint color management engine
with a special focus on accuracy and performance. It uses the International
Color Consortium standard (ICC), which is the modern standard when
regarding to color management. The ICC specification is widely used and is
referred to in many International and other de-facto standards.
%package -n liblcms2-2
Summary: Libraries for the Little CMS Engine
Group: System/Libraries
%description -n liblcms2-2
Little CMS Engine - A color managment library and tools.
%package -n liblcms2-devel
Summary: Include Files and Libraries Mandatory for Development
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: liblcms2-2 = %{version}
%description -n liblcms2-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n liblcms2-doc
Summary: User and developer documentation for lcms2
Group: Documentation/Other
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description -n liblcms2-doc
This package contains user and developer documentation for lcms2.
%prep
%autosetup -p1
chmod a-x doc/* COPYING AUTHORS
%build
autoreconf -fiv
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
# FIXME --without-threads is a workaround for a linker error
%configure --disable-static --without-threads
%make_build
%check
# FIXME before submitting to factory
%make_build check || true
%make_build utils
%install
%make_install
rm %{buildroot}/%{_libdir}/liblcms2.la
%post -n liblcms2-2 -p /sbin/ldconfig
%postun -n liblcms2-2 -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS
%{_bindir}/*
%{_mandir}/man?/*.*
%files -n liblcms2-2
%{_libdir}/liblcms2.so.2*
%files -n liblcms2-devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files -n liblcms2-doc
%doc doc/*pdf
%changelog