File libcompizconfig.spec of Package libcompizconfig

# spec file for package libcompizconfig
# Copyright (c) 2017 SUSE LINUX 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

%define sover   0
Name:           libcompizconfig
Version:        0.8.14
Release:        0
Summary:        CompizConfig plugin required for CCSM
License:        GPL-2.0+
Group:          System/Libraries
# PATCH-FIX-OPENSUSE libcompizconfig-config-dir.patch boo#438081
Patch0:         %{name}-config-dir.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(compiz) < 0.9
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(protobuf)
BuildRequires:  pkgconfig(x11)
Requires:       compiz < 0.9
Suggests:       libcompizconfig-backend < 0.9

CompizConfig plugin required for compizconfig-settings-manager.

%package devel
Summary:        Development files for libcompizconfig
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       pkgconfig
Requires:       pkgconfig(compiz) < 0.9
Requires:       pkgconfig(libxml-2.0)
Requires:       pkgconfig(protobuf)
Requires:       pkgconfig(x11)

%description devel
CompizConfig plugin required for compizconfig-settings-manager.

This package contains development files.

%setup -q
%patch0 -p1

%configure \
make %{?_smp_mflags} V=1

find %{buildroot} -type f -name "*.la" -delete -print

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%dir %{_sysconfdir}/compizconfig/
%config %{_sysconfdir}/compizconfig/config
%dir %{_datadir}/compiz/

%files devel