Restore the mime defintion file pspp.xml
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 18 Oct 2020 08:15:35 +0000 (10:15 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2020 06:54:47 +0000 (08:54 +0200)
Commit 8ec823cac8dd9eee5d0ad6cee9d001b9fdb673ba inadvertently
removed pspp.xml - the mime definition file.  This change
restores it and also takes it out of the gui definition directory.

Makefile.am
doc/automake.mk
pspp.xml [new file with mode: 0644]

index ae48d1ac68a208881e616fa813db8ce0ccd9edfa..908885e669f63a42818ecd377e2f6cc7fd51853f 100644 (file)
@@ -163,3 +163,10 @@ PHONY += dist-hook-git dummy-prerequisistes
 -include dummy-prerequisistes
 
 dummy-prerequisistes: $(BUILT_SOURCES) gl/libgl.la
+
+\f
+
+mimedir = $(datadir)/mime/packages
+mime_DATA =pspp.xml
+EXTRA_DIST += pspp.xml
+
index ccff271ef339b2148a53f972808e8bef116948da..0c5493f685e7e1ac11bce75decb7ed15df2a1772 100644 (file)
@@ -181,7 +181,6 @@ install-html-local: html-local
 
 \f
 
-mimedir = $(datadir)/mime/packages
 desktopdir = $(datadir)/applications
 
 doc/org.fsf.pspp.metainfo.xml: doc/org.fsf.pspp.metainfo.xml.in $(POFILES)
diff --git a/pspp.xml b/pspp.xml
new file mode 100644 (file)
index 0000000..4f925c4
--- /dev/null
+++ b/pspp.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/x-spss-sps">
+    <comment>SPSS syntax file</comment>
+    <acronym>SPSS</acronym>
+    <expanded-acronym>Statistical Package for the Social Sciences</expanded-acronym>
+    <glob pattern="*.sps"/>
+  </mime-type>
+  <mime-type type="application/x-spss-spv">
+    <comment>SPSS output file</comment>
+    <acronym>SPSS</acronym>
+    <expanded-acronym>Statistical Package for the Social Sciences</expanded-acronym>
+    <glob pattern="*.spv"/>
+  </mime-type>
+</mime-info>
+