]>
Commit | Line | Data |
---|---|---|
5f844e89 ER |
1 | # TODO |
2 | # - nonstandard in (in pld means) %config in files | |
721617d4 | 3 | Summary: Tool to maintain user profiles in a GNOME desktop |
a225f823 | 4 | Summary(pl.UTF-8): Narzędzie do zarządzania profilami użytkowników w środowisku GNOME |
721617d4 | 5 | Name: sabayon |
fd24ead7 | 6 | Version: 2.22.1 |
4d2e89c2 | 7 | Release: 3 |
721617d4 JR |
8 | License: GPL |
9 | Group: Applications/System | |
c2543fdf | 10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/sabayon/2.22/%{name}-%{version}.tar.bz2 |
fd24ead7 | 11 | # Source0-md5: b7dde445040d022899ae3f452a686c80 |
c2543fdf PZ |
12 | Patch0: %{name}-pld.patch |
13 | Patch1: %{name}-pythonpath.patch | |
721617d4 | 14 | URL: http://www.gnome.org/projects/sabayon |
c2543fdf PZ |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake | |
721617d4 | 17 | BuildRequires: desktop-file-utils |
171cc536 | 18 | BuildRequires: gettext-devel |
19 | BuildRequires: gnome-common | |
aa62039a | 20 | BuildRequires: gtk+2-devel >= 2:2.8.17 |
c2543fdf | 21 | BuildRequires: intltool >= 0.36.2 |
fd24ead7 | 22 | BuildRequires: libtool |
171cc536 | 23 | BuildRequires: pkgconfig |
721617d4 | 24 | BuildRequires: python-devel |
696d3d3c | 25 | BuildRequires: python-pygtk-devel >= 2:2.8.6 |
171cc536 | 26 | BuildRequires: rpm-pythonprov |
721617d4 JR |
27 | Requires(post,postun): gtk+2 >= 2.8.17 |
28 | %pyrequires_eq python-modules | |
c2543fdf PZ |
29 | Requires(post,postun): desktop-file-utils |
30 | Requires(post,postun): hicolor-icon-theme | |
31 | Requires: python-gamin | |
721617d4 JR |
32 | Requires: python-gnome-gconf >= 2.12.4 |
33 | Requires: python-ldap | |
c2543fdf | 34 | Requires: python-libxml2 |
696d3d3c | 35 | Requires: python-pygtk-gtk >= 2:2.8.6 |
721617d4 JR |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | Sabayon is a tool to help sysadmins and user change and maintain the | |
40 | default behaviour of the GNOME desktop. | |
41 | ||
a1d27c71 JR |
42 | %description -l pl.UTF-8 |
43 | Sabayon to narzędzie pomagające administratorom i użytkownikom | |
44 | zmieniać i utrzymywać domyślne zachowanie środowiska GNOME. | |
aa62039a | 45 | |
721617d4 JR |
46 | %package admin |
47 | Summary: Graphical tools for Sabayon profile management | |
a225f823 | 48 | Summary(pl.UTF-8): Graficzne narzędzia do zarządzania profilami Sabayon |
721617d4 | 49 | Group: Applications/System |
c2543fdf PZ |
50 | Requires(postun): /usr/sbin/groupdel |
51 | Requires(postun): /usr/sbin/userdel | |
52 | Requires(pre): /bin/id | |
53 | Requires(pre): /usr/bin/getgid | |
54 | Requires(pre): /usr/lib/rpm/user_group.sh | |
55 | Requires(pre): /usr/sbin/groupadd | |
56 | Requires(pre): /usr/sbin/useradd | |
57 | Requires(pre): /usr/sbin/usermod | |
721617d4 | 58 | Requires: %{name} = %{version}-%{release} |
b76fbe5c ER |
59 | # this is virtual for shadow and pwdutils |
60 | Requires: shadow | |
aa62039a | 61 | Requires: xorg-xserver-Xnest |
721617d4 JR |
62 | |
63 | %description admin | |
64 | The sabayon-admin package contains the graphical tools which a | |
65 | sysadmin should use to manage Sabayon profiles. | |
66 | ||
a1d27c71 JR |
67 | %description admin -l pl.UTF-8 |
68 | Ten pakiet zawiera graficzne narzędzia dla administratora do | |
69 | zarzą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 | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2 | |
92 | ||
93 | %{__make} install \ | |
c2543fdf | 94 | DESTDIR=$RPM_BUILD_ROOT |
721617d4 JR |
95 | |
96 | echo 'include "$(HOME)/.gconf.path.defaults"' > $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2/local-defaults.path | |
97 | echo 'include "$(HOME)/.gconf.path.mandatory"' > $RPM_BUILD_ROOT%{_sysconfdir}/gconf/2/local-mandatory.path | |
98 | ||
99 | desktop-file-install --vendor gnome --delete-original \ | |
100 | --dir $RPM_BUILD_ROOT%{_desktopdir} \ | |
721617d4 JR |
101 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
102 | ||
721617d4 JR |
103 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/xlib.la |
104 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/xlib.a | |
105 | ||
c2543fdf | 106 | %py_postclean |
721617d4 JR |
107 | %find_lang sabayon |
108 | ||
109 | %clean | |
110 | rm -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 | 124 | if [ "$1" -eq 0 ]; then |
c2543fdf PZ |
125 | %userremove sabayon |
126 | %groupremove sabayon | |
721617d4 JR |
127 | fi |
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 |