rpms/qtiplot/devel qtiplot.spec,1.16,1.17

supercyper supercyper at fedoraproject.org
Fri Jan 29 05:45:55 UTC 2010


Author: supercyper

Update of /cvs/pkgs/rpms/qtiplot/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29736

Modified Files:
	qtiplot.spec 
Log Message:
add mime-info



Index: qtiplot.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qtiplot/devel/qtiplot.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- qtiplot.spec	27 Jan 2010 12:08:16 -0000	1.16
+++ qtiplot.spec	29 Jan 2010 05:45:55 -0000	1.17
@@ -1,7 +1,7 @@
 Name:		qtiplot
 Summary:	Data Analysis and Scientific Plotting
 Version:	0.9.7.11
-Release:	1%{?dist}
+Release:	2%{?dist}
 BuildRequires:	qt4-devel
 BuildRequires:	liborigin2-devel
 BuildRequires:	QTeXEngine-devel
@@ -31,6 +31,7 @@ Group:		Applications/Publishing
 Source0:	http://download.berlios.de/qtiplot/%{name}-%{version}.tar.bz2
 Source1:	http://soft.proindependent.com/misc/colormaps.tgz
 Source2:	%{name}.desktop
+Source3:	%{name}.xml
 #fix build.conf to use system-wide libs and enable CustomInstall
 Patch0:		0-build.conf.patch
 #fix manual building
@@ -46,6 +47,8 @@ Patch5:		5-liborigin2.patch
 #fix qtiplot.pro to use system-wide QTeXEngine
 Patch6:		6-QTeXEngine.patch
 Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires(post):		shared-mime-info
+Requires(postun):	shared-mime-info
 
 %description
 Scientists often need to use data analysis and plotting software.
@@ -124,9 +127,18 @@ find %{buildroot}%{_libdir}/%{name} -typ
 mkdir -p %{buildroot}%{_datadir}/pixmaps
 install -m 0644 -p qtiplot_logo.png %{buildroot}%{_datadir}/pixmaps/qtiplot_logo.png
 
-%post -p /sbin/ldconfig
+#add mime-info
+install -m 0644 -p %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
 
-%postun -p /sbin/ldconfig
+%post
+umask 022
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%postun
+umask 022
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime &> /dev/null || :
 
 %clean
 rm -rf %{buildroot}
@@ -143,6 +155,7 @@ rm -rf %{buildroot}
 %{_bindir}/%{name}
 %{_datadir}/applications/*
 %{_datadir}/pixmaps/*
+%{_datadir}/mime/packages/*
 %{_mandir}/man1/%{name}.1*
 
 %files doc
@@ -152,6 +165,8 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Fri Jan 29 2010 Chen Lei <supercyper at 163.com> - 0.9.7.11-2
+ - add mime-info
 * Sat Jan 23 2010 Chen Lei <supercyper at 163.com> - 0.9.7.11-1
  - upstream to 0.9.7.11
 * Sat Jan 10 2009 Frank Büttner <frank-buettner at gmx.net> - 0.9.7.4-8



More information about the scm-commits mailing list