[system-config-language] * Mon Oct 4 2010 Naveen Kumar <nkumar at redhat.com>- 1.3.5-3 - Spec file updated according to new guid

Naveen Kumar nkumar at fedoraproject.org
Mon Oct 4 09:40:39 UTC 2010


commit 7b280ac57792a14bc9b225763be51d4cb7c19706
Author: Naveen Kumar <nkumar at redhat.com>
Date:   Mon Oct 4 15:08:14 2010 +0530

    * Mon Oct 4 2010 Naveen Kumar <nkumar at redhat.com>- 1.3.5-3
    - Spec file updated according to new guidelines
    - resolves bug #624008

 system-config-language.spec |   39 +++++++++++++++++----------------------
 1 files changed, 17 insertions(+), 22 deletions(-)
---
diff --git a/system-config-language.spec b/system-config-language.spec
index 29c445f..54ff9ee 100644
--- a/system-config-language.spec
+++ b/system-config-language.spec
@@ -1,24 +1,22 @@
 Summary: A graphical interface for modifying the system language
 Name: system-config-language
 Version: 1.3.5
-Release: 2%{?dist}
+Release: 3%{?dist}
 URL: https://fedorahosted.org/system-config-language/
 Source0: https://fedorahosted.org/releases/s/y/system-config-language/%{name}-%{version}.tar.bz2
 Patch0: s-c-l-624008.patch
 License: GPLv2
 Group: System Environment/Base
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 BuildRequires: desktop-file-utils
 BuildRequires: gettext
 BuildRequires: intltool
 Requires: pygtk2
 Requires: python2
-Requires: usermode >= 1.36
-Requires: usermode-gtk >= 1.36
-Requires: yum >= 2.9.5
-Requires: gtk2 >= 2.6
-Obsoletes: locale_config  <= %{version}
+Requires: usermode
+Requires: usermode-gtk
+Requires: yum
+Requires: gtk2
 
 %description
 system-config-language is a graphical user interface that 
@@ -32,7 +30,6 @@ allows the user to change the default language of the system.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make INSTROOT=$RPM_BUILD_ROOT install
 install $RPM_BUILD_DIR/system-config-language-%{version}/yumhelpers.glade $RPM_BUILD_ROOT%{_datadir}/system-config-language
 
@@ -57,37 +54,35 @@ desktop-file-install --vendor system --delete-original       \
 
 %find_lang %name
 
-%clean
-m -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
-fi
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %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 [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc COPYING
-#%doc doc/*
 %{_bindir}/system-config-language
 %dir %{_datadir}/system-config-language
 %{_datadir}/system-config-language/*
-#%dir %{_datadir}/firstboot/
-#%dir %{_datadir}/firstboot/modules
-#%{_datadir}/firstboot/modules/language.py*
 %{_datadir}/applications/system-config-language.desktop
 %{_datadir}/icons/hicolor/48x48/apps/system-config-language.png
 %config(noreplace) %{_sysconfdir}/pam.d/system-config-language
 %config(noreplace) %{_sysconfdir}/security/console.apps/system-config-language
 
 %changelog
+* Mon Oct 4 2010 Naveen Kumar <nkumar at redhat.com>- 1.3.5-3
+- Spec file updated according to new guidelines
+- resolves bug #624008
+
 * Fri Oct 1 2010 Naveen Kumar <nkumar at redhat.com>- 1.3.5-2
 - resolves bug #624008
 - apply patch s-c-l-624008.patch


More information about the scm-commits mailing list