File xcm.spec of Package xcm

#
# spec file for package xcm
#
# Copyright (c) 2013 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/
#


%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif

Version:        0.5.2
Release:        0
Source:         http://sourceforge.net/projects/oyranos/files/Xcm/xcm-0.5.2.tar.bz2
Summary:        X Color Management tools
License:        MIT
Group:          System/X11/Utilities

Name:           xcm
Url:            http://www.oyranos.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  udev
Requires:       liboyranos0 >= 0.9.3

%if 0%{?suse_version} > 0
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  xorg-x11-Mesa
BuildRequires:  xorg-x11-Mesa-devel
%endif
%if 0%{?suse_version} > 910
%endif
%if 0%{?suse_version} > 1010
BuildRequires:  Mesa
BuildRequires:  Mesa-devel
BuildRequires:  gcc-c++
BuildRequires:  libXcm-devel
BuildRequires:  liboyranos-devel >= 0.9.3
BuildRequires:  pkgconfig
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11-libX11
BuildRequires:  xorg-x11-libX11-devel
BuildRequires:  xorg-x11-libXfixes
BuildRequires:  xorg-x11-libXfixes-devel
BuildRequires:  xorg-x11-libXmu-devel
BuildRequires:  xorg-x11-libs
BuildRequires:  xorg-x11-util-devel
%endif
%if 0%{?mandriva_version} > 0
BuildRequires:  Mesa
BuildRequires:  gcc-c++
BuildRequires:  libXcm-devel
BuildRequires:  liboyranos-devel >= 0.9.3
BuildRequires:  libtool-devel
BuildRequires:  mesagl-devel
BuildRequires:  pkgconfig
%endif
%if 0%{?fedora_version} > 0
BuildRequires:  Mesa
BuildRequires:  Mesa-devel
BuildRequires:  elektra-devel
BuildRequires:  gcc-c++
BuildRequires:  libXcm-devel
BuildRequires:  libXfixes-devel
BuildRequires:  libXmu-devel
BuildRequires:  liboyranos-devel >= 0.9.3
BuildRequires:  libtool-ltdl-devel
BuildRequires:  xdg-utils
BuildRequires:  xorg-x11-Mesa-devel
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11-proto-devel
BuildRequires:  xorg-x11-xtrans-devel
%endif

%description
The Xcm tools are colour management helpers for Xorg.
A EDID parser and a colour management events observer are included.



%prep
%setup -n %{name}-%{version}

%build
%configure --disable-static --with-udev-dir=%{_udevrulesdir}
make %{?_smp_mflags}

%install
%make_install

#Remove installed doc
rm -fr %{buildroot}/%{_datadir}/doc/%{name}

%files
%defattr(-, root, root)
%{_bindir}/%{name}events
%{_bindir}/%{name}edid
%{_bindir}/%{name}ddc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}ddc.1*
%{_mandir}/man1/%{name}edid.1*
%{_mandir}/man1/%{name}events.1*
%{_udevrulesdir}/90-xcm-i2c.rules
%doc AUTHORS COPYING ChangeLog README

%changelog
openSUSE Build Service is sponsored by