Skip to content

Commit

Permalink
update debian packaging
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9894 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 23, 2008
1 parent 71f3184 commit e782aca
Show file tree
Hide file tree
Showing 17 changed files with 272 additions and 8 deletions.
11 changes: 11 additions & 0 deletions debian/changelog
@@ -1,3 +1,14 @@
qgis (1.0.0) experimental; urgency=low

* new upstream release
* update qgis.mime
* add qgis.desktop and qgis.xml
* add mime types for KDE
* don't ignore errors in preinst and postrm
* run ldconfig in postrm

-- Jürgen E. Fischer <jef@norbit.de> Tue, 23 Dec 2008 20:42:21 +0100

qgis (1.0preview18) experimental; urgency=low

* add suggestion for gpsbabel
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -22,7 +22,7 @@ Suggests: gpsbabel
Conflicts: uim-qt3
Description: Geographic Information System (GIS)
A Geographic Information System (GIS) manages, analyzes, and displays
databases of geographic information. Quantum GIS (QGIS) supports shapefile
databases of geographic information. Quantum GIS (QGIS) supports shape file
viewing and editing, spatial data storage with PostgreSQL/PostGIS, projection
on-the-fly, map composition, and a number of other features via a plugin
interface. QGIS also supports display of various georeferenced raster and
Expand Down
8 changes: 8 additions & 0 deletions debian/mime/application/x-adobe-mif.desktop
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-adobe-mif
Hidden=false
Comment=Adobe FrameMaker MIF file
Patterns=*.mif;
X-KDE-PatternsAccuracy=51
X-KDE-IsAlso=application/x-mif
7 changes: 7 additions & 0 deletions debian/mime/application/x-esri-crs.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-esri-crs
Hidden=false
Comment=ESRI coordinate reference system
Comment[de]=ESRI-Koordinatenreferenzsystem
Patterns=*.prj;
7 changes: 7 additions & 0 deletions debian/mime/application/x-esri-shape.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-esri-shape
Hidden=false
Comment=ESRI shape file
Comment[de]=ESRI-Shapedatei
Patterns=*.shp;*.shx;
8 changes: 8 additions & 0 deletions debian/mime/application/x-mapinfo-mif.desktop
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-mapinfo-mif
Hidden=false
Comment=MapInfo file
Comment[de]=MapInfo-Datei
Patterns=*.mif;
X-KDE-PatternsAccuracy=60
7 changes: 7 additions & 0 deletions debian/mime/application/x-qgis-layer-settings.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-layer-settings
Hidden=false
Comment=Quantum GIS layer settings
Comment[de]=Quantum GIS Layer Einstellungen
Patterns=*.qml;
8 changes: 8 additions & 0 deletions debian/mime/application/x-qgis-project.desktop
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-project
Hidden=false
Comment=Quantum GIS Project
Comment[de]=Quantum GIS-Projekt
Patterns=*.qgs;
X-KDE-IsAlso=application/x-qgis
7 changes: 7 additions & 0 deletions debian/mime/application/x-raster-aig.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-raster-aig
Hidden=false
Comment=AIG raster data
Comment[de]=AIG-Rasterdaten
Patterns=*.aig;
7 changes: 7 additions & 0 deletions debian/mime/application/x-raster-ecw.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-raster-ecw
Hidden=false
Comment=ECW raster data
Comment[de]=ECW-Rasterdaten
Patterns=*.ecw;
7 changes: 7 additions & 0 deletions debian/mime/application/x-raster-mrsid.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-raster-mrsid
Hidden=false
Comment=MrSID raster data
Comment[de]=MrSID-Rasterdaten
Patterns=*.sid;
5 changes: 5 additions & 0 deletions debian/qgis-plugin-grass.postrm
@@ -1,5 +1,10 @@
#!/bin/sh

set -e

if [ "$1" = "remove" ]; then
dpkg-divert --package qgis-plugin-grass --remove --rename --divert /usr/bin/qgis.bin /usr/bin/qgis
ldconfig
fi

exit 0
4 changes: 4 additions & 0 deletions debian/qgis-plugin-grass.preinst
@@ -1,5 +1,9 @@
#!/bin/sh

set -e

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
dpkg-divert --package qgis-plugin-grass --add --rename --divert /usr/bin/qgis.bin /usr/bin/qgis
fi

exit 0
14 changes: 14 additions & 0 deletions debian/qgis.desktop
@@ -0,0 +1,14 @@
[Desktop Entry]
Type=Application
Name=Quantum GIS
Version=1.0
GenericName=Geographical Information System
GenericName[de]=Geographisches Informationssystem
Icon=qgis-icon
TryExec=/usr/bin/qgis
Exec=/usr/bin/qgis %F
Encoding=UTF-8
Terminal=false
StartupNotify=false
Categories=Qt;Science;GIS;OSGeo;
MimeType=application/x-qgis-project;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
11 changes: 11 additions & 0 deletions debian/qgis.install
Expand Up @@ -34,3 +34,14 @@ usr/lib/qgis/libdxf2shpconverterplugin.so
usr/lib/qgis/libinterpolationplugin.so
usr/lib/qgis/libogrconverterplugin.so
usr/lib/qgis/libcoordinatecaptureplugin.so
../qgis.desktop usr/share/applications
../qgis.xml usr/share/mime/packages
../mime/application/x-esri-shape.desktop usr/share/mimelnk/application
../mime/application/x-mapinfo-mif.desktop usr/share/mimelnk/application
../mime/application/x-esri-crs.desktop usr/share/mimelnk/application
../mime/application/x-raster-ecw.desktop usr/share/mimelnk/application
../mime/application/x-adobe-mif.desktop usr/share/mimelnk/application
../mime/application/x-raster-aig.desktop usr/share/mimelnk/application
../mime/application/x-qgis-project.desktop usr/share/mimelnk/application
../mime/application/x-raster-mrsid.desktop usr/share/mimelnk/application
../mime/application/x-qgis-layer-settings.desktop usr/share/mimelnk/application
15 changes: 8 additions & 7 deletions debian/qgis.mime
@@ -1,7 +1,8 @@
application/shp; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/mif; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/jpg; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/tif; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/aig; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/ecw; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
application/sid; qgis '%s'; edit=qgis '%s'; test=test "$DISPLAY" != ""; priority=2
image/tif; qgis '%s'; description="TIFF Image"; test=test -n "$DISPLAY"; nametemplate=%s.tif; priority=2
image/jpg; qgis '%s'; description="JPEG Image"; test=test -n "$DISPLAY"; nametemplate=%s.jpg; priority=2
image/jp2; qgis '%s'; description="JPEP 2000 Image"; test=test -n "$DISPLAY"; nametempalte=%s.jp2; priority=2
application/aig; qgis '%s'; description="AIG raster data"; test=test -n "$DISPLAY"; nametemplate=%s.aig; priority=2
application/ecw; qgis '%s'; description="ECW raster data"; test=test -n "$DISPLAY"; nametemplate=%s.ecw; priority=2
application/sid; qgis '%s'; description="MrSID raster data"; test=test -n "$DISPLAY"; nametemplate=%s.sid; priority=2
application/mif; qgis '%s'; description="MapInfo file"; test=test -n "$DISPLAY"; nametemplate=%s.mif; priority=2
application/x-qgis; qgis '%s'; description="Quantum GIS Project"; test=test -n "$DISPLAY"; nametemplate=%s.qgs
152 changes: 152 additions & 0 deletions debian/qgis.xml
@@ -0,0 +1,152 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>

<mime-type type="application/x-qgis-project">
<comment>Quantum GIS Project</comment>
<comment xml:lang="de">Quantum GIS-Projekt</comment>
<sub-class-of type="application/xml"/>
<alias type="application/x-qgis"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis projectname"/>
</match>
</magic>
<glob pattern="*.qgs"/>
</mime-type>

<mime-type type="application/x-qgis-layer-settings">
<comment>Quantum GIS layer settings</comment>
<comment xml:lang="de">Quantum GIS Layer Einstellungen</comment>
<sub-class-of type="application/xml"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qml"/>
</mime-type>

