LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File compiz-fusion.spec of Package compiz-fusion (Project home:iboss32)

#
# spec file for package compiz-plugins-main (Version 0.8.6)
#


Name:           compiz-fusion
BuildRequires:  compiz-devel => %{version}
BuildRequires:  Mesa-devel
BuildRequires:  cairo-devel
BuildRequires:  compiz-bcop
BuildRequires:  dbus-1-devel
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  librsvg-devel
BuildRequires:  libwnck-devel
BuildRequires:  libxslt-devel
BuildRequires:  pango-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel

Version:        0.8.9
Release:        999
License:        GPLv2+
Summary:        Compiz-Fusion community main plugins
Url:            http://opencompositing.org
Group:          System/X11/Utilities
Source:         compiz-plugins-main-0.8.6.tar.bz2

# Ubuntu patches
Patch0:         01-animation-defaults.patch
Patch1:         02_fix_edges.patch
Patch2:         03_default_options.patch
Patch3:         06_bug326995.patch
Patch4:         08_disable_desktop_vpswitch.patch

PreReq:         %fillup_prereq
Requires:       compiz => %{version}
Provides:       compiz-fusion-plugins-main = %{version}
Provides:       compiz-plugins-main = %version
Obsoletes:      compiz-plugins-main < %version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      compiz-extra compiz-extra-git
ExclusiveArch:  %ix86 x86_64

%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
Provides:       compiz-fusion-plugins-main-devel = %{version}
Obsoletes:      compiz-fusion-plugins-main-devel < %{version}
Requires:       %name = %version
Requires:       Mesa-devel
Requires:       cairo-devel
Requires:       compiz-bcop
Requires:       compiz-devel
Requires:       dbus-1-devel
Requires:       gcc-c++
Requires:       gconf2-devel
Requires:       gtk2-devel
Requires:       intltool
Requires:       libjpeg-devel
Requires:       librsvg-devel
Requires:       libwnck-devel
Requires:       libxslt-devel
Requires:       pango-devel
Requires:       perl-XML-Parser
Requires:       update-desktop-files
Requires:       xorg-x11-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 compiz-plugins-main-0.8.6
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
export IMAGEDIR=%{buildroot}%{_datadir}/compiz
%configure --disable-static --with-pic --enable-schemas  --with-gconf-schema-file-dir=/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}%{_datadir}/locale

# remove wall plugin
rm -f %{buildroot}%{_datadir}/compiz/wall.xml
rm -f %{buildroot}%{_libdir}/compiz/libwall.so
rm -f %{buildroot}%{_sysconfdir}/gconf/schemas/compiz-wall.schema

echo "ZZZ"
# remove compiz-wall.schemas
#rm -fv %{buildroot}%{_datadir}/gconf/schemas/*wall*
find %{buildroot} -type f -name "compiz-wall.*" | xargs rm -f
%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
%{_libdir}/pkgconfig/*.pc

%changelog