add %global plugins_schemas again
This commit is contained in:
parent
c77eb5e18a
commit
b2583dfa19
112
compiz.spec
112
compiz.spec
|
@ -1,26 +1,28 @@
|
||||||
%global core_plugins blur clone cube dbus decoration fade ini inotify minimize move place png regex resize rotate scale screenshot switcher video water wobbly zoom fs obs commands wall
|
%global core_plugins blur clone cube dbus decoration fade ini inotify minimize move place png regex resize rotate scale screenshot switcher video water wobbly zoom fs obs commands wall
|
||||||
|
|
||||||
%global mate_plugins annotate mateconf glib svg matecompat
|
%global mate_plugins annotate mateconf glib svg matecompat
|
||||||
|
|
||||||
|
%global plugins_schemas compiz-annotate compiz-blur compiz-clone compiz-commands compiz-core compiz-cube compiz-dbus compiz-decoration compiz-fade compiz-fs compiz-glib compiz-ini compiz-inotify compiz-matecompat compiz-mateconf compiz-minimize compiz-move compiz-obs compiz-place compiz-png compiz-regex compiz-resize compiz-rotate compiz-scale compiz-screenshot compiz-svg compiz-switcher compiz-video compiz-wall compiz-water compiz-wobbly compiz-zoom gwd
|
||||||
|
|
||||||
# List of plugins passed to ./configure. The order is important
|
# List of plugins passed to ./configure. The order is important
|
||||||
|
|
||||||
%global plugins core,glib,mateconf,dbus,png,svg,video,screenshot,decoration,clone,place,fade,minimize,move,resize,switcher,scale,wall,obs
|
%global plugins core,glib,mateconf,dbus,png,svg,video,screenshot,decoration,clone,place,fade,minimize,move,resize,switcher,scale,wall,obs
|
||||||
|
|
||||||
Name: compiz
|
Name: compiz
|
||||||
URL: http://www.compiz.org
|
URL: http://www.compiz.org
|
||||||
License: GPLv2+ and LGPLv2+ and MIT
|
License: GPLv2+ and LGPLv2+ and MIT
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
Version: 0.8.8
|
Version: 0.8.8
|
||||||
Release: 8%{?dist}
|
Release: 10%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: OpenGL window and compositing manager
|
Summary: OpenGL window and compositing manager
|
||||||
|
|
||||||
# libdrm is not available on these arches
|
# libdrm is not available on these arches
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
Requires: system-logos
|
Requires: system-logos
|
||||||
Requires: glx-utils
|
Requires: glx-utils
|
||||||
|
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libdrm-devel
|
BuildRequires: libdrm-devel
|
||||||
BuildRequires: libwnck-devel
|
BuildRequires: libwnck-devel
|
||||||
|
@ -49,14 +51,14 @@ BuildRequires: fuse-devel
|
||||||
BuildRequires: cairo-devel
|
BuildRequires: cairo-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libxslt-devel
|
BuildRequires: libxslt-devel
|
||||||
|
|
||||||
Source0: http://releases.compiz.org/%{version}/%{name}-%{version}.tar.bz2
|
Source0: http://releases.compiz.org/%{version}/%{name}-%{version}.tar.bz2
|
||||||
Source2: compiz-mate-gtk
|
Source2: compiz-mate-gtk
|
||||||
Source3: compiz-mate-gtk.desktop
|
Source3: compiz-mate-gtk.desktop
|
||||||
Source4: 50-marco-navigation.xml
|
Source4: 50-marco-navigation.xml
|
||||||
Source5: 50-marco-system.xml
|
Source5: 50-marco-system.xml
|
||||||
Source6: 50-marco-windows.xml
|
Source6: 50-marco-windows.xml
|
||||||
|
|
||||||
# fork gnome to mate
|
# fork gnome to mate
|
||||||
Patch0: comiz_mate_fork.patch
|
Patch0: comiz_mate_fork.patch
|
||||||
# fix http://forums.mate-desktop.org/viewtopic.php?f=8&t=818
|
# fix http://forums.mate-desktop.org/viewtopic.php?f=8&t=818
|
||||||
|
@ -82,8 +84,8 @@ Patch18: compiz_hide_tooltip_on_decorator.patch
|
||||||
Patch19: compiz_fullscreen_stacking_fixes.patch
|
Patch19: compiz_fullscreen_stacking_fixes.patch
|
||||||
Patch20: compiz_damage-report-non-empty.patch
|
Patch20: compiz_damage-report-non-empty.patch
|
||||||
Patch21: compiz_stacking.patch
|
Patch21: compiz_stacking.patch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Compiz is one of the first OpenGL-accelerated compositing window
|
Compiz is one of the first OpenGL-accelerated compositing window
|
||||||
managers for the X Window System. The integration allows it to perform
|
managers for the X Window System. The integration allows it to perform
|
||||||
|
@ -91,7 +93,7 @@ compositing effects in window management, such as a minimization
|
||||||
effect and a cube work space. Compiz is an OpenGL compositing manager
|
effect and a cube work space. Compiz is an OpenGL compositing manager
|
||||||
that use Compiz use EXT_texture_from_pixmap OpenGL extension for
|
that use Compiz use EXT_texture_from_pixmap OpenGL extension for
|
||||||
binding redirected top-level windows to texture objects.
|
binding redirected top-level windows to texture objects.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development packages for compiz
|
Summary: Development packages for compiz
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
@ -100,14 +102,14 @@ Requires: pkgconfig
|
||||||
Requires: libXcomposite-devel libXfixes-devel libXdamage-devel libXrandr-devel
|
Requires: libXcomposite-devel libXfixes-devel libXdamage-devel libXrandr-devel
|
||||||
Requires: libXinerama-devel libICE-devel libSM-devel libxml2-devel
|
Requires: libXinerama-devel libICE-devel libSM-devel libxml2-devel
|
||||||
Requires: libxslt-devel startup-notification-devel
|
Requires: libxslt-devel startup-notification-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The compiz-devel package includes the header files,
|
The compiz-devel package includes the header files,
|
||||||
and developer docs for the compiz package.
|
and developer docs for the compiz package.
|
||||||
|
|
||||||
Install compiz-devel if you want to develop plugins for the compiz
|
Install compiz-devel if you want to develop plugins for the compiz
|
||||||
windows and compositing manager.
|
windows and compositing manager.
|
||||||
|
|
||||||
%package mate
|
%package mate
|
||||||
Summary: Compiz mate integration bits
|
Summary: Compiz mate integration bits
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
|
@ -115,12 +117,12 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires(pre): mate-conf
|
Requires(pre): mate-conf
|
||||||
Requires(post): mate-conf
|
Requires(post): mate-conf
|
||||||
Requires(preun): mate-conf
|
Requires(preun): mate-conf
|
||||||
|
|
||||||
%description mate
|
%description mate
|
||||||
The compiz-mate package contains gtk-window-decorator,
|
The compiz-mate package contains gtk-window-decorator,
|
||||||
and other mate integration related stuff.
|
and other mate integration related stuff.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .comiz_mate_fork
|
%patch0 -p1 -b .comiz_mate_fork
|
||||||
|
@ -147,10 +149,10 @@ and other mate integration related stuff.
|
||||||
%patch19 -p1 -b .fullscreen_stacking
|
%patch19 -p1 -b .fullscreen_stacking
|
||||||
%patch20 -p1 -b .damage-report
|
%patch20 -p1 -b .damage-report
|
||||||
%patch21 -p1 -b .stacking
|
%patch21 -p1 -b .stacking
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
libtoolize
|
libtoolize
|
||||||
aclocal
|
aclocal
|
||||||
autoconf
|
autoconf
|
||||||
|
@ -168,75 +170,75 @@ automake
|
||||||
--disable-kde4 \
|
--disable-kde4 \
|
||||||
--disable-kconfig \
|
--disable-kconfig \
|
||||||
--disable-mate-keybindings
|
--disable-mate-keybindings
|
||||||
|
|
||||||
make %{?_smp_mflags} imagedir=%{_datadir}/pixmaps
|
make %{?_smp_mflags} imagedir=%{_datadir}/pixmaps
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install || exit 1
|
make DESTDIR=$RPM_BUILD_ROOT install || exit 1
|
||||||
unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
||||||
|
|
||||||
install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
|
install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
|
||||||
desktop-file-install --vendor="" \
|
desktop-file-install --vendor="" \
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
||||||
%SOURCE3
|
%SOURCE3
|
||||||
|
|
||||||
rm $RPM_BUILD_ROOT%{_datadir}/compiz/kconfig.xml
|
rm $RPM_BUILD_ROOT%{_datadir}/compiz/kconfig.xml
|
||||||
rm $RPM_BUILD_ROOT%{_sysconfdir}/mateconf/schemas/compiz-kconfig.schemas
|
rm $RPM_BUILD_ROOT%{_sysconfdir}/mateconf/schemas/compiz-kconfig.schemas
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
||||||
|
|
||||||
# create compiz keybindings file based on the marco ones
|
# create compiz keybindings file based on the marco ones
|
||||||
# lifted straight from Ubuntu, as long as installation of the upstream
|
# lifted straight from Ubuntu, as long as installation of the upstream
|
||||||
# ones is broken at least (I've reported this upstream)
|
# ones is broken at least (I've reported this upstream)
|
||||||
#mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings
|
#mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings
|
||||||
#sed 's/wm_name=\"Marco\" package=\"marco\"/wm_name=\"Compiz\" package=\"compiz\"/' /usr/share/mate-control-center/keybindings/50-marco-desktop-key.xml > $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-desktop-key.xml
|
#sed 's/wm_name=\"Marco\" package=\"marco\"/wm_name=\"Compiz\" package=\"compiz\"/' /usr/share/mate-control-center/keybindings/50-marco-desktop-key.xml > $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-desktop-key.xml
|
||||||
#sed 's/wm_name=\"Marco\" package=\"marco\"/wm_name=\"Compiz\" package=\"compiz\"/' /usr/share/mate-control-center/keybindings/50-marco-key.xml > $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-key.xml
|
#sed 's/wm_name=\"Marco\" package=\"marco\"/wm_name=\"Compiz\" package=\"compiz\"/' /usr/share/mate-control-center/keybindings/50-marco-key.xml > $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-key.xml
|
||||||
|
|
||||||
#cp %SOURCE4 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-navigation.xml
|
#cp %SOURCE4 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-navigation.xml
|
||||||
#cp %SOURCE5 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-system.xml
|
#cp %SOURCE5 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-system.xml
|
||||||
#cp %SOURCE6 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-windows.xml
|
#cp %SOURCE6 $RPM_BUILD_ROOT%{_datadir}/mate-control-center/keybindings/50-compiz-windows.xml
|
||||||
|
|
||||||
#sed -i 's#key=\"/apps/marco/general/num_workspaces\" comparison=\"gt\"##g' $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-desktop-key.xml
|
#sed -i 's#key=\"/apps/marco/general/num_workspaces\" comparison=\"gt\"##g' $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-desktop-key.xml
|
||||||
#sed -i 's#key=\"/apps/marco/general/num_workspaces\" comparison=\"gt\"##g' $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-key.xml
|
#sed -i 's#key=\"/apps/marco/general/num_workspaces\" comparison=\"gt\"##g' $RPM_BUILD_ROOT/%{_datadir}/mate-control-center/keybindings/50-compiz-key.xml
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
cat %{name}.lang > core-files.txt
|
cat %{name}.lang > core-files.txt
|
||||||
|
|
||||||
for f in %{core_plugins}; do
|
for f in %{core_plugins}; do
|
||||||
echo %{_libdir}/compiz/lib$f.so
|
echo %{_libdir}/compiz/lib$f.so
|
||||||
echo %{_datadir}/compiz/$f.xml
|
echo %{_datadir}/compiz/$f.xml
|
||||||
done >> core-files.txt
|
done >> core-files.txt
|
||||||
|
|
||||||
for f in %{mate_plugins}; do
|
for f in %{mate_plugins}; do
|
||||||
echo %{_libdir}/compiz/lib$f.so
|
echo %{_libdir}/compiz/lib$f.so
|
||||||
echo %{_datadir}/compiz/$f.xml
|
echo %{_datadir}/compiz/$f.xml
|
||||||
done >> mate-files.txt
|
done >> mate-files.txt
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/compiz-mate-gtk.desktop
|
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/compiz-mate-gtk.desktop
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%post mate
|
%post mate
|
||||||
%mateconf_schema_upgrade compiz-annotate compiz-blur compiz-clone compiz-commands compiz-core compiz-cube compiz-dbus compiz-decoration compiz-fade compiz-fs compiz-glib compiz-ini compiz-inotify compiz-matecompat compiz-mateconf compiz-minimize compiz-move compiz-obs compiz-place compiz-png compiz-regex compiz-resize compiz-rotate compiz-scale compiz-screenshot compiz-svg compiz-switcher compiz-video compiz-wall compiz-water compiz-wobbly compiz-zoom gwd
|
%mateconf_schema_upgrade %{plugins_schemas}
|
||||||
|
|
||||||
%pre mate
|
%pre mate
|
||||||
%mateconf_schema_prepare compiz-annotate compiz-blur compiz-clone compiz-commands compiz-core compiz-cube compiz-dbus compiz-decoration compiz-fade compiz-fs compiz-glib compiz-ini compiz-inotify compiz-matecompat compiz-mateconf compiz-minimize compiz-move compiz-obs compiz-place compiz-png compiz-regex compiz-resize compiz-rotate compiz-scale compiz-screenshot compiz-svg compiz-switcher compiz-video compiz-wall compiz-water compiz-wobbly compiz-zoom gwd
|
%mateconf_schema_prepare %{plugins_schemas}
|
||||||
%gconf_schema_obsolete compiz-kconfig
|
%mateconf_schema_obsolete compiz-kconfig
|
||||||
|
|
||||||
%preun mate
|
%preun mate
|
||||||
%mateconf_schema_remove compiz-annotate compiz-blur compiz-clone compiz-commands compiz-core compiz-cube compiz-dbus compiz-decoration compiz-fade compiz-fs compiz-glib compiz-ini compiz-inotify compiz-matecompat compiz-mateconf compiz-minimize compiz-move compiz-obs compiz-place compiz-png compiz-regex compiz-resize compiz-rotate compiz-scale compiz-screenshot compiz-svg compiz-switcher compiz-video compiz-wall compiz-water compiz-wobbly compiz-zoom gwd
|
%mateconf_schema_remove %{plugins_schemas}
|
||||||
|
|
||||||
|
|
||||||
%files -f core-files.txt
|
%files -f core-files.txt
|
||||||
%doc AUTHORS ChangeLog COPYING.GPL COPYING.LGPL README TODO NEWS
|
%doc AUTHORS ChangeLog COPYING.GPL COPYING.LGPL README TODO NEWS
|
||||||
%{_bindir}/compiz
|
%{_bindir}/compiz
|
||||||
|
@ -245,7 +247,7 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/compiz-mate-gtk.d
|
||||||
%dir %{_datadir}/compiz
|
%dir %{_datadir}/compiz
|
||||||
%{_datadir}/compiz/*.png
|
%{_datadir}/compiz/*.png
|
||||||
%{_datadir}/compiz/core.xml
|
%{_datadir}/compiz/core.xml
|
||||||
|
|
||||||
%files mate -f mate-files.txt
|
%files mate -f mate-files.txt
|
||||||
%{_bindir}/compiz-mate-gtk
|
%{_bindir}/compiz-mate-gtk
|
||||||
%{_bindir}/gtk-window-decorator
|
%{_bindir}/gtk-window-decorator
|
||||||
|
@ -257,8 +259,8 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/compiz-mate-gtk.d
|
||||||
%{_datadir}/applications/compiz-mate-gtk.desktop
|
%{_datadir}/applications/compiz-mate-gtk.desktop
|
||||||
%exclude %{_datadir}/applications/compiz.desktop
|
%exclude %{_datadir}/applications/compiz.desktop
|
||||||
%config(noreplace) %{_sysconfdir}/mateconf/schemas/*.schemas
|
%config(noreplace) %{_sysconfdir}/mateconf/schemas/*.schemas
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/pkgconfig/compiz.pc
|
%{_libdir}/pkgconfig/compiz.pc
|
||||||
%{_libdir}/pkgconfig/libdecoration.pc
|
%{_libdir}/pkgconfig/libdecoration.pc
|
||||||
|
@ -269,8 +271,10 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/compiz-mate-gtk.d
|
||||||
%{_includedir}/compiz/
|
%{_includedir}/compiz/
|
||||||
%{_libdir}/libdecoration.so
|
%{_libdir}/libdecoration.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 02 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:0.8.8-10
|
||||||
|
- add %%global plugins_schemas again
|
||||||
|
|
||||||
* Sun Dec 02 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:0.8.8-9
|
* Sun Dec 02 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:0.8.8-9
|
||||||
- revert scriptlet change
|
- revert scriptlet change
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue