[dogtail] remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247

Rahul Sundaram sundaram at fedoraproject.org
Sat Feb 23 23:05:36 UTC 2013


commit dc3051c6b63d1cc8a80236c88298eade8212cdd5
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Sat Feb 23 18:05:24 2013 -0500

    remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
    
    - clean up spec to follow current guidelines

 dogtail.spec |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/dogtail.spec b/dogtail.spec
index 1e1864a..993ccda 100644
--- a/dogtail.spec
+++ b/dogtail.spec
@@ -1,7 +1,7 @@
 Summary: GUI test tool and automation framework
 Name: dogtail
 Version: 0.8.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2
 URL: http://dogtail.fedorahosted.org/
 Source0: http://fedorahosted.org/released/dogtail/%{name}-%{version}.tar.gz
@@ -32,30 +32,26 @@ communicate with desktop applications.
 python ./setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
 python ./setup.py install -O2 --root=$RPM_BUILD_ROOT --record=%{name}.files
 rm -rf $RPM_BUILD_ROOT/%{_docdir}/dogtail
 rm -f $RPM_BUILD_ROOT/%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info
 find examples -type f -exec chmod 0644 \{\} \;
 desktop-file-install $RPM_BUILD_ROOT/%{_datadir}/applications/sniff.desktop \
-  --vendor=fedora \
   --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
-  --add-category X-Fedora \
-  --delete-original
 
 %post
-touch --no-create %{_datadir}/icons/hicolor || :
-[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor || :
-[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/*
 %{python_sitelib}/dogtail/
 %{_datadir}/applications/*
@@ -67,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc examples/
 
 %changelog
+* Sat Feb 23 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 0.8.1-4
+- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
+- clean up spec to follow current guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list