Author: japhy                        Date: Sun Apr  9 15:13:47 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Updated .desktop to set MIME types
- Update desktop and MIME databases, R: accordingly
- BR: sorted
- Rel 1

---- Files affected:
SPECS:
   mtpaint.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/mtpaint.spec
diff -u SPECS/mtpaint.spec:1.1 SPECS/mtpaint.spec:1.2
--- SPECS/mtpaint.spec:1.1      Sun Apr  9 15:17:25 2006
+++ SPECS/mtpaint.spec  Sun Apr  9 17:13:42 2006
@@ -4,22 +4,24 @@
 Summary(pl):   Prosty program graficzny
 Name:          mtpaint
 Version:       2.30
-Release:       0.1
+Release:       1
 License:       GPL v2
 Group:         X11/Applications/Graphics
 Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
 # Source0-md5: 8582e791cf781d2f6ba85460823da247
 Source1:       %{name}.desktop
 URL:           http://mtpaint.sourceforge.net/
+BuildRequires: gettext-devel
+BuildRequires: giflib-devel
 BuildRequires: gtk+2-devel
 BuildRequires: libjpeg-devel
-BuildRequires: libtiff-devel
-BuildRequires: giflib-devel
 BuildRequires: libpng-devel
-BuildRequires: zlib-devel
-BuildRequires: gettext-devel
+BuildRequires: libtiff-devel
 BuildRequires: perl-tools-pod
 BuildRequires: sed >= 4.0
+BuildRequires: zlib-devel
+Requires:      desktop-file-utils
+Requires:      shared-mime-info
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -57,6 +59,19 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database_post
+umask 022
+update-mime-database %{_datadir}/mime ||:
+
+
+%postun
+%update-desktop-database-postun
+if [ $1 = 0 ]; then
+        umask 022
+        update-mime-database %{_datadir}/mime
+fi
+
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -73,6 +88,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/04/09 15:13:42  japhy
+- Updated .desktop to set MIME types
+- Update desktop and MIME databases, R: accordingly
+- BR: sorted
+- Rel 1
+
 Revision 1.1  2006/04/09 13:17:25  japhy
 - New spec file.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mtpaint.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to