LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libXcm.spec of Package libXcm (Project multimedia:color_management)

#
# spec file for package libXcm
#
# Copyright (c) 2012 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.5.1
Release:        0
Summary:        X Color Management Library
License:        MIT
Group:          System/Libraries

Name:           libXcm

Url:            http://oyranos.org/
#Git-Clone:	git://www.oyranos.org/git/xcolor
Source:         http://download.sf.net/oyranos/%name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version} > 0
BuildRequires:  gcc-c++
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:  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:  mesagl-devel
BuildRequires:  pkgconfig
%endif
%if 0%{?fedora_version} > 0
BuildRequires:  Mesa
BuildRequires:  Mesa-devel
BuildRequires:  gcc-c++
BuildRequires:  libXfixes-devel
BuildRequires:  libXmu-devel
BuildRequires:  xdg-utils
BuildRequires:  xorg-x11-Mesa-devel
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11-proto-devel
BuildRequires:  xorg-x11-xtrans-devel
%endif
%if 0%{?debian_version} > 0
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  xdg-utils
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-Mesa-devel
BuildRequires:  xorg-x11-devel
%endif

%package      -n %{name}0
Summary:        X Color Management Library
Group:          Development/Libraries/Other

%package      devel
Summary:        Headers, Configuration and static Libs + Documentation
Group:          Development/Libraries/Other
Requires:       %{name}0 = %{version}

%description
The libXcm library is colour management helper for Xorg. It contains a 
reference implementation of the X Color Management specification.
It allows to attach colour regions to X windows to communicate with colour
servers. A EDID parser and a observer tool are included.

%description -n %{name}0
The libXcm library is a reference implementation of the X Color Management specification.
It allows to attach colour regions to X windows to communicate with colour
servers. A EDID parser and a colour management event observer are included.

%description devel
The libXcm library is a reference implementation of the X Color Management specification.
It allows to attach colour regions to X windows to communicate with colour
servers. A EDID parser and a colour management event observer are included.
The package contains headers and other development files.



%prep
%setup -q

%build
%ifarch %arm
export CFLAGS="${RPM_OPT_FLAGS} -fPIC"
export CXXFLAGS="${RPM_OPT_FLAGS} -fPIC"
%endif
%configure --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

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

#Fix timestamp to prevent multilibs conflict
touch -r ChangeLog doc/man/*

%post -n %{name}0 -p /sbin/ldconfig

%postun -n %{name}0 -p /sbin/ldconfig

%files -n %{name}0
%defattr(-, root, root)
%{_libdir}/%{name}.so.*

%files devel
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%doc docs/X_Color_Management.txt
%{_libdir}/%{name}.so
%{_libdir}/%{name}.la
%dir %{_includedir}/X11/Xcm
%{_includedir}/X11/Xcm/*.h
%{_libdir}/pkgconfig/xcm.pc
%{_mandir}/man3/*.3*

%changelog