# # spec file for package lcms2 (Version 2.0a) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ Version: 2.1 Release: 2 %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 Source0: %{name}-%{version}.tar.bz2 Source1: baselibs.conf Patch: lcms-endian.patch Patch2: workaround-gcc-bug.diff %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 %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description -n liblcms2-doc This package contains user and developer documentation for lcms2. %prep %setup -q %patch %if 0%{?suse_version} == 01110 #%patch2 %endif chmod a-x doc/* COPYING AUTHORS %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) %doc COPYING AUTHORS %{_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