%define apiver 3.0
%define majver %(echo %version | cut -d. -f1-2)
Name:          gnome-session
Version:       3.10.1
Release:       1mamba
Summary:       GNOME desktop session manager
Group:         Graphical Desktop/Applications/Environment
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@mambasoft.it>
URL:           http://www.gnome.org
Source:        http://ftp.gnome.org/pub/GNOME/sources/gnome-session/%{majver}/gnome-session-%{version}.tar.xz
License:       GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: GConf-devel
BuildRequires: glibc-devel
BuildRequires: gnome-desktop-devel
BuildRequires: libatk-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libICE-devel
BuildRequires: libicu-devel
BuildRequires: libjson-glib-devel
BuildRequires: liblzma-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libselinux-devel
BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libuuid-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXi-devel
BuildRequires: libxkbfile-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libXtst-devel
BuildRequires: libz-devel
BuildRequires: ORBit2-devel
BuildRequires: systemd-devel
BuildRequires: upower-devel
## AUTOBUILDREQ-END
Requires:      gnome-shell
#Requires:      metacity
#Requires:      gnome-panel
Requires:      gnome-menus
Requires:      gnome-settings-daemon
Requires:      gnome-desktop
Requires:      nautilus
BuildRequires: DeviceKit-power-devel
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
GNOME desktop session manager.

%prep

%setup -q

%build
%configure
%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

%find_lang %{name}-%{apiver}

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
/sbin/ldconfig
glib-compile-schemas /usr/share/glib-2.0/schemas/
[ -x /usr/bin/scrollkeeper-update ] && scrollkeeper-update
exit 0

%postun
/sbin/ldconfig
[ -x /usr/bin/scrollkeeper-update ] && scrollkeeper-update
exit 0

%files -f %{name}-%{apiver}.lang
%defattr(-,root,root)
%{_bindir}/gnome-session
%{_bindir}/gnome-session-inhibit
%{_bindir}/gnome-session-properties
%{_bindir}/gnome-session-quit
%{_libexecdir}/gnome-session-check-accelerated
%{_libexecdir}/gnome-session-check-accelerated-helper
%{_libexecdir}/gnome-session-failed
%{_datadir}/GConf/gsettings/gnome-session.convert
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%dir %{_datadir}/gnome-session
%dir %{_datadir}/gnome-session/sessions
%{_datadir}/gnome-session/sessions/gnome-dummy.session
%{_datadir}/gnome-session/sessions/gnome-wayland.session
%{_datadir}/gnome-session/sessions/gnome.session
%{_datadir}/gnome-session/hardware-compatibility
%{_datadir}/gnome-session/session-properties.ui
%{_datadir}/wayland-sessions/gnome-wayland.desktop
%{_mandir}/man1/gnome-session-inhibit.1.gz
%{_datadir}/applications/gnome-session-properties.desktop
%{_datadir}/icons/hicolor/*/apps/session-properties.png
%{_datadir}/icons/hicolor/scalable/apps/session-properties.svg
%{_datadir}/xsessions/gnome.desktop
%{_mandir}/man1/gnome-session.1.gz
%{_mandir}/man1/gnome-session-properties.1.gz
%{_mandir}/man1/gnome-session-quit.1.gz
%{_docdir}/gnome-session/dbus/gnome-session.html
%doc AUTHORS COPYING
#ChangeLog NEWS README

%changelog
* Wed Oct 30 2013 Automatic Build System <autodist@mambasoft.it> 3.10.1-1mamba
- automatic version update by autodist

* Wed Jul 31 2013 Automatic Build System <autodist@mambasoft.it> 3.8.4-1mamba
- automatic version update by autodist

* Wed May 15 2013 Automatic Build System <autodist@mambasoft.it> 3.8.2.1-1mamba
- automatic version update by autodist

* Tue May 14 2013 Automatic Build System <autodist@mambasoft.it> 3.8.2-1mamba
- automatic version update by autodist

* Thu May 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.1-2mamba
- removed requirement for gnome-panel

* Tue Apr 16 2013 Automatic Build System <autodist@mambasoft.it> 3.8.1-1mamba
- automatic version update by autodist

* Thu Apr 04 2013 Automatic Build System <autodist@mambasoft.it> 3.8.0-1mamba
- automatic version update by autodist

* Fri Dec 07 2012 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
- automatic version update by autodist

* Sun Oct 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.1-2mamba
- %post: compile schema using glib-compile-schemas

* Tue Oct 16 2012 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
- automatic version update by autodist

* Wed Sep 26 2012 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
- automatic version update by autodist

* Sun Sep 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2.1-2mamba
- require gnome-shell and don't require metacity

* Wed May 23 2012 Automatic Build System <autodist@mambasoft.it> 3.4.2.1-1mamba
- automatic version update by autodist

* Mon May 14 2012 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
- automatic version update by autodist

* Mon Apr 16 2012 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
- automatic version update by autodist

* Sun Apr 01 2012 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
- update to 3.4.0

* Wed Oct 26 2011 Automatic Build System <autodist@mambasoft.it> 3.3.1-1mamba
- automatic version update by autodist

* Sun Oct 16 2011 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
- automatic version update by autodist

* Wed Sep 28 2011 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
- automatic version update by autodist

* Tue May 24 2011 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic update by autodist

* Thu May 12 2011 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic update by autodist

* Wed Apr 06 2011 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic update by autodist

* Wed Nov 17 2010 Automatic Build System <autodist@mambasoft.it> 2.32.1-1mamba
- automatic update to 2.32.1 by autodist

* Sat Oct 16 2010 Automatic Build System <autodist@mambasoft.it> 2.32.0-1mamba
- automatic update to 2.32.0 by autodist

* Tue Jun 22 2010 Automatic Build System <autodist@mambasoft.it> 2.30.2-1mamba
- automatic update to 2.30.2 by autodist

* Sun May 30 2010 Automatic Build System <autodist@mambasoft.it> 2.30.0-1mamba
- automatic update to 2.30.0 by autodist

* Sat Jan 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.28.0-2mamba
- added base requirement for a gnome session and install configuration schema

* Tue Sep 29 2009 Automatic Build System <autodist@mambasoft.it> 2.28.0-1mamba
- update to 2.28.0

* Sun Jul 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.26.2-1mamba
- package created by autospec