File compiz-plugins-main.spec of Package compiz-plugins-main
#
# spec file for package compiz-plugins-main
#
# 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-main
Version: 0.9.2.1
Release: 3
License: GPLv2+
Summary: Compiz-Fusion community main plugins
Url: http://opencompositing.org
Group: System/X11/Utilities
Source: %{name}.tar.bz2
# Helper script to update to latest gip snapshots.
Source99: update.sh
BuildRequires: Mesa-devel
BuildRequires: boost-devel
BuildRequires: cairo-devel
BuildRequires: cmake
BuildRequires: compiz-devel
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: libjpeg-devel
BuildRequires: pango-devel
BuildRequires: pkg-config
Requires: compiz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64
%if 0%{?suse_version} >= 1140
%gconf_schemas_requires
%else
%gconf_schemas_prereq
%endif
%description
This package contains Compiz-Fusion community main plugins.
Contains: animation expo ezoom jpeg neg opacify put resizeinfo ring
scaleaddon snap text thumbnail vpswitch wall winrules workarounds.
%package devel
License: GPLv2+
Summary: Compiz-Fusion community main plugins
Group: System/X11/Utilities
Requires: %{name} = %{version}
Requires: cairo-devel
Requires: compiz-devel
Requires: pango-devel
%description devel
This package contains Compiz-Fusion community main plugins.
Contains: animation expo ezoom jpeg neg opacify put resizeinfo ring
scaleaddon snap text thumbnail vpswitch wall winrules workarounds.
%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
%clean
%__rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_libdir}/compiz/*.so
%{_datadir}/compiz/
%files devel
%defattr(-, root, root)
%{_includedir}/compiz/animation
%{_includedir}/compiz/mousepoll
%{_includedir}/compiz/text
%{_libdir}/pkgconfig/*.pc
%changelog