File compiz-plugins-extra.spec of Package compiz-plugins-extra
#
# spec file for package compiz-plugins-extra
#
# 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/
#
Name: compiz-plugins-extra
Version: 0.9.5.94
Release: 1
License: GPLv2+
Summary: Compiz extra plugins
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: compiz-devel
BuildRequires: compiz-plugins-main-devel
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gtk2-devel
BuildRequires: libnotify-devel
BuildRequires: Mesa-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1140
%gconf_schemas_requires
%else
%gconf_schemas_prereq
%endif
%description
This package contains Compiz-Fusion community extra plugins.
Contains: addhelper crashhandler extrawm firepaint goto-viewport
mswitch scalefilter splash bench cubereflex fadedesktop gears group
mblur reflex showdesktop trailfocus.
%package devel
License: GPLv2+
Summary: Compiz-Fusion community main plugins
Group: System/X11/Utilities
Requires: %{name} = %{version}
%description devel
Development platform to create plugins based on Compiz Extra Plugins
%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} \
..
make VERBOSE=1
popd
%install
pushd build
make install
popd
%find_gconf_schemas
%clean
%__rm -rf %{buildroot}
%pre -f %name.schemas_pre
%preun -f %name.schemas_preun
%posttrans -f %name.schemas_posttrans
%files -f %{name}.schemas_list
%defattr(-, root, root)
%{_libdir}/compiz/*.so
%{_datadir}/compiz/
%files devel
%defattr(-, root, root)
%{_includedir}/compiz/animationaddon
%{_libdir}/pkgconfig/compiz-animationaddon.pc
%changelog