mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Update qgis-mime.xml for RPM, replace wrong ext in buildrpms.sh
This commit is contained in:
parent
3caf61a896
commit
524c7915e8
@ -103,7 +103,7 @@ then
|
||||
|
||||
print_info "Creating source tarball"
|
||||
# Create source tarball
|
||||
git -C .. archive --format=tar --prefix=qgis-$version/ $BRANCH | bzip2 > sources/qgis-$version.tar.gz
|
||||
git -C .. archive --format=tar --prefix=qgis-$version/ $BRANCH | bzip2 > sources/qgis-$version.tar.bz2
|
||||
|
||||
print_info "Creating source package"
|
||||
# Create spec file
|
||||
|
@ -227,12 +227,19 @@ install -pm0644 %{SOURCE5} \
|
||||
# Install application and MIME icons
|
||||
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do
|
||||
install -pd %{buildroot}%{_datadir}/icons/hicolor/$size/apps
|
||||
install -pm0644 debian/icons/%{name}-icon$size.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/qgis.png
|
||||
install -pm0644 debian/icons/%{name}-icon${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
|
||||
done
|
||||
|
||||
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128; do
|
||||
for ext in qgs qlr qml qpt; do
|
||||
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do
|
||||
install -pd %{buildroot}%{_datadir}/icons/hicolor/$size/apps
|
||||
install -pm0644 debian/icons/%{name}-${ext}${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}-${ext}.png
|
||||
done
|
||||
done
|
||||
|
||||
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do
|
||||
install -pd %{buildroot}%{_datadir}/icons/hicolor/$size/mimetypes
|
||||
install -pm0644 debian/icons/qgis-mime-icon$size.png %{buildroot}%{_datadir}/icons/hicolor/$size/mimetypes/qgis-mime.png
|
||||
install -pm0644 debian/icons/qgis-mime-icon${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}/mimetypes/qgis-mime.png
|
||||
done
|
||||
|
||||
install -pd %{buildroot}%{_datadir}/pixmaps
|
||||
|
@ -6,7 +6,7 @@
|
||||
<comment xml:lang="de">QGIS-Projekt</comment>
|
||||
<sub-class-of type="application/xml"/>
|
||||
<alias type="application/x-qgis"/>
|
||||
<icon name="qgis-mime"/>
|
||||
<icon name="qgis-qgs"/>
|
||||
<magic priority="50">
|
||||
<match type="string" offset="0" value="<!DOCTYPE qgis">
|
||||
<match type="string" offset="0:256" value="<qgis projectname"/>
|
||||
@ -17,9 +17,9 @@
|
||||
|
||||
<mime-type type="application/x-qgis-layer-settings">
|
||||
<comment>QGIS layer settings</comment>
|
||||
<comment xml:lang="de">QGIS Layer Einstellungen</comment>
|
||||
<comment xml:lang="de">QGIS-Layereinstellungen</comment>
|
||||
<sub-class-of type="application/xml"/>
|
||||
<icon name="qgis-mime"/>
|
||||
<icon name="qgis-qml"/>
|
||||
<magic priority="50">
|
||||
<match type="string" offset="0" value="<!DOCTYPE qgis">
|
||||
<match type="string" offset="0:256" value="<qgis version"/>
|
||||
@ -27,4 +27,31 @@
|
||||
</magic>
|
||||
<glob pattern="*.qml"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-qgis-layer-definition">
|
||||
<comment>QGIS layer definition</comment>
|
||||
<comment xml:lang="de">QGIS-Layerdefinition</comment>
|
||||
<sub-class-of type="application/xml"/>
|
||||
<icon name="qgis-qlr"/>
|
||||
<magic priority="50">
|
||||
<match type="string" offset="0" value="<!DOCTYPE qgis">
|
||||
<match type="string" offset="0:256" value="<qgis version"/>
|
||||
</match>
|
||||
</magic>
|
||||
<glob pattern="*.qlr"/>
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="application/x-qgis-composer-template">
|
||||
<comment>QGIS composer template</comment>
|
||||
<comment xml:lang="de">QGIS-Druckzusammenstellungsvorlage</comment>
|
||||
<sub-class-of type="application/xml"/>
|
||||
<icon name="qgis-qpt"/>
|
||||
<magic priority="50">
|
||||
<match type="string" offset="0" value="<!DOCTYPE qgis">
|
||||
<match type="string" offset="0:256" value="<qgis version"/>
|
||||
</match>
|
||||
</magic>
|
||||
<glob pattern="*.qpt"/>
|
||||
</mime-type>
|
||||
|
||||
</mime-info>
|
||||
|
Loading…
x
Reference in New Issue
Block a user