]> git.pld-linux.org Git - packages/sabayon.git/blame - sabayon.spec
- BR: gettext-devel, gnome-common, pkgconfig, rpm-pythonprov
[packages/sabayon.git] / sabayon.spec
CommitLineData
5f844e89
ER
1# TODO
2# - nonstandard in (in pld means) %config in files
721617d4 3Summary: Tool to maintain user profiles in a GNOME desktop
a225f823 4Summary(pl.UTF-8): Narzędzie do zarządzania profilami użytkowników w środowisku GNOME
721617d4 5Name: sabayon
fd24ead7 6Version: 2.22.1
d85e75fe 7Release: 2
721617d4
JR
8License: GPL
9Group: Applications/System
c2543fdf 10Source0: http://ftp.gnome.org/pub/GNOME/sources/sabayon/2.22/%{name}-%{version}.tar.bz2
fd24ead7 11# Source0-md5: b7dde445040d022899ae3f452a686c80
c2543fdf
PZ
12Patch0: %{name}-pld.patch
13Patch1: %{name}-pythonpath.patch
721617d4 14URL: http://www.gnome.org/projects/sabayon
c2543fdf
PZ
15BuildRequires: autoconf >= 2.59
16BuildRequires: automake
721617d4 17BuildRequires: desktop-file-utils
171cc536 18BuildRequires: gettext-devel
19BuildRequires: gnome-common
aa62039a 20BuildRequires: gtk+2-devel >= 2:2.8.17
c2543fdf 21BuildRequires: intltool >= 0.36.2
fd24ead7 22BuildRequires: libtool
171cc536 23BuildRequires: pkgconfig
721617d4 24BuildRequires: python-devel
696d3d3c 25BuildRequires: python-pygtk-devel >= 2:2.8.6
171cc536 26BuildRequires: rpm-pythonprov
721617d4
JR
27Requires(post,postun): gtk+2 >= 2.8.17
28%pyrequires_eq python-modules
c2543fdf
PZ
29Requires(post,postun): desktop-file-utils
30Requires(post,postun): hicolor-icon-theme
31Requires: python-gamin
721617d4
JR
32Requires: python-gnome-gconf >= 2.12.4
33Requires: python-ldap
c2543fdf 34Requires: python-libxml2
696d3d3c 35Requires: python-pygtk-gtk >= 2:2.8.6
721617d4
JR
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39Sabayon is a tool to help sysadmins and user change and maintain the
40default behaviour of the GNOME desktop.
41
a1d27c71
JR
42%description -l pl.UTF-8
43Sabayon to narzędzie pomagające administratorom i użytkownikom
44zmieniać i utrzymywać domyślne zachowanie środowiska GNOME.
aa62039a 45
721617d4
JR
46%package admin
47Summary: Graphical tools for Sabayon profile management
a225f823 48Summary(pl.UTF-8): Graficzne narzędzia do zarządzania profilami Sabayon
721617d4 49Group: Applications/System
c2543fdf
PZ
50Requires(postun): /usr/sbin/groupdel
51Requires(postun): /usr/sbin/userdel
52Requires(pre): /bin/id
53Requires(pre): /usr/bin/getgid
54Requires(pre): /usr/lib/rpm/user_group.sh
55Requires(pre): /usr/sbin/groupadd
56Requires(pre): /usr/sbin/useradd
57Requires(pre): /usr/sbin/usermod
721617d4 58Requires: %{name} = %{version}-%{release}
b76fbe5c
ER
59# this is virtual for shadow and pwdutils
60Requires: shadow
aa62039a 61Requires: xorg-xserver-Xnest
721617d4
JR
62
63%description admin
64The sabayon-admin package contains the graphical tools which a
65sysadmin should use to manage Sabayon profiles.
66
a1d27c71
JR
67%description admin -l pl.UTF-8
68Ten pakiet zawiera graficzne narzędzia dla administratora do
69zarządzania profilami Sabayon.
aa62039a 70
721617d4
JR
71%prep
72%setup -q
c2543fdf
PZ
73%patch0 -p1
74%patch1 -p1
721617d4
JR
75
76%build
fd24ead7 77%{__libtoolize}
c2543fdf
PZ
78%{__intltoolize}
79%{__aclocal}
80%{__autoheader}
81%{__autoconf}
82%{__automake}
721617d4 83%configure \
c4e8478a
PZ
84 --with-prototype-user=sabayon \
85 --with-distro=pld
721617d4
JR
86
87%{__make}
88
89%install
90rm -rf $RPM_BUILD_ROOT
91install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2
92
93%{__make} install \
c2543fdf 94 DESTDIR=$RPM_BUILD_ROOT
721617d4
JR
95
96echo 'include "$(HOME)/.gconf.path.defaults"' > $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2/local-defaults.path
97echo 'include "$(HOME)/.gconf.path.mandatory"' > $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2/local-mandatory.path
98
99desktop-file-install --vendor gnome --delete-original \
100 --dir $RPM_BUILD_ROOT%{_desktopdir} \
721617d4
JR
101 $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
102
721617d4
JR
103rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/xlib.la
104rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/xlib.a
105
c2543fdf 106%py_postclean
721617d4
JR
107%find_lang sabayon
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%pre admin
c2543fdf
PZ
113%groupadd -g 225 sabayon
114%useradd -u 225 -d %{_datadir}/empty -c "Sabayon user" -g sabayon sabayon
721617d4
JR
115
116%post admin
c2543fdf
PZ
117%update_desktop_database_post
118%update_icon_cache hicolor
721617d4
JR
119
120%postun admin
c2543fdf
PZ
121%update_desktop_database_postun
122%update_icon_cache hicolor
721617d4 123
5f844e89 124if [ "$1" -eq 0 ]; then
c2543fdf
PZ
125 %userremove sabayon
126 %groupremove sabayon
721617d4
JR
127fi
128
129%files -f sabayon.lang
130%defattr(644,root,root,755)
131%doc AUTHORS ChangeLog NEWS README TODO ISSUES sabayon.schema
132%config(noreplace) %{_sysconfdir}/gconf/2/local-defaults.path
133%config(noreplace) %{_sysconfdir}/gconf/2/local-mandatory.path
134%config(noreplace) %{_sysconfdir}/X11/xinit/xinitrc.d/%{name}*
135%{_sysconfdir}/desktop-profiles
c2543fdf 136%attr(755,root,root) %{_sbindir}/sabayon-apply
721617d4 137%dir %{py_sitedir}/%{name}
c2543fdf
PZ
138%{py_sitedir}/%{name}/*.py[co]
139%dir %{py_sitedir}/%{name}/sources
140%{py_sitedir}/%{name}/sources/*.py[co]
141%dir %{py_sitedir}/%{name}/lockdown
142%{py_sitedir}/%{name}/lockdown/*.py[co]
721617d4
JR
143
144%files admin
145%defattr(644,root,root,755)
146%doc doc/index.html doc/testing.html doc/helping.html doc/developing.html
147%doc doc/sabayon.css doc/*.jpg doc/*.gif
c2543fdf
PZ
148%attr(755,root,root) %{_bindir}/sabayon
149%attr(755,root,root) %{_libexecdir}/sabayon-session
aa62039a
JB
150%dir %{_datadir}/%{name}
151%dir %{_datadir}/%{name}/glade
721617d4
JR
152%{_datadir}/%{name}/glade/*.glade
153%{_desktopdir}/gnome-%{name}.desktop
c2543fdf
PZ
154%{_iconsdir}/hicolor/*/apps/*.png
155%{_iconsdir}/hicolor/*/apps/*.svg
aa62039a 156%attr(755,root,root) %{py_sitedir}/%{name}/xlib.so
This page took 0.056384 seconds and 4 git commands to generate.