<mime-type type="application/x-esri-shape">
<comment>ESRI shape file</comment>
<comment xml:lang="de">ESRI-Shapedatei</comment>
<magic priority="100">
<match type="big32" offset="0" value="9994">
<match type="big32" offset="4" value="0">
<match type="big32" offset="8" value="0">
<match type="big32" offset="12" value="0">
<match type="big32" offset="16" value="0">
<match type="big32" offset="20" value="0">
<match type="big32" offset="28" value="1000"/>
</match>
</match>
</match>
</match>
</match>
</match>
</magic>
<glob pattern="*.shp"/>
<glob pattern="*.shx"/>
</mime-type>

<mime-type type="application/x-esri-crs">
<comment>ESRI coordinate reference system</comment>
<comment xml:lang="de">ESRI-Koordinatenreferenzsystem</comment>
<magic>
<match type="string" offset="0" value="GEOGCS["/>
<match type="string" offset="0" value="PROJCS["/>
<match type="string" offset="0" value="LOCAL_CS["/>
</magic>
<glob pattern="*.prj"/>
</mime-type>

<mime-type type="image/tiff">
<comment>TIFF raster data</comment>
<comment xml:lang="de">TIFF-Rasterdaten</comment>
<magic priority="50">
<match type="string" offset="0" value="MM">
<match type="little16" offset="2" value="42"/>
</match>
<match type="string" offset="0" value="MM">
<match type="big16" offset="2" value="42"/>
</match>
</magic>
<glob pattern="*.tiff"/>
<glob pattern="*.tif"/>
</mime-type>

<mime-type type="image/jpeg">
<comment>JPEG raster data</comment>
<comment xml:lang="de">JPEG-Rasterdaten</comment>
<magic priority="50">
<match type="big16" offset="0" value="65496"/>
</magic>
<glob pattern="*.jpeg"/>
<glob pattern="*.jpg"/>
</mime-type>

<mime-type type="image/jp2">
<comment>JPEG2000 raster data</comment>
<comment xml:lang="de">JPEG2000-Rasterdaten</comment>
<magic priority="50">
<match type="little32" offset="0" value="12">
<match type="string" offset="8" value="jP">
<match type="byte" offset="10" value="32">
<match type="byte" offset="11" value="32">
<match type="byte" offset="12" value="13">
<match type="byte" offset="13" value="10">
<match type="byte" offset="14" value="135">
<match type="byte" offset="13" value="10"/>
</match>
</match>
</match>
</match>
</match>
</match>
</match>
</magic>
<glob pattern="*.jp2"/>
<glob pattern="*.j2k"/>
</mime-type>

<mime-type type="application/x-raster-aig">
<comment>AIG raster data</comment>
<comment xml:lang="de">AIG-Rasterdaten</comment>
<glob pattern="*.aig"/>
</mime-type>

<mime-type type="application/x-raster-ecw">
<comment>ECW raster data</comment>
<comment xml:lang="de">ECW-Rasterdaten</comment>
<glob pattern="*.ecw"/>
</mime-type>

<mime-type type="application/x-raster-mrsid">
<comment>MrSID raster data</comment>
<comment xml:lang="de">MrSID-Rasterdaten</comment>
<glob pattern="*.sid"/>
</mime-type>

<mime-type type="application/x-mapinfo-mif">
<comment>MapInfo file</comment>
<comment xml:lang="de">MapInfo-Datei</comment>
<magic priority="51">
<match type="string" offset="0" value="VERSION">
<match type="string" offset="0:512" value="COLUMNS"/>
<match type="string" offset="0:512" value="DATA">
</match>
</match>
</magic>
<glob weight="60" pattern="*.mif"/>
</mime-type>

<!-- .mif is just not good enough -->
<mime-type type="application/x-adobe-mif">
<alias type="application/x-mif"/>
<comment>Adobe FrameMaker MIF file</comment>
<magic priority="100">
<match type="string" offset="0" value="&lt;MIFFile"/>
</magic>
<glob weight="51" pattern="*.mif"/>
</mime-type>

</mime-info>

0 comments on commit e782aca

Please sign in to comment.