Name: unity Version: 3.8.12 Release: 1%{?dist} Summary: Desktop experience designed for efficiency of space and interaction Group: User Interface/Desktops License: GPLv3 and LGPLv3 URL: https://launchpad.net/unity Source0: http://launchpad.net/unity/3.0/%{version}/+download/%{name}-%{version}.tar.bz2 Source1: unity.session Source2: unity.desktop Source3: 65compiz_profile-on-session Source4: unity.ini BuildRequires: cmake BuildRequires: compiz-devel BuildRequires: bamf-devel BuildRequires: dee-devel BuildRequires: glib2-devel BuildRequires: atk-devel BuildRequires: GConf2-devel BuildRequires: nux-devel BuildRequires: libdbusmenu-glib-devel BuildRequires: startup-notification-devel BuildRequires: libindicator-devel >= 0.3.19 BuildRequires: libunity-misc-devel BuildRequires: clutter-devel BuildRequires: boost-devel BuildRequires: desktop-file-utils Requires: compiz Requires: libcompizconfig Requires: gnome-session Requires(pre): GConf2 Requires(preun): GConf2 Requires(post): GConf2 Patch0: %{name}-%{version}-set-default-launchers.patch Patch1: %{name}-%{version}-no-utouch.patch %description Unity is a desktop experience that sings. Designed by Canonical and the Ayatana community, Unity is all about the combination of familiarity and the future. We bring together visual design, analysis of user experience testing, modern graphics technologies and a deep understanding of the free software landscape to produce what we hope will be the lightest, most elegant and most delightful way to use your PC. Unity is free software, you are encouraged to use whatever pieces of it suit you. We discuss its evolution on the Ayatana mailing lists for developers and designers. We embrace the values of GNOME: simplicity, style, usability and accessibility, and we embrace professional, considered design thinking. The Unity desktop experience is designed to allow for multiple implementations, currently, Unity consists of a Compiz plugin based visual interface only, which is heavily dependent on OpenGL. %prep %setup -q %patch0 -p1 -b .set-default-launchers %patch1 -p1 -b .no-utouch sed -i 's|-Werror||g' $(find . -name 'CMakeLists.txt') sed -i '/gtk_window_set_has_resize_grip/d' src/PanelTray.cpp %build mkdir build pushd build %cmake .. \ -DCOMPIZ_BUILD_WITH_RPATH=FALSE \ -DCOMPIZ_PACKAGING_ENABLED=TRUE \ -DCOMPIZ_PLUGIN_INSTALL_TYPE=package \ -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=ON \ -DCOMPIZ_INSTALL_GCONF_SCHEMA_DIR=%{_sysconfdir}/gconf/schemas make VERBOSE=1 %{?_smp_mflags} popd %install rm -rf $RPM_BUILD_ROOT pushd build make install DESTDIR=$RPM_BUILD_ROOT popd install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome-session/sessions/unity.session install -Dpm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/unity.desktop install -Dpm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/X11/Xsession.d/65compiz_profile-on-session install -Dpm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/compizconfig/unity.ini desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-preferences.desktop %find_lang %{name} %post glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/compiz-unitymtgrabhandles.schemas \ %{_sysconfdir}/gconf/schemas/compiz-unityshell.schemas \ >& /dev/null || : %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/compiz-unitymtgrabhandles.schemas \ %{_sysconfdir}/gconf/schemas/compiz-unityshell.schemas \ >& /dev/null || : fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/compiz-unitymtgrabhandles.schemas \ %{_sysconfdir}/gconf/schemas/compiz-unityshell.schemas \ >& /dev/null || : fi %postun glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING COPYING.LGPL AUTHORS README %{_bindir}/%{name} %{_libdir}/%{name} %{_datadir}/%{name} %{_datadir}/dbus-1/services/com.canonical.Unity.Panel.Service.service %{_datadir}/glib-2.0/schemas/com.canonical.Unity.gschema.xml %{_mandir}/man1/%{name}.1.* %{_mandir}/man1/%{name}-panel-service.1.* %{_datadir}/ccsm/icons/hicolor/64x64/apps/plugin-unityshell.png %{_libdir}/compiz/libunityshell.so %{_datadir}/compiz/unityshell.xml %config %{_sysconfdir}/gconf/schemas/compiz-unityshell.schemas %{_datadir}/gnome-session/sessions/unity.session %{_datadir}/xsessions/unity.desktop %{_sysconfdir}/X11/Xsession.d/65compiz_profile-on-session %{_sysconfdir}/compizconfig/unity.ini %{_bindir}/%{name}-preferences %{_datadir}/applications/%{name}-preferences.desktop %changelog * Mon May 09 2011 Hicham HAOUARI - 3.8.12-1 - Initial package