File libcompizconfig-backend-gconf.spec of Package libcompizconfig-backend-gconf
#
# spec file for package libcompizconfig-backend-gconf
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
#
# 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/
#
Name: libcompizconfig-backend-gconf
Version: 0.9.5.2
Release: 1
License: GPLv2+
Summary: CompizConfig backend for gconf
Url: http://opencompositing.org
Group: System/X11/Utilities
Source: %name.tar.bz2
# Helper script to update to latest git.
Source99: update.sh
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: libcompizconfig-devel
BuildRequires: protobuf-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64
%description
Backend for CompizConfig, using gconf as configuration store.
%prep
%setup -q -n %{name}
mkdir build
%build
CMAKE_MODULE_PATH="%{_datadir}/compiz/cmake:%{_datadir}/cmake/Modules:$CMAKE_MODULE_PATH"
pushd build
export BUILD_GLOBAL=true
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-Dbindir=%{_bindir} \
-Ddatadir=%{_datadir} \
-Dincludedir=%{_includedir} \
-Dlibdir=%{_libdir} \
-Ddatadir=%{_datadir} \
-DCOMPIZ_INSTALL_GCONF_SCHEMA_DIR=%{_sysconfdir}/gconf/schemas \
-DCOMPIZ_DISABLE_SCHEMAS_INSTALL=TRUE \
-DCOMPIZ_PACKAGING_ENABLED=TRUE \
-DCOMPIZ_DESTDIR=%{buildroot} \
-DCOMPIZCONFIG_LIBDIR=%{_libdir} \
..
make VERBOSE=1
popd
%install
pushd build
make install
popd
%clean
%files
%defattr(-, root, root)
%{_libdir}/compizconfig/backends/libgconf.so
%changelog