From 2dc9b0db2941244efc6455ca1967285bc95636f6 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Nov 20 2007 11:32:45 +0000 Subject: First part of the package cleanup -- fixing SPEC file issues (#226467) from the Merge review. --- diff --git a/system-config-rootpassword.spec b/system-config-rootpassword.spec index 4161b2c..6c4daf3 100644 --- a/system-config-rootpassword.spec +++ b/system-config-rootpassword.spec @@ -1,80 +1,86 @@ -Summary: A graphical interface for modifying the rootpassword -Name: system-config-rootpassword -Version: 1.1.10 -Release: 4%{?dist} -URL: http://fedora.redhat.com/ -License: GPL+ -ExclusiveOS: Linux -Group: System Environment/Base -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildArch: noarch -Source0: %{name}-%{version}.tar.bz2 -Obsoletes: redhat-config-rootpassword -BuildRequires: desktop-file-utils -BuildRequires: gettext -BuildRequires: intltool -Requires: pygtk2 -Requires: python2 -Requires: usermode >= 1.36 -Requires: libuser >= 0.49 -Requires: rhpl -Prereq: gtk2 >= 2.6 +Name: system-config-rootpassword +Version: 1.1.10 +Release: 5%{?dist} +Summary: A graphical interface for modifying the rootpassword + +Group: System Environment/Base +License: GPL+ +URL: http://fedora.redhat.com/ +# XXX: Hosted +Source0: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gettext intltool +BuildRequires: desktop-file-utils +Requires: pygtk2 rhpl +Requires: usermode >= 1.36 +Requires: libuser-python >= 0.49 + +BuildArch: noarch +Obsoletes: redhat-config-rootpassword +Provides: redhat-config-rootpassword %description -system-config-rootpassword is a graphical user interface that allows -the user to change the root password of the system. +A graphical user interface that allows the user to change the root password +of the system. + %prep %setup -q + %build -make +make %{?_smp_mflags} + %install +rm -rf $RPM_BUILD_ROOT make INSTROOT=$RPM_BUILD_ROOT install -desktop-file-install --vendor system --delete-original \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ - --add-category Settings \ - --remove-category Application \ - $RPM_BUILD_ROOT%{_datadir}/applications/system-config-rootpassword.desktop +desktop-file-install --vendor=fedora --delete-original \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + --add-category Settings \ + --remove-category Application \ + $RPM_BUILD_ROOT%{_datadir}/applications/system-config-rootpassword.desktop + +%find_lang %{name} -%find_lang %name %clean rm -rf $RPM_BUILD_ROOT + %post touch --no-create %{_datadir}/icons/hicolor -if [ -x /usr/bin/gtk-update-icon-cache ]; then - gtk-update-icon-cache -q %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi + %postun touch --no-create %{_datadir}/icons/hicolor -if [ -x /usr/bin/gtk-update-icon-cache ]; then - gtk-update-icon-cache -q %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi + %files -f %{name}.lang -%defattr(-,root,root) -#%doc COPYING -#%doc doc/* -/usr/bin/system-config-rootpassword -%dir /usr/share/system-config-rootpassword -%dir /usr/share/system-config-rootpassword/pixmaps -/usr/share/system-config-rootpassword/* -%dir /usr/share/firstboot/ -%dir /usr/share/firstboot/modules -/usr/share/firstboot/modules/rootpassword.py* -#%attr(0644,root,root) %{_mandir}/man8/system-config-rootpassword* -#%attr(0644,root,root) %{_mandir}/ja/man8/system-config-rootpassword* -%attr(0644,root,root) %{_datadir}/applications/system-config-rootpassword.desktop +%defattr(-,root,root,-) +%{_bindir}/system-config-rootpassword +%dir %{_datadir}/system-config-rootpassword +%dir %{_datadir}/system-config-rootpassword/pixmaps +%{_datadir}/system-config-rootpassword/* +%{_datadir}/firstboot/modules/rootpassword.py* +%attr(0644,root,root) %{_datadir}/applications/fedora-system-config-rootpassword.desktop %attr(0644,root,root) %{_datadir}/icons/hicolor/48x48/apps/system-config-rootpassword.png -%attr(0644,root,root) %config /etc/security/console.apps/system-config-rootpassword -%attr(0644,root,root) %config /etc/pam.d/system-config-rootpassword +%attr(0644,root,root) %config %{_sysconfdir}/security/console.apps/system-config-rootpassword +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-config-rootpassword + %changelog +* Tue Nov 20 2007 Lubomir Kundrak - 1.1.10-4 - Fix menu categories @@ -244,7 +250,7 @@ fi * Thu Jun 20 2002 Brent Fox 0.9.0-2 - Move the debug parameter to launch - Add snapsrc to Makefile - + * Tue May 14 2002 Brent Fox 0.2.0-3 - Added a debug mode