diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index ea5fa84..e1dd261 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -14,6 +14,7 @@ Group: User Interface/Desktops License: GPLv2+ and BSD URL: http://live.gnome.org/GnomeShell/Extensions Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz +BuildRequires: desktop-file-utils # BuildRequires: gnome-common BuildRequires: intltool BuildRequires: pkgconfig(gnome-desktop-3.0) @@ -26,15 +27,15 @@ GNOME Shell Extensions is a collection of extensions providing additional and optional functionality to GNOME Shell. Enabled extensions: - * default-min-max - * static-workspaces * alternate-tab * alternative-status-menu * apps-menu * auto-move-windows + * default-min-max * drive-menu * native-window-placement * places-menu + * static-workspaces * systemMonitor * user-theme * windowsNavigator @@ -56,6 +57,21 @@ optional functionality to GNOME Shell. Common files and directories needed by extensions are provided here. +%package -n gnome-classic-session +Summary: GNOME "classic" mode session +Group: User Interface/Desktops +License: GPLv2+ +Requires: %{pkg_prefix}-alternate-tab = %{version}-%{release} +Requires: %{pkg_prefix}-apps-menu = %{version}-%{release} +Requires: %{pkg_prefix}-default-min-max = %{version}-%{release} +Requires: %{pkg_prefix}-places-menu = %{version}-%{release} +Requires: %{pkg_prefix}-static-workspaces = %{version}-%{release} + +%description -n gnome-shell-classic +This package contains the required components for the GNOME Shell "classic" +mode, which aims to provide a GNOME 2-like user interface. + + %package -n %{pkg_prefix}-alternate-tab Summary: Classic Alt+Tab behavior for GNOME Shell Group: User Interface/Desktops @@ -227,6 +243,12 @@ make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT +# Drop useless example extension +rm -r $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/example*/ +rm $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.example.gschema.xml + +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-shell-classic.desktop + %find_lang %{name} @@ -234,9 +256,13 @@ make install DESTDIR=$RPM_BUILD_ROOT %doc COPYING NEWS README %dir %{_datadir}/gnome-shell/extensions/ +%files -n gnome-shell-classic +%{_datadir}/applications/gnome-shell-classic.desktop +%{_datadir}/gnome-session/sessions/gnome-classic.session +%{_datadir}/gnome-shell/modes/classic.json +%{_datadir}/xsessions/gnome-classic.desktop %files -n %{pkg_prefix}-alternate-tab -%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.alternate-tab.gschema.xml %{_datadir}/gnome-shell/extensions/alternate-tab*/ @@ -296,15 +322,6 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_datadir}/gnome-shell/extensions/xrandr-indicator*/ -%postun -n %{pkg_prefix}-alternate-tab -if [ $1 -eq 0 ]; then - /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas/ &>/dev/null || : -fi - -%posttrans -n %{pkg_prefix}-alternate-tab -/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas/ &>/dev/null || : - - %postun -n %{pkg_prefix}-alternative-status-menu if [ $1 -eq 0 ]; then /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas/ &>/dev/null || : @@ -342,9 +359,10 @@ fi %changelog -* Mon Dec 31 2012 Mohamed El Morabity - 3.7.3-1 +* Tue Jen 01 2013 Mohamed El Morabity - 3.7.3-1 - Update to 3.7.3 - Enable new default-min-max and static-workspaces extensions +- Provide new subpackage gnome-classic-session - Revamp summaries and descriptions * Tue Oct 30 2012 Mohamed El Morabity - 3.7.1-1