File libcompizconfig.spec of Package libcompizconfig

# spec file for package libcompizconfig
# 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

Name:           libcompizconfig
Release:        2
License:        GPLv2+
Summary:        CompizConfig plugin(ccp) required for compizconfig-settings-manager(ccsm)
Group:          System/X11/Utilities
Source:         %name.tar.bz2
# Helper script to update to latest git.
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  compiz-devel
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  protobuf-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64

CompizConfig plugin(ccp) required for

%package devel
License:        GPLv2+
Summary:        Development files for libcompizconfig
Group:          Development/Libraries/C and C++
Requires:       libcompizconfig
Requires:       compiz-devel

%description devel
CompizConfig plugin(ccp) required for

This package contains development files.

%setup -q -n %{name}
mkdir build

pushd build
export BUILD_GLOBAL=true
cmake  \
  -Dbindir=%{_bindir} \
  -Ddatadir=%{_datadir} \
  -Dincludedir=%{_includedir} \
  -Dlibdir=%{_libdir} \
  -Ddatadir=%{_datadir} \
  -DCOMPIZ_INSTALL_GCONF_SCHEMA_DIR=%{_sysconfdir}/gconf/schemas \
  -DCOMPIZ_DESTDIR=%{buildroot} \
make VERBOSE=1

pushd build
make install
install -D -m 644 ../cmake/FindCompizConfig.cmake %{buildroot}%{_datadir}/cmake/Modules/FindCompizConfig.cmake


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/compizconfig

%files devel
%defattr(-, root, root)

openSUSE Build Service is sponsored by