File compiz-fusion-plugins-main.spec of Package compiz-fusion-plugins-main
#
# spec file for package compiz-fusion-plugins-main (Version 0.7.8 )
#
# Copyright (c) 2010 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-fusion-plugins-main
BuildRequires: Mesa-devel cairo-devel compiz-bcop compiz-devel dbus-1-devel gcc-c++ gconf2-devel gnome-desktop-devel gtk2-devel intltool libjpeg-devel librsvg-devel libwnck-devel libxslt-devel pango-devel perl-XML-Parser update-desktop-files xorg-x11-devel
%if 0%{suse_version} < 01120
BuildRequires: compiz-kde
%endif
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10"
BuildRequires: xorg-x11-compat70-devel
%endif
%if %suse_version <= 1021
BuildRequires: gconf2-rpm-macros
%endif
Url: http://opencompositing.org
License: GPLv2+
Group: System/X11/Utilities
PreReq: %fillup_prereq
Requires: compiz
Conflicts: compiz-extra compiz-extra-git
Obsoletes: compiz-fusion-plugins-git
Version: 0.7.8
Release: 14.<RELEASE2>
Summary: Compiz-Fusion community main plugins
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64
Source: %{name}-%{version}.tar.bz2
Patch: plugins-main-NOMAD.diff
#default preference settings
Patch1: compiz-fusion-plugins-main-defaults.patch
Patch2: workarounds-any-super-key-shows-main-menu.diff
# PATCH-FIX-UPSTREAM compiz-fusion-plugins-main-bnc511578.patch bnc#511578 dimstar@opensuse.org -- Fix undefined code.
Patch3: compiz-fusion-plugins-main-bnc511578.patch
Patch4: compiz-fusion-plugins-expo.patch
%define gnome_prefix %(pkg-config --variable=prefix gnome-desktop-2.0)
%if "%gnome_prefix" == "/usr"
%define gnome_etc /etc
%else
%define gnome_etc /etc%gnome_prefix
%endif
#%define _libsuffix %(echo %_lib | cut -b4-)
%gconf_schemas_prereq
%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: Mesa-devel cairo-devel compiz-bcop compiz-devel dbus-1-devel gcc-c++ gconf2-devel gtk2-devel intltool libjpeg-devel librsvg-devel libwnck-devel libxslt-devel pango-devel perl-XML-Parser update-desktop-files xorg-x11-devel gnome-desktop-devel %name = %version
%if 0%{suse_version} < 01120
BuildRequires: compiz-kde
%endif
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10"
Requires: xorg-x11-compat70-devel
%endif
%if %suse_version <= 1021
Requires: gconf2-rpm-macros
%endif
AutoReqProv: on
%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}-%{version}
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
#
#### plugins-main
#
#mkdir BUILD
#pushd BUILD
#cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr \
# -DLIB_SUFFIX=%_libsuffix -DCF_DISABLE_SCHEMAS_INSTALL=TRUE \
# -DCF_INSTALL_GCONF_SCHEMA_DIR=%gnome_etc/gconf/schemas -d ../
#popd
export IMAGEDIR=%buildroot/%{_datadir}/compiz
%configure --disable-static --with-pic --enable-schemas --with-gconf-schema-file-dir=%gnome_etc/gconf/schemas --disable-schemas-install
make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" | xargs rm -f
#remove locale data as it is not required anymore, translations are merged in .xml and .schemas
rm -r %buildroot/usr/share/locale
%find_gconf_schemas
%pre -f %name.schemas_pre
%preun -f %name.schemas_preun
%posttrans -f %name.schemas_posttrans
%clean
%__rm -rf %{buildroot}
%files -f %name.schemas_list
%defattr(-, root, root)
%_libdir/compiz/*
%_datadir/compiz/*
%files devel
%defattr(-, root, root)
%dir %_includedir/compiz
%_includedir/compiz/*.h
%if %suse_version >= 1020
%_libdir/pkgconfig/*.pc
%endif
%changelog