2010-10-14 00:55:59 +02:00
|
|
|
#
|
2011-04-21 12:09:19 +02:00
|
|
|
# spec file for package lcms2
|
2010-10-14 00:55:59 +02:00
|
|
|
#
|
2020-08-25 12:33:59 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-10-14 00:55:59 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-04 09:31:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-10-14 00:55:59 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lcms2
|
2020-08-25 12:33:59 +02:00
|
|
|
Version: 2.11
|
|
|
|
Release: 0
|
2011-12-17 14:17:57 +01:00
|
|
|
Summary: Little CMS Engine - A color managment library and tools
|
2011-12-06 18:22:22 +01:00
|
|
|
License: MIT
|
2010-10-14 00:55:59 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
2020-08-25 12:33:59 +02:00
|
|
|
URL: http://www.littlecms.com/
|
|
|
|
Source0: http://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch1: lcms2-ocloexec.patch
|
|
|
|
Patch2: lcms2-visibility.patch
|
2010-10-14 00:55:59 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-05-19 08:24:06 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: glibc-devel
|
2011-12-17 14:17:57 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2014-01-06 17:04:18 +01:00
|
|
|
BuildRequires: libtool
|
2020-08-25 12:33:59 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-12-17 14:17:57 +01:00
|
|
|
BuildRequires: zlib-devel
|
2010-10-14 00:55:59 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
2011-12-17 14:17:57 +01:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: zlib-devel
|
2010-10-14 00:55:59 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?mandriva_version}
|
2011-12-17 14:17:57 +01:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: zlib-devel
|
2010-10-14 00:55:59 +02:00
|
|
|
%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++
|
2012-10-30 21:12:46 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: liblcms2-2 = %{version}
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%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
|
2010-11-10 21:54:44 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-11-10 21:54:55 +01:00
|
|
|
BuildArch: noarch
|
2010-11-10 21:54:44 +01:00
|
|
|
%endif
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%description -n liblcms2-doc
|
|
|
|
This package contains user and developer documentation for lcms2.
|
|
|
|
|
|
|
|
%prep
|
2020-08-25 12:33:59 +02:00
|
|
|
%autosetup -p1
|
2017-11-28 00:32:50 +01:00
|
|
|
|
2010-11-10 21:54:44 +01:00
|
|
|
chmod a-x doc/* COPYING AUTHORS
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%build
|
2016-08-18 09:46:32 +02:00
|
|
|
|
2014-01-06 17:04:18 +01:00
|
|
|
autoreconf -fiv
|
2020-08-25 12:33:59 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
2016-08-18 09:46:32 +02:00
|
|
|
|
2014-05-19 08:24:06 +02:00
|
|
|
# FIXME --without-threads is a workaround for a linker error
|
|
|
|
%configure --disable-static --without-threads
|
2010-10-14 00:55:59 +02:00
|
|
|
|
2020-08-25 12:33:59 +02:00
|
|
|
%make_build
|
2010-10-14 00:55:59 +02:00
|
|
|
|
2016-08-18 09:46:32 +02:00
|
|
|
%check
|
2010-10-14 00:55:59 +02:00
|
|
|
# FIXME before submitting to factory
|
2020-08-25 12:33:59 +02:00
|
|
|
%make_build check || true
|
|
|
|
%make_build utils
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%install
|
2020-08-25 12:33:59 +02:00
|
|
|
%make_install
|
2010-10-14 00:55:59 +02:00
|
|
|
|
2014-05-19 08:24:06 +02:00
|
|
|
rm %{buildroot}/%{_libdir}/liblcms2.la
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%post -n liblcms2-2 -p /sbin/ldconfig
|
|
|
|
%postun -n liblcms2-2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2020-08-25 12:33:59 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS
|
2010-10-14 00:55:59 +02:00
|
|
|
%{_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
|
2020-08-25 12:33:59 +02:00
|
|
|
%doc doc/*.odt
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%changelog
|