File xcm.spec of Package xcm
#
# spec file for package xcm
#
# Copyright (c) 2011 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/
#
Version: 0.4.2
Release: 0
Source: http://downloads.sourceforge.net/projects/oyranos/xcm/xcm-0.4.x/xcm-0.4.2.tar.bz2
Summary: X Color Management tools
Name: xcm
License: MIT
Group: System/X11/Utilities
Url: http://www.oyranos.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: udev
%if 0%{?suse_version} > 0
BuildRequires: gcc-c++ pkgconfig xorg-x11-Mesa xorg-x11-Mesa-devel
%endif
%if 0%{?suse_version} > 910
%endif
%if 0%{?suse_version} > 1010
BuildRequires: Mesa Mesa-devel gcc-c++ libXcm-devel liboyranos-alpha-devel pkgconfig xorg-x11 xorg-x11-devel xorg-x11-libX11 xorg-x11-libX11-devel xorg-x11-libXfixes xorg-x11-libXfixes-devel xorg-x11-libXmu-devel xorg-x11-libs xorg-x11-util-devel
%endif
%if 0%{?mandriva_version} > 0
BuildRequires: Mesa gcc-c++ libXcm-devel liboyranos-alpha-devel libtool-devel mesagl-devel pkgconfig
%endif
%if 0%{?fedora_version} > 0
BuildRequires: Mesa Mesa-devel elektra-devel gcc-c++ libXcm-devel libXfixes-devel libXmu-devel liboyranos-alpha-devel libtool-ltdl-devel xdg-utils xorg-x11-Mesa-devel xorg-x11-devel xorg-x11-proto-devel xorg-x11-xtrans-devel
%endif
%if 0%{?debian_version} > 0
BuildRequires: gcc-c++ liboyranos-alpha-devel pkgconfig xdg-utils xorg-x11 xorg-x11-Mesa-devel xorg-x11-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
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
%{_mandir}/man1/%{name}ddc.1*
%{_mandir}/man1/%{name}edid.1*
%{_mandir}/man1/%{name}events.1*
/lib/udev/rules.d/90-xcm-i2c.rules
%doc AUTHORS COPYING ChangeLog README
%changelog