]> git.pld-linux.org Git - packages/mypaint.git/commitdiff
revert overwrites from def98e1
authorElan Ruusamäe <glen@delfi.ee>
Thu, 26 Sep 2013 11:57:58 +0000 (14:57 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 26 Sep 2013 11:57:58 +0000 (14:57 +0300)
mypaint.spec

index f3b5fdf2aa94190b7a03d6f2585cd47905388e57..075f15a95f0383732df09e29f05353029f0c4be7 100644 (file)
@@ -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: gtk+2-devel
@@ -22,7 +22,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
@@ -48,7 +49,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
@@ -59,15 +61,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
@@ -77,18 +75,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
@@ -98,7 +86,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
@@ -108,7 +95,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
This page took 0.181064 seconds and 4 git commands to generate.