packages: system-config-users/system-config-users.spec - up to 1.2.113

glen glen at pld-linux.org
Sat Mar 3 22:05:32 CET 2012


Author: glen                         Date: Sat Mar  3 21:05:32 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.2.113

---- Files affected:
packages/system-config-users:
   system-config-users.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/system-config-users/system-config-users.spec
diff -u packages/system-config-users/system-config-users.spec:1.7 packages/system-config-users/system-config-users.spec:1.8
--- packages/system-config-users/system-config-users.spec:1.7	Fri Feb  4 19:24:04 2011
+++ packages/system-config-users/system-config-users.spec	Sat Mar  3 22:05:27 2012
@@ -1,18 +1,19 @@
 # $Revision$, $Date$
 Summary:	A graphical interface for administering users and groups
 Name:		system-config-users
-Version:	1.2.80
-Release:	6
+Version:	1.2.113
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
 URL:		http://fedoraproject.org/wiki/SystemConfig/users
-Source0:	%{name}-%{version}.tar.bz2
-# Source0-md5:	07067f69f3b09e8d411ad81d872ad265
+Source0:	http://fedorahosted.org/released/system-config-users/%{name}-%{version}.tar.bz2
+# Source0-md5:	eca1beb0c9792077af265596f26f2286
 BuildRequires:	/bin/bash
 BuildRequires:	gettext-devel
 BuildRequires:	intltool
 BuildRequires:	python >= 2.0
 BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
 Requires(post,postun):	gtk-update-icon-cache
 Requires(post,postun):	hicolor-icon-theme
 Requires:	/usr/bin/pgrep
@@ -23,6 +24,7 @@
 Requires:	python-pygtk-gtk >= 2.6
 Requires:	python-rhpl
 Requires:	python-rpm
+Requires:	usermode-gtk >= 1.94
 Requires:	xdg-utils
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,8 +35,6 @@
 
 %prep
 %setup -q
-# this doc generation is broken on PLD
-echo "doc-all:\ndoc-install:" > doc_rules.mk
 
 %build
 %{__make} \
@@ -46,11 +46,21 @@
 	SHELL=/bin/bash \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_postclean %{_datadir}/%{name}
+
 # we don't have and we don't want consolehelper
-ln -s -f %{_datadir}/system-config-users/system-config-users $RPM_BUILD_ROOT%{_bindir}/system-config-users
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/%{name}
+#%{__rm} $RPM_BUILD_ROOT%{_bindir}/consolehelper
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_bindir}/%{name}
+#!/bin/sh
+export PYTHONPATH=%{_datadir}/%{name}
+exec %{__python} %{_datadir}/%{name}/%{name}.pyc
+EOF
+chmod a+x $RPM_BUILD_ROOT%{_bindir}/%{name}
 
 %find_lang %{name}
-find $RPM_BUILD_ROOT%{_datadir} -name "*.mo" | xargs ./utf8ify-mo
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -63,14 +73,17 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc COPYING
-%attr(755,root,root) %{_bindir}/system-config-users
-%{_datadir}/system-config-users
-%{_mandir}/man8/system-config-users*
-%{_iconsdir}/hicolor/48x48/apps/%{name}.png
-%config(noreplace) /etc/security/console.apps/system-config-users
-%config(noreplace) /etc/pam.d/system-config-users
-%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/system-config-users
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.py[co]
+%{_datadir}/%{name}/*.png
+%{_datadir}/%{name}/*.glade
+%{_mandir}/man8/%{name}*
+#%{_iconsdir}/hicolor/*/apps/%{name}.png
+%{_desktopdir}/%{name}.desktop
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -78,6 +91,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2012/03/03 21:05:27  glen
+- up to 1.2.113
+
 Revision 1.7  2011/02/04 18:24:04  wiget
 - Requires(post,postun): gtk-update-icon-cache
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/system-config-users/system-config-users.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list