Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 2cb2d2142181b023d4a7756dc9555c26 > files > 6

sabayon-2.30.1-6.mga3.src.rpm

%define pygtk2_version 2.5.3
%define gnome_python2_version 2.6.0

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Name:		sabayon
Version:	2.30.1
Release:	%mkrel 6
Summary:	Tool to maintain user profiles in a GNOME desktop

Group:		System/Configuration
License:	GPLv2+
URL:		http://www.gnome.org/projects/sabayon
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		sabayon-2.29.91-pam.patch
# (fc) 2.12.1-3mdk source xinit file
Patch1:		sabayon-2.22.1-source.patch
# gw:	fix for running with libexecdir == libdir:
# http://bugzilla.gnome.org/show_bug.cgi?id=522119
Patch3:		sabayon-2.22.0-libexecdir.patch
Patch4:		sabayon-2.22.1-fix-linkage.patch

Requires:	python-gamin
Requires:	pyxdg
Requires:	GConf2 
Requires:	python-%name
Requires:	pessulus

BuildRequires:	pygtk2.0-devel
BuildRequires:	gtk+2-devel
BuildRequires:	pyxdg
BuildRequires:	pessulus
BuildRequires:	gettext
BuildRequires:	usermode
BuildRequires:	x11-server-xephyr
BuildRequires:	intltool
BuildRequires:	gnome-doc-utils 

%description
Sabayon is a tool to help sysadmins and user change and maintain the
default behaviour of the GNOME desktop.

%package  admin
Summary:	 Graphical tools for Sabayon profile management
Group:		System/Configuration
Requires:	%{name} = %{version}
Requires(pre):	usermode-consoleonly
Requires(post):	gtk+2.0
Requires(postun):	gtk+2.0
Requires:	x11-server-xephyr
Requires:	pygtk2.0 >= %{pygtk2_version}
Requires:	gnome-python-gconf >= %{gnome_python2_version}

%description admin
The sabayon-admin package contains the graphical tools which a
sysadmin should use to manage Sabayon profiles.

%package  -n python-%name
Summary:	Python modules of sabayon
Group:		System/Configuration
Conflicts:	%name < %version-%release
Conflicts:	%name-admin < %version-%release
#Requires:	pygtk2.0 >= %{pygtk2_version}
#Requires:	gnome-python-gconf >= %{gnome_python2_version}
Requires:	python-ldap
Requires:	python-libxml2

%description -n python-%name
This package contains the python modules of sabayon.

%prep
%setup -q -n %name-%version
%patch0 -p1
%patch1 -p1 -b .source
%patch3 -p1
%patch4 -p0

%build
%configure2_5x 	\
	--enable-console-helper=yes \
	--with-prototype-user=%{name}-admin
%make

%install
%makeinstall PAM_PREFIX=$RPM_BUILD_ROOT%{_sysconfdir}

%find_lang sabayon --with-gnome
for omf in %buildroot%_datadir/omf/*/*-??*.omf;do 
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed -e s!%buildroot!!)" >> %name.lang
done


# We don't want these
rm -f %buildroot%py_platsitedir/%{name}/xlib.*a \
      %buildroot%_datadir/icons/hicolor/icon-theme.cache

# (tv) fix adding users:
mkdir -p %buildroot/etc/sabayon/profiles/

%pre admin
%_pre_useradd %name-admin /var/lib/ /sbin/nologin
/usr/sbin/usermod -d "" %{name}-admin &>/dev/null || :

%files -f sabayon.lang

%doc AUTHORS NEWS README TODO ISSUES

%config(noreplace) %{_sysconfdir}/X11/xinit.d/%{name}*


%{_sbindir}/%{name}-apply
%_mandir/man8/sabayon*8*

%files -n python-%name
%dir /etc/sabayon/profiles/
%dir %py_platsitedir/%{name}/
%py_platsitedir/%{name}/__init__.py*
%py_platsitedir/%{name}/config.py*
%py_platsitedir/%{name}/cache.py*
%py_platsitedir/%{name}/dirmonitor.py*
%py_platsitedir/%{name}/mozilla_bookmarks.py*
%py_platsitedir/%{name}/storage.py*
%py_platsitedir/%{name}/userprofile.py*
%py_platsitedir/%{name}/util.py*
%py_platsitedir/%{name}/sources/*.py*
%py_platsitedir/%{name}/*.so
%py_platsitedir/%{name}/*
%dir %_datadir/omf/%name/
%_datadir/omf/%name/*-C.omf

%files admin

%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}

%{_bindir}/%{name}
%{_sbindir}/%{name}
%{_libexecdir}/%{name}*

%dir %_datadir/%name/ui
%_datadir/%name/ui/%name.ui
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*



%changelog

* Wed Jan 23 2013 fwang <fwang> 2.30.1-6.mga3
+ Revision: 391515
- update rpm group

* Mon Jan 14 2013 umeabot <umeabot> 2.30.1-5.mga3
+ Revision: 381641
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Feb 15 2012 ovitters <ovitters> 2.30.1-4.mga2
+ Revision: 209297
- clean spec

* Wed Mar 09 2011 ennael <ennael> 2.30.1-3.mga1
+ Revision: 67182
- clean spec file
- imported package sabayon