File oyranos.spec of Package oyranos
#
# spec file for package oyranos
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Kai-Uwe Behrmann <ku.b@gmx.de>
#
# 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/
#
Version: 0.3.2
Release: 0
Source: oyranos-0.3.2.tar.bz2
%define syscolordir /usr/share/color
%define usercolordir ~/.config/color
%define usercolordata ~/.local/share/color
%define iccdirname icc
%define cmmsubpath colour/modules
%define metasubpath oyranos
%define settingsdirname settings
%define targetdirname target
%define pixmapdir /usr/share/pixmaps
%define icondir /usr/share/icons
%define desktopdir /usr/share/applications
Summary: Color Management System
Name: oyranos
License: BSD-3-Clause and GPL-2.0
Group: Development/Libraries/Other
Url: http://www.oyranos.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
Patch0: oyranos_CUPS_fix_wrong_object_passing.patch
Source1: oyranos-rpmlintrc
BuildRequires: color-filesystem desktop-file-utils lcms2
%if 0%{?suse_version} > 0
BuildRequires: cairo-devel cups-devel doxygen fltk fltk-devel gcc-c++ gettext graphviz libXcm-devel libjpeg-devel liblcms-devel libpng-devel libqt4-devel libtiff-devel libxml2-devel netpbm pkgconfig xdg-utils xorg-x11-Mesa xorg-x11-Mesa-devel
%endif
%if 0%{?suse_version} > 910
%endif
%if 0%{?suse_version} > 1010
BuildRequires: Mesa Mesa-devel doxygen fltk fltk-devel gcc-c++ gettext graphviz libjpeg-devel libpng-devel netpbm pkgconfig update-desktop-files xorg-x11 xorg-x11-devel xorg-x11-fonts-devel xorg-x11-libICE xorg-x11-libICE-devel xorg-x11-libSM xorg-x11-libSM-devel xorg-x11-libX11 xorg-x11-libX11-devel xorg-x11-libXau xorg-x11-libXau-devel xorg-x11-libXdmcp xorg-x11-libXdmcp-devel xorg-x11-libXext xorg-x11-libXext-devel xorg-x11-libXfixes xorg-x11-libXfixes-devel xorg-x11-libXmu xorg-x11-libXmu-devel xorg-x11-libXp xorg-x11-libXp-devel xorg-x11-libXpm xorg-x11-libXpm-devel xorg-x11-libXprintUtil xorg-x11-libXprintUtil-devel xorg-x11-libXrender xorg-x11-libXrender-devel xorg-x11-libXt xorg-x11-libXt-devel xorg-x11-libXv xorg-x11-libXv-devel xorg-x11-libfontenc xorg-x11-libfontenc-devel xorg-x11-libs xorg-x11-libxkbfile xorg-x11-libxkbfile-devel xorg-x11-proto-devel xorg-x11-util-devel xorg-x11-xtrans-devel
%endif
%if 0%{?suse_version} > 1130
BuildRequires: libyajl-devel
BuildRequires: libexiv2-devel libraw-devel libraw-devel-static
%endif
%if 0%{?mandriva_version} > 0
BuildRequires: Mesa cairo-devel cups-devel doxygen fltk fltk-devel gcc-c++ gettext graphviz lcms-devel libXcm-devel libjpeg libjpeg-devel libpng-devel libqt4-devel libtiff-devel libtool-devel libxinerama-devel libxml2-devel libxrandr-devel mesagl-devel netpbm pkgconfig xdg-utils xorg-x11
%endif
%if 0%{?fedora_version} > 0
BuildRequires: Mesa Mesa-devel cairo-devel cups-devel doxygen elektra-devel fltk fltk-devel gcc-c++ gettext graphviz libXcm-devel libXmu-devel libXxf86vm-devel libjpeg libjpeg-devel liblcms-devel libpng-devel libqt4-devel libtiff-devel libxml2-devel netpbm pkgconfig xdg-utils xorg-x11-Mesa-devel xorg-x11-devel
%endif
%if 0%{?debian_version} > 0
BuildRequires: cairo-devel cups-devel doxygen fltk fltk-devel gcc-c++ gettext graphviz libXcm-dev libjpeg-devel liblcms-devel libpng-devel libqt4-devel libtiff-devel libxml2-devel netpbm pkgconfig xdg-utils xorg-x11 xorg-x11-Mesa-devel xorg-x11-devel xorg-x11-libXext xorg-x11-libXext-devel xorg-x11-libXpm xorg-x11-libXpm-devel
%endif
%package -n lib%{name}0
Summary: Color Management System Libraries
Group: Development/Libraries/Other
# assume users want the device modules
Requires: lib%{name}0-cups = %{version} lib%{name}0-monitor = %{version}
# we need rgb, lab, xyz gray and cmyk profiles
# the proper names: sRGB.icc, XYZ.icc, Lab.icc are in the OpenICC-data package
Requires: icc-profiles
%package -n lib%{name}-devel
Summary: Headers, Configuration and static Libs + Documentation
Group: Development/Libraries/Other
Requires: lib%{name}0 = %{version} libxml2-devel
%if 0%{?suse_version} > 1130
Requires: libyajl-devel
%endif
%package -n lib%{name}-alpha-devel
Summary: Alpha and Pre Alpha Headers
Group: Development/Libraries/Other
Requires: lib%{name}-devel
%package -n lib%{name}-alpha-devel-doc
Summary: Alpha and Pre Alpha Documentation
Group: Development/Libraries/Other
Requires: lib%{name}-alpha-devel
%package -n lib%{name}0-monitor
Summary: Oyranos Monitor dependent Libraries
Group: Development/Libraries/Other
Requires: xcalib
%package monitor
Summary: Oyranos Monitor Tools
Group: Development/Libraries/Other
Requires: lib%{name}0-monitor
%package monitor-nvidia
Summary: Nvidia card support
Group: System/X11/Utilities
License: GPL
%package -n lib%{name}0-cups
Summary: CUPS device support
Group: Development/Libraries/Other
Requires: cups
%package ui-fltk
Summary: Example Configuration Panel
Group: System/GUI/Other
Requires: fltk
%package forms-fltk
Summary: XFORMS subset rendering
Group: Development/Libraries/Other
%package forms-fltk-devel
Summary: XFORMS subset rendering
Group: Development/Libraries/Other
Requires: fltk-devel
%package forms
Summary: XFORMS subset rendering
Group: Development/Libraries/Other
%package qcmsevents
Summary: Xorg Color management Event observer applet
Group: System/Monitoring
%description
Oyranos is a colour management system.
Features:
o configuration for cross application colour agreement
o plugable and selectable modules (known as CMM's)
o pixel conversions
o profile handling
o named colours
o device profile assignment
Authors:
--------
Oyranos Kai-Uwe Behrmann <www.behrmann.name>
CUPS Joe Simon <jsimon184@yahoo.com>
lraw, oyRE, grantlee code generator
Yiannis Belias <yiannisbe@gmail.com>
used components and libraries with divergine FOSS licenses:
md5 L. Peter Deutsch
libXNVCtrl Nvidia
FLMM Matthias Melcher
lookup3 Bob Jenkins
%description -n lib%{name}0
Oyranos is usable to store default profiles and paths and
query for profiles in that paths.
An internal device profile API allowes configuring of a
profile in X.
The documentation in html format is included.
The object oriented Oyranos API's provide advanced access to
ICC profiles, allow for filtering profile lists and provide
a CMM independent colour conversion API. Single colour lookups
are supported.
These API's are to be considered for changing very frequently.
%description -n lib%{name}-devel
Header files, libraries and documentation for development.
Oyranos is usable to store default profiles and paths and
query for profiles in that paths.
The documentation in html format is included.
%description -n lib%{name}-alpha-devel
Header files and libraries for development.
The object oriented Oyranos API's provide advanced access to
ICC profiles, allow for filtering profile lists and provide
a CMM independent colour conversion API. Single colour lookups
are supported.
These API's are to be considered for changing very frequently.
%description -n lib%{name}-alpha-devel-doc
Documentation for development.
These API's are to be considered for changing very frequently.
%description monitor
The monitor profile configuration tool.
%description -n lib%{name}0-monitor
The monitor support libraries of the
Oyranos colour management system.
%description monitor-nvidia
Display setup tool for the
Oyranos colour management system.
The nvidia EDID configuration part.
%description -n lib%{name}0-cups
CUPS device support for the
Oyranos colour management system.
%description ui-fltk
The example configuration GUI.
Oyranos is a colour management system.
%description forms-fltk
render a oyranos specific subset of xforms in fltk.
a xforms subset is used by oyranos to describe filter node
options.
%description forms-fltk-devel
render a oyranos specific subset of xforms in fltk.
a xforms subset is used by oyranos to describe filter node
options.
%description forms
render a oyranos specific subset of xforms on cli.
a xforms subset is used by oyranos to describe filter node
options.
%description qcmsevents
the applet shows if a colour server is running through a icon in
the system tray.
%prep
%setup -q
%patch0 -p1 -b .CUPS_fix_wrong_object_passing
%build
export CFLAGS="%{optflags}"
%configure --enable-debug
make %{_smp_mflags} || make
%install
%make_install
rm -fr %{buildroot}/%{_datadir}/doc/%{name}
cp -av examples/xcmsevents/qcmsevents-applet.desktop .
echo 'X-SuSE-translate=true' >> qcmsevents-applet.desktop
echo 'X-SuSE-translate=true' >> %{name}-profile-install.desktop
desktop-file-install --dir=%{buildroot}/%{desktopdir} qcmsevents-applet.desktop
desktop-file-install --dir=%{buildroot}/%{desktopdir} %{name}-profile-install.desktop
%find_lang %{name} # generate a special file list
%post -n lib%{name}0 -p /sbin/ldconfig
%postun -n lib%{name}0 -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-policy
%{_bindir}/%{name}-profile
%{_bindir}/%{name}-profiles
%{_bindir}/%{name}-profile-install
%{_bindir}/%{name}-xforms-modules
%{_mandir}/man1/%{name}-policy*
%{_mandir}/man1/%{name}-profile.1*
%{_mandir}/man1/%{name}-profiles.1*
%{_mandir}/man1/%{name}-profile-install.1*
%{_mandir}/man1/%{name}-xforms-modules.1*
%{pixmapdir}/oyranos_logo.*
%{pixmapdir}/lcms_logo2.png
%dir %{syscolordir}/%{settingsdirname}
%{syscolordir}/%{settingsdirname}/*.policy.xml
%{desktopdir}/%{name}-profile-install.desktop
%files -n lib%{name}0
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/lib%{name}_core.so.*
%{_libdir}/lib%{name}_object.so.*
%{_libdir}/lib%{name}_modules.so.*
%{_libdir}/lib%{name}.so.*
%dir %{_libdir}/colour/
%dir %{_libdir}/%{cmmsubpath}/
%dir %{_libdir}/%{metasubpath}/
%{_libdir}/%{cmmsubpath}/lib%{name}_lcm*
%if 0%{?suse_version} > 1130
%{_libdir}/%{cmmsubpath}/lib%{name}_lraw_cmm_module*
%{_libdir}/%{cmmsubpath}/lib%{name}_oyRE_cmm_module*
%endif
%{_libdir}/%{cmmsubpath}/lib%{name}_oyra_cmm_module*
%{_libdir}/%{cmmsubpath}/lib%{name}_oicc_cmm_module*
%{_libdir}/%{cmmsubpath}/lib%{name}_oPNG_cmm_module*
%{_libdir}/%{metasubpath}/lib%{name}_oyIM_cmm_module*
%files -n lib%{name}-devel
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-config
%{_libdir}/lib%{name}_core.so
%{_libdir}/lib%{name}_object.so
%{_libdir}/lib%{name}_modules.so
%{_libdir}/lib%{name}.so
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/icc34.h
%{_includedir}/%{name}/%{name}.h
%{_includedir}/%{name}/%{name}_config.h
%{_includedir}/%{name}/%{name}_core.h
%{_includedir}/%{name}/%{name}_definitions.h
%{_includedir}/%{name}/%{name}_icc.h
%{_includedir}/%{name}/%{name}_version.h
%{_includedir}/%{name}/%{name}_types.h
%{_libdir}/pkgconfig/*
%{_libdir}/lib%{name}_core.a
%{_libdir}/lib%{name}_object.a
%{_libdir}/lib%{name}_modules.a
%{_libdir}/lib%{name}.a
%{_mandir}/man3/%{name}-config.3*
%{_mandir}/man3/%{name}.*
%doc doc/html
%files -n lib%{name}-alpha-devel
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%dir %{_includedir}/%{name}/alpha
%dir %{_includedir}/%{name}/alpha/object
%{_includedir}/%{name}/alpha/%{name}_alpha.h
%{_includedir}/%{name}/alpha/%{name}_cmm.h
%{_includedir}/%{name}/alpha/object/*.h
%files -n lib%{name}-alpha-devel-doc
%defattr(-, root, root)
%doc doc_alpha/html
%files monitor
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-monitor
%{_mandir}/man1/%{name}-monitor.1*
/etc/xdg/autostart/%{name}-monitor-setup.desktop
%files -n lib%{name}0-monitor
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%dir %{_libdir}/colour/
%dir %{_libdir}/%{cmmsubpath}/
%{_libdir}/%{cmmsubpath}/lib%{name}_oyX1_cmm_module*
%{_libdir}/%{cmmsubpath}/lib%{name}_oydi_cmm_module*
%files monitor-nvidia
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-monitor-nvidia
%{_mandir}/man1/%{name}-monitor-nvidia.1*
%files -n lib%{name}0-cups
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%dir %{_libdir}/colour/
%dir %{_libdir}/%{cmmsubpath}/
%{_libdir}/%{cmmsubpath}/lib%{name}_CUPS_cmm_module*
%files ui-fltk
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-config-fl*
%{_mandir}/man1/%{name}-config-fltk.1*
%files forms-fltk
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-xforms-fltk
%{_mandir}/man1/%{name}-xforms-fltk.1*
%files forms-fltk-devel
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/liboyforms_fltk.a
%files forms
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}-xforms
%{_mandir}/man1/%{name}-xforms.1*
%files qcmsevents
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/qcmsevents
%{_mandir}/man1/qcmsevents.1*
%{pixmapdir}/qcmsevents.*
%{desktopdir}/qcmsevents-applet.desktop
%changelog