[packages/mypaint] add desktop scriptlets; drop bogus ldconfig; add md5

glen glen at pld-linux.org
Thu Sep 26 13:16:55 CEST 2013


commit d8f0da145778ee84ad3f3f04ff727d378dce9ab7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 26 13:51:16 2013 +0300

    add desktop scriptlets; drop bogus ldconfig; add md5

 mypaint.spec | 34 ++++++++++------------------------
 1 file changed, 10 insertions(+), 24 deletions(-)
---
diff --git a/mypaint.spec b/mypaint.spec
index f16c4bb..124b5f4 100644
--- a/mypaint.spec
+++ b/mypaint.spec
@@ -1,14 +1,14 @@
 # TODO:
 # * create devel subpackage
-# * fix lang packaging
 Summary:	MyPaint is a fast and easy open-source graphics application for digital painters
 Summary(pl.UTF-8):	Szybka i łatwa w obsłudze aplikacja dla komputerowych malarzy.
 Name:		mypaint
 Version:	1.1.0
-Release:	0.1
+Release:	1
 License:	GPL
 Group:		X11/Applications/Graphics
 Source0:	http://download.gna.org/mypaint/%{name}-%{version}.tar.bz2
+# Source0-md5:	7846a8406259d0fc81c9a2157a2348bf
 URL:		http://mypaint.intilinux.com/
 BuildRequires:	gettext-devel
 BuildRequires:	json-c-devel
@@ -19,7 +19,8 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(find_lang) >= 1.32
 BuildRequires:	scons
 BuildRequires:	swig-python
-Requires(post,postun):	desktop-file-utils
+Requires:	desktop-file-utils
+Requires:	gtk-update-icon-cache
 Requires:	hicolor-icon-theme
 Requires:	python-numpy-numarray
 Requires:	python-pycairo
@@ -45,7 +46,8 @@ ukrywania interfejsu użytkownika.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%scons prefix=$RPM_BUILD_ROOT%{_prefix} install
+%scons install \
+	prefix=$RPM_BUILD_ROOT%{_prefix}
 
 # unsupported
 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nn_NO
@@ -56,15 +58,11 @@ rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
-umask 022
-[ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 ||:
+%update_desktop_database
 %update_icon_cache hicolor
 
 %postun
-/sbin/ldconfig
-umask 022
-[ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1
+%update_desktop_database
 %update_icon_cache hicolor
 
 %files -f %{name}.lang
@@ -74,18 +72,8 @@ umask 022
 %dir %{_libdir}/mypaint
 %attr(755,root,root) %{_libdir}/mypaint/*_mypaintlib.so
 %{_desktopdir}/mypaint.desktop
-%{_iconsdir}/hicolor/16x16/apps/mypaint.png
-%{_iconsdir}/hicolor/16x16/actions/*.png
-%{_iconsdir}/hicolor/22x22/apps/mypaint.png
-%{_iconsdir}/hicolor/22x22/actions/*.png
-%{_iconsdir}/hicolor/24x24/apps/mypaint.png
-%{_iconsdir}/hicolor/24x24/actions/*.png
-%{_iconsdir}/hicolor/32x32/apps/mypaint.png
-%{_iconsdir}/hicolor/32x32/actions/*.png
-%{_iconsdir}/hicolor/48x48/apps/mypaint.png
-%{_iconsdir}/hicolor/48x48/actions/*.png
-%{_iconsdir}/hicolor/scalable/apps/mypaint.svg
-%{_iconsdir}/hicolor/scalable/actions/*.svg
+%{_iconsdir}/hicolor/*/apps/mypaint.*
+%{_iconsdir}/hicolor/*/actions/*.*
 %dir %{_datadir}/mypaint
 %{_datadir}/mypaint/backgrounds
 %dir %{_datadir}/mypaint/brushes
@@ -95,7 +83,6 @@ umask 022
 %{_datadir}/mypaint/brushes/experimental
 %{_datadir}/mypaint/brushes/ramon
 %{_datadir}/mypaint/brushes/tanda
-#%{_datadir}/mypaint/brushes/FX_blender_prev
 %attr(755,root,root) %{_datadir}/mypaint/brushes/label-brush-mypaint.sh
 %{_datadir}/mypaint/brushes/order.conf
 %{_datadir}/mypaint/brushes/prev-template.xcf.gz
@@ -105,7 +92,6 @@ umask 022
 %{_datadir}/mypaint/brushlib/brushsettings.json
 %attr(755,root,root) %{_datadir}/mypaint/brushlib/generate.py
 %dir %{_datadir}/mypaint/gui
-#%attr(755,root,root) %{_datadir}/mypaint/gui/colorsamplerwindow.py
 %{_datadir}/mypaint/gui/*.xml
 %{_datadir}/mypaint/gui/*.py
 %dir %{_datadir}/mypaint/gui/colors
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mypaint.git/commitdiff/def98e1f48a0d2ca938066a918ab857b6d05526b



More information about the pld-cvs-commit mailing list