[packages/usermode] - updated dependencies, added selinux bcond - hiding userhelper from users was pure SbO, packages ar

qboosh qboosh at pld-linux.org
Sun Mar 31 22:05:17 CEST 2013

commit 5cdf268772e227aabcd6ac115400ae36497d0585
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 31 22:05:02 2013 +0200

    - updated dependencies, added selinux bcond
    - hiding userhelper from users was pure SbO, packages are publically available

 usermode.spec | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/usermode.spec b/usermode.spec
index dc87abc..cabc15b 100644
--- a/usermode.spec
+++ b/usermode.spec
@@ -1,3 +1,7 @@
+# Conditional build:
+%bcond_without	selinux	# SELinux functionality
 Summary:	Tools for certain user account management tasks
 Summary(de.UTF-8):	Anwender-Tools
 Summary(fr.UTF-8):	Outils utilisateur
@@ -11,16 +15,18 @@ Group:		Applications/System
 Source0:	https://fedorahosted.org/releases/u/s/usermode/%{name}-%{version}.tar.xz
 # Source0-md5:	28ba510fbd8da9f4e86e57d6c31cff29
 Source1:	config-util
+Patch0:		%{name}-userhelper-format-security.patch
 URL:		https://fedorahosted.org/usermode/
-BuildRequires:	gtk+2-devel
+BuildRequires:	glib2-devel >= 2.0
+BuildRequires:	gtk+2-devel >= 2:2.23
 BuildRequires:	libblkid-devel
+%{?with_selinux:BuildRequires:	libselinux-devel}
 BuildRequires:	libuser-devel
 BuildRequires:	pam-devel
-BuildRequires:	pwdb-devel
+BuildRequires:	startup-notification-devel
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 #Requires:	nss_db
-Patch0:		%{name}-userhelper-format-security.patch
 Requires:	util-linux
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -52,8 +58,10 @@ içerir.
 %package gtk
 Summary:	Graphical tools for certain user account management tasks
+Summary(pl.UTF-8):	Graficzne narzędzia obsługujące zadania zarządzania kontami użytkowników
 Group:		X11/Applications
 Requires:	%{name} = %{version}-%{release}
+Requires:	gtk+2 >= 2:2.23
 %description gtk
 The usermode-gtk package contains several graphical tools for users:
@@ -62,15 +70,20 @@ their finger information. Usermount lets users mount, unmount, and
 format file systems. Userpasswd allows users to change their
-Install the usermode-gtk package if you would like to provide users
-with graphical tools for certain account management tasks.
+%description gtk -l pl.UTF-8
+Ten pakiet zawiera kilka graficznych narzędzi dla użytkowników:
+userinfo, usermount i userpasswd. Userinfo pozwala użytkownikom
+zmieniać informacje udostępniane przez finger. Usermount pozwala
+montować, odmontowywać i formatować systemy plików. Userpasswd pozwala
+zmieniać hasło.
 %setup -q
 %patch0 -p1
+%configure \
+	%{?with_selinux:--with-selinux}
@@ -92,7 +105,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %doc ChangeLog NEWS README
-%attr(4711,root,root) %{_sbindir}/userhelper
+%attr(4755,root,root) %{_sbindir}/userhelper
 %attr(755,root,root) %{_bindir}/consolehelper
 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/config-util

---- gitweb:


More information about the pld-cvs-commit mailing list