OBS User unknown 2007-01-08 16:52:47 +00:00 committed by Git OBS Bridge
commit 6aa759d711
9 changed files with 930 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

255
mime-info-to-mime Normal file
View File

@ -0,0 +1,255 @@
#! /usr/bin/perl
# mime-info-to-mime
# Script to help with conversion from mime-info to shared-mime-info.
#
# Conversion for simple description is automatic and correct, for
# complicated or buggy descriptions, manual check is required (and
# convertor returns error code 1).
#
# Call it without arguments to perform conversion of all files in your
# system (previously installed files will not be overwritten) or use
# DESTDIR variable, if you want to create package.
#
# (c) 2004 SuSE CR
# Author: Stanislav Brabec <sbrabec@suse.cz>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# directory with mime-info
$mimeinfodir=$ENV{"DESTDIR"} . "/usr/share/mime-info";
# directory with shared-mime-info
$sharedmimedir=$ENV{"DESTDIR"} . "/usr/share/mime/packages";
$rc=0;
system "mkdir -p $sharedmimedir ; rm -v 2>/dev/null \$(fgrep 2>/dev/null -l \"generated by mime-info-to-mime\" $sharedmimedir/*.xml)";
foreach $mimefile (glob("$mimeinfodir/*.mime")) {
$mimename = $mimefile;
$mimename=substr($mimename, length($mimeinfodir)+1, length($mimename)-length($mimeinfodir)-6);
if (-e "$sharedmimedir/$mimename.xml")
{
print "WARNING: File $sharedmimedir/$mimename.xml already exists. No conversion.\n";
next;
}
# Maybe uncomment in future, but now gnome-vfs.xml is 4 times longer than freedesktop.org.xml.
# GNOME 2
# if ( $mimename =~ "gnome-vfs" )
# {
# print "INFO: Not creating gnome-vfs.xml. Data types should be present in freedesktop.org.xml.\n";
# next;
# }
# GNOME 1.4
# if ( $mimename =~ "gnome" )
# {
# print "INFO: Not creating gnome.xml. Data types should be present in freedesktop.org.xml.\n";
# next;
# }
open($xml, ">$sharedmimedir/$mimename.xml");
print $xml "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print $xml "<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">\n";
print $xml "<!-- generated by mime-info-to-mime (Remove this line to prevent overwriting!) -->\n";
open($mime, "<$mimefile");
$lineno=0;
while ( <$mime> )
{
$lineno++;
$line = $_;
if ($line =~ /^[^ \t]+\/[^ \t]+/)
{
chomp $line;
$mime_type=$line;
}
else
{
if ($line =~ /^[ \t]/)
{
if ($line =~ /^[ \t]+ext:[ \t]?/)
{
$line =~ s/^[ \t]+ext:[ \t]?// ;
chomp $line;
foreach $ext (split " ", $line)
{
$xmlstring{$mime_type}=$xmlstring{$mime_type} . " <glob pattern=\"*.$ext\" />\n";
}
}
else
{
if ($line =~ /^[ \t]+ext,[0-9]+:[ \t]?/)
{
$line =~ s/^[ \t]+ext,[0-9]+:[ \t]?// ;
chomp $line;
print "WARNING in $mimename.mime $lineno: priority field ignored: $line\n";
foreach $ext (split " ", $line)
{
$xmlstring{$mime_type}=$xmlstring{$mime_type} . " <glob pattern=\"*.$ext\" />\n";
}
}
else
{
if ($line =~ /^[ \t]+regex:[ \t]?/)
{
$line =~ s/^[ \t]+regex:[ \t]?// ;
chomp $line;
print "ERROR in $mimename.mime $lineno: regex is not supported, FIXME(regex) created. Edit file manually.\n";
$rc=1;
$xmlstring{$mime_type}=$xmlstring{$mime_type} . " <glob pattern=\"FIXME(regex) $line\" />\n";
}
else
{
if ($line =~ /^[ \t]+regex,[0-9]+:[ \t]?/)
{
$line =~ s/^[ \t]+regex,[0-9]+:[ \t]?// ;
chomp $line;
print "WARNING in $mimename.mime $lineno: priority field ignored: $line\n";
print "ERROR in $mimename.mime $lineno: regex is not supported, FIXME(regex) created. Edit file manually.\n";
$rc=1;
$xmlstring{$mime_type}=$xmlstring{$mime_type} . " <glob pattern=\"FIXME(regex) $line\" />\n";
}
else
{
print "ERROR in $mimename.mime $lineno: unknown line format: $line\n";
$rc=1;
}
}
}
}
}
else
{
if ($line =~ /^$/)
{
$mime_type="FIXME";
}
else
{
chomp $line;
if ($line =~ /^#/ )
{
$line =~ s/^#*[ \t]*// ;
print $xml "<!-- $line -->\n";
}
else
{
print "ERROR in $mimename.mime $lineno: unknown line: $line\n";
$rc=1;
}
}
}
}
}
close($mime);
if (-e "$mimeinfodir/$mimename.keys")
{
open($keys, "<$mimeinfodir/$mimename.keys");
$lineno=0;
while ( <$keys> )
{
$lineno++;
$line = $_;
if ($line =~ /^[^ \t]+\/[^ \t]+/)
{
chomp $line;
$mime_type=$line;
}
else
{
if ($line =~ /^[ \t]/)
{
chomp $line;
$line =~ s/^[ \t]*// ;
if ($line =~ /^\[[^=]+\][^=]+=/)
{
$lang=$line;
$lang =~ s/^\[([^=]+)\][^=]+=.*$/\1/ ;
$item=$line;
$item =~ s/^\[[^=]+\]([^=]+)=.*$/\1/ ;
$value=$line;
$value =~ s/^\[[^=]+\][^=]+=(.*)$/\1/ ;
}
else
{
if ($line =~ /^[^=]+=/)
{
$item=$line;
$item =~ s/^([^=]+)=.*$/\1/ ;
$value=$line;
$value =~ s/^[^=]+=(.*)$/\1/ ;
$lang="";
}
else
{
print "ERROR in $mimename.keys $lineno: unknown line format: $line\n";
$rc=1;
}
}
if ($item =~ /^description$/)
{
if ($lang)
{
$xmlstring_c{$mime_type}=$xmlstring_c{$mime_type} . " <comment xml:lang=\"$lang\">$value</comment>\n";
}
else
{
$xmlstring_c{$mime_type}=$xmlstring_c{$mime_type} . " <comment>$value</comment>\n";
}
}
}
else
{
if ($line =~ /^$/)
{
$mime_type="FIXME";
}
else
{
chomp $line;
if ($line =~ /^#/ )
{
$line =~ s/^#*[ \t]*// ;
print $xml "<!-- $line -->\n";
}
else
{
print "ERROR in $mimename.keys $lineno: unknown line: $line\n";
$rc=1;
}
}
}
}
}
close($keys);
}
foreach $mime_type (keys %xmlstring) {
print $xml " <mime-type type=\"$mime_type\">\n";
print $xml $xmlstring_c{$mime_type};
print $xml $xmlstring{$mime_type};
print $xml " </mime-type>\n";
}
print $xml "</mime-info>\n";
close($xml);
undef %xmlstring;
undef %xmlstring_c;
}
exit $rc;

0
ready Normal file
View File

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f64b5570ec934ddc854cda6535661a9f220577b6096300bbddf7c5cc3a370d5
size 403316

155
shared-mime-info-po.patch Normal file
View File

@ -0,0 +1,155 @@
https://bugs.freedesktop.org/show_bug.cgi?id=2178
================================================================================
--- po/cs.po
+++ po/cs.po
@@ -617,6 +617,10 @@
msgid "MP3 playlist"
msgstr "Seznam skladeb MP3"
+#: freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Zvuk WMA"
+
#: freedesktop.org.xml.in.h:151
msgid "MPEG video"
msgstr "Video MPEG"
--- po/de.po
+++ po/de.po
@@ -588,6 +588,10 @@
msgid "MP3 playlist"
msgstr "MP3-Wiedergabeliste"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "WMA Audio"
+
#: ../freedesktop.org.xml.in.h:144
msgid "MPEG video"
msgstr "MPEG-Video"
--- po/es.po
+++ po/es.po
@@ -625,6 +625,10 @@
msgid "MP3 playlist"
msgstr "Lista de reproducción MP3"
+#: freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Audio WMA"
+
#: freedesktop.org.xml.in.h:151
msgid "MPEG video"
msgstr "Vídeo MPEG"
--- po/fi.po
+++ po/fi.po
@@ -551,6 +551,10 @@
msgid "MP3 playlist"
msgstr "MP3-soittolista"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Audio WMA"
+
#: ../freedesktop.org.xml.in.h:135
msgid "MP4 audio"
msgstr "MP4-ääni"
--- po/hu.po
+++ po/hu.po
@@ -615,6 +615,10 @@
msgid "MP3 playlist"
msgstr "MP3-lejátszólista"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "WMA-hang"
+
#: freedesktop.org.xml.in.h:151
msgid "MPEG video"
msgstr "MPEG-videó"
@@ -1658,9 +1662,6 @@
#~ msgid "Musepack audio data"
#~ msgstr "Musepack hangadatok"
-#~ msgid "WMA audio"
-#~ msgstr "WMA hang"
-
#~ msgid "Andrew Toolkit inset"
#~ msgstr "Andrew Toolkit-inset"
--- po/it.po
+++ po/it.po
@@ -620,6 +620,10 @@
msgid "MP3 playlist"
msgstr "Scaletta MP3"
+#: freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Audio WMA"
+
#: freedesktop.org.xml.in.h:151
msgid "MPEG video"
msgstr "Video MPEG"
--- po/ja.po
+++ po/ja.po
@@ -555,6 +555,10 @@
msgid "MP3 playlist"
msgstr "MP3 演奏リスト"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "WMAオーディオ"
+
#: ../freedesktop.org.xml.in.h:135
#, fuzzy
msgid "MP4 audio"
--- po/pl.po
+++ po/pl.po
@@ -556,6 +556,10 @@
msgid "MP3 playlist"
msgstr "Lista odtwarzania MP3"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Dźwięk WMA"
+
#: ../freedesktop.org.xml.in.h:135
#, fuzzy
msgid "MP4 audio"
--- po/pt_BR.po
+++ po/pt_BR.po
@@ -553,6 +553,10 @@
msgid "MP3 playlist"
msgstr "Lista de Reprodução MP3"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "Áudio WMA"
+
#: ../freedesktop.org.xml.in.h:135
#, fuzzy
msgid "MP4 audio"
--- po/zh_CN.po
+++ po/zh_CN.po
@@ -553,6 +553,10 @@
msgid "MP3 playlist"
msgstr "MP3 播放列表"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "WMA 音频"
+
#: ../freedesktop.org.xml.in.h:135
#, fuzzy
msgid "MP4 audio"
--- po/zh_TW.po
+++ po/zh_TW.po
@@ -555,6 +555,10 @@
msgid "MP3 playlist"
msgstr "MP3 播放清單"
+#: ../freedesktop.org.xml.in.h:317
+msgid "WMA audio"
+msgstr "WMA 音訊"
+
#: ../freedesktop.org.xml.in.h:135
msgid "MP4 audio"
msgstr "MP4 音效"

181
shared-mime-info-raw.patch Normal file
View File

@ -0,0 +1,181 @@
https://bugs.freedesktop.org/show_bug.cgi?id=4117
================================================================================
--- freedesktop.org.xml.in
+++ freedesktop.org.xml.in
@@ -2179,34 +2179,165 @@
<glob pattern="*.pict1"/>
<glob pattern="*.pict2"/>
</mime-type>
- <mime-type type="image/x-minolta-mrw">
- <comment>Minolta raw image</comment>
- <glob pattern="*.mrw" />
- </mime-type>
+ <mime-type type="application/x-ufraw">
+ <sub-class-of type="text/xml"/>
+ <comment>UFRaw ID file</comment>
+ <acronym>UFRaw</acronym>
+ <expanded-acronym>Unidentified Flying Raw</expanded-acronym>
+ <glob pattern="*.ufraw"/>
+ </mime-type>
+ <mime-type type="image/x-dcraw">
+ <comment>Digital raw image</comment>
+ <acronym>DCRaw</acronym>
+ <expanded-acronym>Digital camera Raw</expanded-acronym>
+ <glob pattern="*.bay" />
+ <glob pattern="*.bmq" />
+ <glob pattern="*.cs1" />
+ <glob pattern="*.dc2" />
+ <glob pattern="*.fff" />
+ <glob pattern="*.k25" />
+ <glob pattern="*.mos" />
+ <glob pattern="*.rdc" />
+ </mime-type>
+ <mime-type type="image/x-adobe-dng">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <comment>Adobe Digital Negative</comment>
+ <acronym>DNG</acronym>
+ <expanded-acronym>Digital Negative</expanded-acronym>
+ <glob pattern="*.dng"/>
+ </mime-type>
+ <!-- Canon has 2 format: CRW and CR2 -->
<mime-type type="image/x-canon-crw">
+ <sub-class-of type="image/x-dcraw"/>
<comment>Canon raw image</comment>
+ <acronym>CRW</acronym>
+ <expanded-acronym>Canon RaW</expanded-acronym>
+ <!-- CRW is easy -->
+ <magic priority="60">
+ <match value="II\x1a\x00\x00\x00HEAPCCDR" type="string" offset="0"/>
+ </magic>
<glob pattern="*.crw"/>
+ </mime-type>
+ <mime-type type="image/x-canon-cr2">
+ <sub-class-of type="image/x-dcraw"/>
+ <!-- CR2 is a TIFF -->
+ <sub-class-of type="image/tiff"/>
+ <comment>Canon raw image</comment>
+ <acronym>CR2</acronym>
+ <expanded-acronym>Canon Raw 2</expanded-acronym>
<glob pattern="*.cr2"/>
</mime-type>
- <mime-type type="image/x-nikon-nef">
- <comment>Nikon raw image</comment>
- <glob pattern="*.nef"/>
+ <mime-type type="image/x-fuji-raf">
+ <sub-class-of type="image/x-dcraw"/>
+ <comment>Fuji raw image</comment>
+ <acronym>RAF</acronym>
+ <expanded-acronym>RAw Format</expanded-acronym>
+ <glob pattern="*.raf"/>
</mime-type>
<mime-type type="image/x-kodak-dcr">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
<comment>Kodak raw image</comment>
+ <acronym>DCR</acronym>
+ <expanded-acronym>Digital Camera Raw</expanded-acronym>
<glob pattern="*.dcr"/>
</mime-type>
- <mime-type type="image/x-kodak-kdc">
+ <mime-type type="image/x-kodak-kdc">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
<comment>Kodak raw image</comment>
+ <acronym>KDC</acronym>
+ <expanded-acronym>Kodak Digital Camera</expanded-acronym>
<glob pattern="*.kdc"/>
</mime-type>
+ <mime-type type="image/x-minolta-mrw">
+ <sub-class-of type="image/x-dcraw"/>
+ <comment>Minolta raw image</comment>
+ <acronym>MRW</acronym>
+ <expanded-acronym>Minolta RaW</expanded-acronym>
+ <magic priority="50">
+ <match value="\x00MRM" type="string" offset="0"/>
+ </magic>
+ <glob pattern="*.mrw"/>
+ </mime-type>
+ <mime-type type="image/x-nikon-nef">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <comment>Nikon raw image</comment>
+ <acronym>NEF</acronym>
+ <expanded-acronym>Nikon Electronic Format</expanded-acronym>
+ <glob pattern="*.nef"/>
+ </mime-type>
<mime-type type="image/x-olympus-orf">
+ <sub-class-of type="image/x-dcraw"/>
<comment>Olympus raw image</comment>
+ <acronym>ORF</acronym>
+ <expanded-acronym>Olympus Raw Format</expanded-acronym>
+ <magic priority="50">
+ <!-- an ORF file is basically a TIFF file with a non standard
+ header IIRO which is not nice since it is only composed
+ of ASCII codes. Fortunately, the TIFF header is followed
+ by the offset of the first TIFF ifd which is always
+ 0x00000008 (Little endian) for an ORF -->
+ <match value="IIRO\x08\x00\x00\x00" type="string" offset="0"/>
+ </magic>
<glob pattern="*.orf"/>
</mime-type>
- <mime-type type="image/x-fuji-raf">
- <comment>Fuji raw image</comment>
- <glob pattern="*.raf"/>
+ <mime-type type="image/x-panasonic-raw">
+ <sub-class-of type="image/x-dcraw"/>
+ <comment>Panasonic raw image</comment>
+ <magic priority="50">
+ <!-- Some kind of TIFF file with a non-standard version in prefix -->
+ <match value="IIU\x00\x08\x00\x00\x00" type="string" offset="0"/>
+ </magic>
+ <glob pattern="*.raw"/>
+ </mime-type>
+ <mime-type type="image/x-pentax-pef">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <comment>Pentax raw image</comment>
+ <acronym>PEF</acronym>
+ <expanded-acronym>Pentax Electronic Format</expanded-acronym>
+ <glob pattern="*.pef"/>
+ </mime-type>
+ <mime-type type="image/x-sigma-x3f">
+ <sub-class-of type="image/x-dcraw"/>
+ <comment>Sigma raw image</comment>
+ <acronym>X3F</acronym>
+ <expanded-acronym>X3 Foveon</expanded-acronym>
+ <magic priority="50">
+ <!-- The header is "FOVb" (Foveon) -->
+ <match value="FOVb" type="string" offset="0">
+ <!-- Followed by a 32bit LSB specifying the version number (major.minor) -->
+ <match value="0x00FF00FF" type="little32" offset="4" mask="0xFF00FF00"/>
+ </match>
+ </magic>
+ <glob pattern="*.x3f"/>
+ </mime-type>
+ <mime-type type="image/x-sony-srf">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <acronym>SRF</acronym>
+ <expanded-acronym>Sony Raw Format</expanded-acronym>
+ <comment>Sony raw image</comment>
+ <glob pattern="*.srf"/>
+ </mime-type>
+ <mime-type type="image/x-sony-sr2">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <acronym>SR2</acronym>
+ <expanded-acronym>Sony Raw format 2</expanded-acronym>
+ <comment>Sony raw image</comment>
+ <glob pattern="*.sr2"/>
+ </mime-type>
+ <mime-type type="image/x-sony-arw">
+ <sub-class-of type="image/x-dcraw"/>
+ <sub-class-of type="image/tiff"/>
+ <acronym>ARW</acronym>
+ <expanded-acronym>Alpha Raw format</expanded-acronym>
+ <comment>Sony raw image</comment>
+ <glob pattern="*.arw"/>
</mime-type>
<mime-type type="image/png">
<_comment>PNG image</_comment>

149
shared-mime-info.changes Normal file
View File

@ -0,0 +1,149 @@
-------------------------------------------------------------------
Mon Jan 8 16:45:30 CET 2007 - sbrabec@suse.cz
- Spec file cleanup.
-------------------------------------------------------------------
Wed Jan 3 19:25:52 CET 2007 - sbrabec@suse.cz
- Use /usr/share/mime-info in mime-info-to-mime.
-------------------------------------------------------------------
Tue Nov 14 15:43:56 CET 2006 - sbrabec@suse.cz
- Reduced BuildRequires.
-------------------------------------------------------------------
Mon Oct 30 15:17:12 CET 2006 - sbrabec@suse.cz
- Updated and fixed camera raw MIME types (freedesktop#8170).
-------------------------------------------------------------------
Thu Sep 14 11:31:39 CEST 2006 - sbrabec@suse.cz
- Fixed camera raw MIME types (freedesktop#4117).
-------------------------------------------------------------------
Fri Sep 8 13:05:56 CEST 2006 - sbrabec@suse.cz
- Updated to version 0.19:
* Add *.qtl to video/quicktime
* Add *.wax to audio/x-ms-asx
* Add *.mpga to audio/mpeg
* Add audio/x-ms-wma (Windows Media Audio)
* Add application/xspf+xml (XSPF playlist)
* Add a lot of subclassing information
* Fix the RSS mime-types
* Fix *.asx files' mime-type
* Avoid audio/x-ms-asx files being detected as HTML
* Avoid application/pdf files being detected as Matlab documents
* Clarify C, C++, C# and ObjC mime-types
* Add application/powerpoint and application/mspowerpoint as aliases for
Powerpoint
* Add VHDL mime-type
* Add application/mbox for the MBOX mailboxes
* Add text/x-txt2tags
* Remove *.dat as a glob for MPEG videos
* Add Monkey's Audio, AC3, and Musepack mime-types
* Fix matching Type1 fonts
* Remove useless application/octet-stream mime-type
* Add *.mo to application/x-gettext-translation
* Add loads of tracker audio files, console ROMs, raw images mime-types
* Fix QuickTime Media Links mime-types and detection
* Add audio/AMR and audio/AMR-WB mime-types and detection
* Add better TeX magic, and more globs
* Add better magic for patch files
* Fix .jar files' mime-types, and add better magic
* Fix magic for MPEG4 audio files
* Add an alias for .deb packages
* Add application/sieve mime-type
* Fix application/javascript's mime-type
* Fix text/csv's mime-type
* Add paths to the .pc file
* Translation update
- Removed from gnome-patch-translation project, all strings are
upstreamed.
-------------------------------------------------------------------
Tue Apr 25 18:07:31 CEST 2006 - sbrabec@suse.cz
- Fixed C* source code MIME type conflicts (#168763).
-------------------------------------------------------------------
Wed Mar 15 13:54:18 CET 2006 - sbrabec@suse.cz
- Updated to a 0.17 release.
- Use sub-class-of instead of alias for wma and wmv (156207#c10).
- Support for gnome-patch-translation.
-------------------------------------------------------------------
Thu Mar 9 18:05:05 CET 2006 - jpr@suse.de
- Update to cvs version to be more fine grained about wma, wmv, and
ogg (#156210 and #156207)
-------------------------------------------------------------------
Wed Jan 25 21:41:34 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Dec 8 17:19:16 CET 2005 - sbrabec@suse.cz
- Directories /usr/share/mime and /usr/share/mime/packages are now
owned by filesystem.
-------------------------------------------------------------------
Mon Sep 12 21:56:19 CEST 2005 - clahey@suse.de
- Add docbook mime info entry (116605).
-------------------------------------------------------------------
Tue Mar 29 18:19:24 CEST 2005 - sbrabec@suse.cz
- Fixed WMV files and typos.
http://bugs.freedesktop.org/show_bug.cgi?id=2051
- Added missing Danish from CVS.
-------------------------------------------------------------------
Tue Mar 29 17:34:33 CEST 2005 - sbrabec@suse.cz
- Updated to version 0.16.
-------------------------------------------------------------------
Mon Mar 21 18:13:26 CET 2005 - sbrabec@suse.cz
- Updated to CVS version (#72797).
-------------------------------------------------------------------
Mon Feb 21 15:54:34 CET 2005 - sbrabec@suse.cz
- Updated to version 0.15.
-------------------------------------------------------------------
Tue Oct 19 00:35:09 CEST 2004 - ro@suse.de
- locale rename: no -> nb
-------------------------------------------------------------------
Mon Sep 20 14:59:42 CEST 2004 - ro@suse.de
- added missing prereq for update-mime-database
which is called in postinstall
-------------------------------------------------------------------
Thu Sep 09 11:06:59 CEST 2004 - sbrabec@suse.cz
- Fixed execute flag for mime-info-to-mime.
-------------------------------------------------------------------
Tue Sep 07 18:21:23 CEST 2004 - sbrabec@suse.cz
- Added script mime-info-to-mime for conversion of GNOME mime-info to
shared-mime-info.
-------------------------------------------------------------------
Mon May 17 18:00:50 CEST 2004 - sbrabec@suse.cz
- New SuSE package, version 0.14.

163
shared-mime-info.spec Normal file
View File

@ -0,0 +1,163 @@
#
# spec file for package shared-mime-info (Version 0.19)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: shared-mime-info
BuildRequires: glib2-devel intltool libxml2-devel perl-XML-Parser
Version: 0.19
Release: 27
URL: http://freedesktop.org/wiki/Software/shared-mime-info
Group: System/X11/Utilities
License: GNU General Public License (GPL)
Summary: Shared MIME Database
Source: %{name}-%{version}.tar.bz2
Source1: mime-info-to-mime
Patch: shared-mime-info-po.patch
Patch1: shared-mime-info-raw.patch
Autoreqprov: on
# needed by mime-info-to-mime:
Requires: /bin/rm /bin/mkdir /usr/bin/fgrep
# needed by update-mime-database
PreReq: libxml2 glib2
Provides: %{name}-devel = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains: - The freedesktop.org shared MIME database
spec.
- The merged GNOME and KDE databases, in the new format.
- The update-mime-database command, used to install new MIME data.
Authors:
--------
Thomas Leonard <tal00r@ecs.soton.ac.uk>
%prep
%setup
%patch
%patch1
%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
install %{S:1} $RPM_BUILD_ROOT%{_bindir}/
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
usr/bin/update-mime-database usr/share/mime >/dev/null
%files -f %{name}.lang
%defattr (-, root, root)
%doc COPYING ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/mime/packages/*.xml
%ghost %{_datadir}/mime/[a-ms-vX]*
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man?/*.*
%changelog -n shared-mime-info
* Mon Jan 08 2007 - sbrabec@suse.cz
- Spec file cleanup.
* Wed Jan 03 2007 - sbrabec@suse.cz
- Use /usr/share/mime-info in mime-info-to-mime.
* Tue Nov 14 2006 - sbrabec@suse.cz
- Reduced BuildRequires.
* Mon Oct 30 2006 - sbrabec@suse.cz
- Updated and fixed camera raw MIME types (freedesktop#8170).
* Thu Sep 14 2006 - sbrabec@suse.cz
- Fixed camera raw MIME types (freedesktop#4117).
* Fri Sep 08 2006 - sbrabec@suse.cz
- Updated to version 0.19:
* Add *.qtl to video/quicktime
* Add *.wax to audio/x-ms-asx
* Add *.mpga to audio/mpeg
* Add audio/x-ms-wma (Windows Media Audio)
* Add application/xspf+xml (XSPF playlist)
* Add a lot of subclassing information
* Fix the RSS mime-types
* Fix *.asx files' mime-type
* Avoid audio/x-ms-asx files being detected as HTML
* Avoid application/pdf files being detected as Matlab documents
* Clarify C, C++, C# and ObjC mime-types
* Add application/powerpoint and application/mspowerpoint as aliases for
Powerpoint
* Add VHDL mime-type
* Add application/mbox for the MBOX mailboxes
* Add text/x-txt2tags
* Remove *.dat as a glob for MPEG videos
* Add Monkey's Audio, AC3, and Musepack mime-types
* Fix matching Type1 fonts
* Remove useless application/octet-stream mime-type
* Add *.mo to application/x-gettext-translation
* Add loads of tracker audio files, console ROMs, raw images mime-types
* Fix QuickTime Media Links mime-types and detection
* Add audio/AMR and audio/AMR-WB mime-types and detection
* Add better TeX magic, and more globs
* Add better magic for patch files
* Fix .jar files' mime-types, and add better magic
* Fix magic for MPEG4 audio files
* Add an alias for .deb packages
* Add application/sieve mime-type
* Fix application/javascript's mime-type
* Fix text/csv's mime-type
* Add paths to the .pc file
* Translation update
- Removed from gnome-patch-translation project, all strings are
upstreamed.
* Tue Apr 25 2006 - sbrabec@suse.cz
- Fixed C* source code MIME type conflicts (#168763).
* Wed Mar 15 2006 - sbrabec@suse.cz
- Updated to a 0.17 release.
- Use sub-class-of instead of alias for wma and wmv (156207#c10).
- Support for gnome-patch-translation.
* Thu Mar 09 2006 - jpr@suse.de
- Update to cvs version to be more fine grained about wma, wmv, and
ogg (#156210 and #156207)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 08 2005 - sbrabec@suse.cz
- Directories /usr/share/mime and /usr/share/mime/packages are now
owned by filesystem.
* Mon Sep 12 2005 - clahey@suse.de
- Add docbook mime info entry (116605).
* Tue Mar 29 2005 - sbrabec@suse.cz
- Fixed WMV files and typos.
http://bugs.freedesktop.org/show_bug.cgi?id=2051
- Added missing Danish from CVS.
* Tue Mar 29 2005 - sbrabec@suse.cz
- Updated to version 0.16.
* Mon Mar 21 2005 - sbrabec@suse.cz
- Updated to CVS version (#72797).
* Mon Feb 21 2005 - sbrabec@suse.cz
- Updated to version 0.15.
* Tue Oct 19 2004 - ro@suse.de
- locale rename: no -> nb
* Mon Sep 20 2004 - ro@suse.de
- added missing prereq for update-mime-database
which is called in postinstall
* Thu Sep 09 2004 - sbrabec@suse.cz
- Fixed execute flag for mime-info-to-mime.
* Tue Sep 07 2004 - sbrabec@suse.cz
- Added script mime-info-to-mime for conversion of GNOME mime-info to
shared-mime-info.
* Mon May 17 2004 - sbrabec@suse.cz
- New SuSE package, version 0.14.