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
|
|
|
#
|
2011-04-21 12:09:19 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: lcms2
|
|
|
|
License: MIT License (or similar)
|
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
Summary: Little CMS Engine - A color managment library and tools
|
|
|
|
Url: http://www.littlecms.com/
|
2011-06-13 00:18:26 +02:00
|
|
|
Version: 2.2
|
2011-06-14 12:10:15 +02:00
|
|
|
Release: 1
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: libjpeg-devel libtiff-devel pkg-config zlib-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: gcc libjpeg-devel libtiff-devel pkgconfig zlib-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
BuildRequires: gcc libjpeg-devel libtiff-devel pkgconfig zlib-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-10 21:54:44 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2010-10-14 00:55:59 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch: lcms-endian.patch
|
|
|
|
|
|
|
|
%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
|
|
|
|
License: MIT License (or similar)
|
|
|
|
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
|
|
|
|
License: MIT License (or similar)
|
|
|
|
Summary: Include Files and Libraries Mandatory for Development
|
|
|
|
Requires: liblcms2-2 = %{version} glibc-devel
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n liblcms2-devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%package -n liblcms2-doc
|
|
|
|
License: MIT License (or similar)
|
|
|
|
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
|
2010-12-26 19:08:26 +01:00
|
|
|
%setup -q
|
2010-10-14 00:55:59 +02:00
|
|
|
%patch
|
2010-11-10 21:54:44 +01:00
|
|
|
chmod a-x doc/* COPYING AUTHORS
|
2010-10-14 00:55:59 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
|
|
|
make %{?_smp_flags}
|
|
|
|
|
|
|
|
#%check
|
|
|
|
# FIXME before submitting to factory
|
|
|
|
# make %{?_smp_flags} check || true
|
|
|
|
# make utils
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT/%_libdir/liblcms2.la
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -n liblcms2-2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n liblcms2-2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-11-10 21:54:44 +01:00
|
|
|
%doc COPYING AUTHORS
|
2010-10-14 00:55:59 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man?/*.*
|
|
|
|
|
|
|
|
%files -n liblcms2-2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblcms2.so.2*
|
|
|
|
|
|
|
|
%files -n liblcms2-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files -n liblcms2-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/*.pdf
|
|
|
|
|
|
|
|
%changelog
|