diff --git a/.shared-mime-info.metadata b/.shared-mime-info.metadata new file mode 100644 index 0000000..3d46c9f --- /dev/null +++ b/.shared-mime-info.metadata @@ -0,0 +1 @@ +752668b0cc5729433c99cbad00f21241ec4797ef SOURCES/shared-mime-info-1.1.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Remove-sub-classing-from-OO.o-mime-types.patch b/SOURCES/0001-Remove-sub-classing-from-OO.o-mime-types.patch new file mode 100644 index 0000000..d73e07b --- /dev/null +++ b/SOURCES/0001-Remove-sub-classing-from-OO.o-mime-types.patch @@ -0,0 +1,265 @@ +From b78ba0148a6d53248d72778b088ba8c8780ff79e Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Thu, 25 Aug 2011 10:54:47 +0100 +Subject: [PATCH] Remove sub-classing from OO.o mime-types + +https://bugs.freedesktop.org/show_bug.cgi?id=40354 +--- + freedesktop.org.xml.in | 31 ------------------------------- + 1 files changed, 0 insertions(+), 31 deletions(-) + +diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in +index e08ce53..5794e99 100644 +--- a/freedesktop.org.xml.in ++++ b/freedesktop.org.xml.in +@@ -714,7 +714,6 @@ command to generate the output files. + + + <_comment>OpenOffice Calc spreadsheet +- + + + +@@ -727,7 +726,6 @@ command to generate the output files. + + + <_comment>OpenOffice Calc template +- + + + +@@ -740,7 +738,6 @@ command to generate the output files. + + + <_comment>OpenOffice Draw drawing +- + + + +@@ -753,7 +750,6 @@ command to generate the output files. + + + <_comment>OpenOffice Draw template +- + + + +@@ -766,7 +762,6 @@ command to generate the output files. + + + <_comment>OpenOffice Impress presentation +- + + + +@@ -779,7 +774,6 @@ command to generate the output files. + + + <_comment>OpenOffice Impress template +- + + + +@@ -792,7 +786,6 @@ command to generate the output files. + + + <_comment>OpenOffice Math formula +- + + + +@@ -805,7 +798,6 @@ command to generate the output files. + + + <_comment>OpenOffice Writer document +- + + + +@@ -818,7 +810,6 @@ command to generate the output files. + + + <_comment>OpenOffice Writer global document +- + + + +@@ -831,7 +822,6 @@ command to generate the output files. + + + <_comment>OpenOffice Writer template +- + + + +@@ -846,7 +836,6 @@ command to generate the output files. + <_comment>ODT document + ODT + OpenDocument Text +- + + + +@@ -861,7 +850,6 @@ command to generate the output files. + <_comment>ODT document (Flat XML) + FODT + OpenDocument Text (Flat XML) +- + + + +@@ -869,7 +857,6 @@ command to generate the output files. + <_comment>ODT template + ODT + OpenDocument Text +- + + + +@@ -884,7 +871,6 @@ command to generate the output files. + <_comment>OTH template + OTH + OpenDocument HTML +- + + + +@@ -899,7 +885,6 @@ command to generate the output files. + <_comment>ODM document + ODM + OpenDocument Master +- + + + +@@ -914,7 +899,6 @@ command to generate the output files. + <_comment>ODG drawing + ODG + OpenDocument Drawing +- + + + +@@ -929,7 +913,6 @@ command to generate the output files. + <_comment>ODG drawing (Flat XML) + FODG + OpenDocument Drawing (Flat XML) +- + + + +@@ -937,7 +920,6 @@ command to generate the output files. + <_comment>ODG template + ODG + OpenDocument Drawing +- + + + +@@ -952,7 +934,6 @@ command to generate the output files. + <_comment>ODP presentation + ODP + OpenDocument Presentation +- + + + +@@ -967,7 +948,6 @@ command to generate the output files. + <_comment>ODP presentation (Flat XML) + FODP + OpenDocument Presentation (Flat XML) +- + + + +@@ -975,7 +955,6 @@ command to generate the output files. + <_comment>ODP template + ODP + OpenDocument Presentation +- + + + +@@ -990,7 +969,6 @@ command to generate the output files. + <_comment>ODS spreadsheet + ODS + OpenDocument Spreadsheet +- + + + +@@ -1005,7 +983,6 @@ command to generate the output files. + <_comment>ODS spreadsheet (Flat XML) + FODS + OpenDocument Spreadsheet (Flat XML) +- + + + +@@ -1013,7 +990,6 @@ command to generate the output files. + <_comment>ODS template + ODS + OpenDocument Spreadsheet +- + + + +@@ -1028,7 +1004,6 @@ command to generate the output files. + <_comment>ODC chart + ODC + OpenDocument Chart +- + + + +@@ -1043,7 +1018,6 @@ command to generate the output files. + <_comment>ODC template + ODC + OpenDocument Chart +- + + + +@@ -1058,7 +1032,6 @@ command to generate the output files. + <_comment>ODF formula + ODF + OpenDocument Formula +- + + + +@@ -1073,7 +1046,6 @@ command to generate the output files. + <_comment>ODF template + ODF + OpenDocument Formula +- + + + +@@ -1088,7 +1060,6 @@ command to generate the output files. + <_comment>ODB database + ODB + OpenDocument Database +- + + + +@@ -1096,7 +1067,6 @@ command to generate the output files. + <_comment>ODI image + ODI + OpenDocument Image +- + + + +@@ -1109,7 +1079,6 @@ command to generate the output files. + + + <_comment>OpenOffice.org extension +- + + + +-- +1.7.6 + diff --git a/SOURCES/defaults.list b/SOURCES/defaults.list new file mode 100644 index 0000000..b499b30 --- /dev/null +++ b/SOURCES/defaults.list @@ -0,0 +1,95 @@ +[Default Applications] +application/x-dia-diagram=dia.desktop +text/x-vcard=evolution.desktop +text/directory=evolution.desktop +text/calendar=evolution.desktop +application/x-cd-image=gnome-disk-image-mounter.desktop +image/x-compressed-xcf=gimp.desktop +image/x-xcf=gimp.desktop +image/x-psd=gimp.desktop +image/x-fits=gimp.desktop +image/bmp=eog.desktop;gthumb.desktop; +image/gif=eog.desktop;gthumb.desktop; +image/x-icb=eog.desktop;gthumb.desktop; +image/x-ico=eog.desktop;gthumb.desktop; +image/x-pcx=eog.desktop;gthumb.desktop; +image/x-portable-anymap=eog.desktop;gthumb.desktop; +image/x-portable-bitmap=eog.desktop;gthumb.desktop; +image/x-portable-graymap=eog.desktop;gthumb.desktop; +image/x-portable-pixmap=eog.desktop;gthumb.desktop; +image/x-xbitmap=eog.desktop;gthumb.desktop; +image/x-xpixmap=eog.desktop;gthumb.desktop; +image/x-xwindowdump=eog.desktop;gthumb.desktop; +image/svg+xml=eog.desktop;gthumb.desktop; +application/vnd.ms-word=libreoffice-writer.desktop +application/vnd.wordperfect=libreoffice-writer.desktop +application/vnd.sun.xml.writer=libreoffice-writer.desktop +application/vnd.sun.xml.writer.global=libreoffice-writer.desktop +application/vnd.sun.xml.writer.template=libreoffice-writer.desktop +application/vnd.stardivision.writer=libreoffice-writer.desktop +application/vnd.oasis.opendocument.text=libreoffice-writer.desktop +application/vnd.oasis.opendocument.text-template=libreoffice-writer.desktop +application/vnd.oasis.opendocument.text-web=libreoffice-writer.desktop +application/vnd.oasis.opendocument.text-master=libreoffice-writer.desktop +application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop +application/vnd.openxmlformats-officedocument.wordprocessingml.template=libreoffice-writer.desktop +application/vnd.ms-excel=libreoffice-calc.desktop +application/vnd.stardivision.calc=libreoffice-calc.desktop +application/vnd.sun.xml.calc=libreoffice-calc.desktop +application/vnd.sun.xml.calc.template=libreoffice-calc.desktop +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop +application/vnd.openxmlformats-officedocument.spreadsheetml.template=libreoffice-calc.desktop +application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop +application/vnd.oasis.opendocument.spreadsheet-template=libreoffice-calc.desktop +application/vnd.ms-powerpoint=libreoffice-impress.desktop +application/vnd.stardivision.impress=libreoffice-impress.desktop +application/vnd.sun.xml.impress=libreoffice-impress.desktop +application/vnd.sun.xml.impress.template=libreoffice-impress.desktop +application/vnd.oasis.opendocument.presentation=libreoffice-impress.desktop +application/vnd.oasis.opendocument.presentation-template=libreoffice-impress.desktop +application/vnd.openxmlformats-officedocument.presentationml.presentation=libreoffice-impress.desktop +application/vnd.openxmlformats-officedocument.presentationml.template=libreoffice-impress.desktop +application/vnd.stardivision.draw=libreoffice-draw.desktop +application/vnd.sun.xml.draw=libreoffice-draw.desktop +application/vnd.sun.xml.draw.template=libreoffice-draw.desktop +application/vnd.oasis.opendocument.graphics=libreoffice-draw.desktop +application/vnd.oasis.opendocument.graphics-template=libreoffice-draw.desktop +application/vnd.oasis.opendocument.formula=libreoffice-math.desktop +application/vnd.sun.xml.math=libreoffice-math.desktop +application/vnd.stardivision.math=libreoffice-math.desktop +application/vnd.oasis.opendocument.database=libreoffice-base.desktop +application/vnd.sun.xml.base=libreoffice-base.desktop +application/pdf=evince.desktop +application/postscript=evince.desktop +application/x-qw=gnome-gnucash.desktop +application/x-gnucash=gnome-gnucash.desktop +application/vnd.lotus-1-2-3=gnumeric.desktop +application/x-oleo=gnumeric.desktop +application/x-gnumeric=gnumeric.desktop +application/x-xbase=gnumeric.desktop +application/x-abiword=abiword.desktop +application/x-dvi=evince.desktop +application/x-catalog=gpk-install-catalog.desktop +application/x-rpm=gpk-install-local-file.desktop +text/plain=gedit.desktop +text/html=firefox.desktop +application/xhtml+xml=firefox.desktop +inode/directory=nautilus.desktop +x-content/blank-cd=brasero-nautilus.desktop +x-content/blank-dvd=brasero-nautilus.desktop +x-content/blank-bd=brasero-nautilus.desktop +x-content/blank-hddvd=brasero-nautilus.desktop +x-content/video-dvd=totem.desktop +x-content/video-vcd=totem.desktop +x-content/video-svcd=totem.desktop +#x-content/video-bluray=totem.desktop +#x-content/video-hddvd=totem.desktop +x-content/audio-cdda=rhythmbox.desktop +x-content/audio-dvd=rhythmbox.desktop +x-content/audio-player=rhythmbox.desktop +x-content/image-dcf=shotwell.desktop +x-content/image-picturecd=shotwell.desktop +# URI scheme handlers +x-scheme-handler/mailto=evolution.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop diff --git a/SOURCES/file-roller-defaults.list b/SOURCES/file-roller-defaults.list new file mode 100644 index 0000000..9bb9fb9 --- /dev/null +++ b/SOURCES/file-roller-defaults.list @@ -0,0 +1,50 @@ +application/x-7z-compressed=file-roller.desktop; +application/x-7z-compressed-tar=file-roller.desktop; +application/x-ace=file-roller.desktop; +application/x-alz=file-roller.desktop; +application/x-ar=file-roller.desktop; +application/x-arj=file-roller.desktop; +application/x-bzip=file-roller.desktop; +application/x-bzip-compressed-tar=file-roller.desktop; +application/x-bzip1=file-roller.desktop; +application/x-bzip1-compressed-tar=file-roller.desktop; +application/x-cabinet=file-roller.desktop; +application/x-cbr=file-roller.desktop; +application/x-cbz=file-roller.desktop; +application/x-compress=file-roller.desktop; +application/x-compressed-tar=file-roller.desktop; +application/x-cpio=file-roller.desktop; +application/x-deb=file-roller.desktop; +application/x-ear=file-roller.desktop; +application/x-ms-dos-executable=file-roller.desktop; +application/x-gtar=file-roller.desktop; +application/x-gzip=file-roller.desktop; +application/x-gzpostscript=file-roller.desktop; +application/x-java-archive=file-roller.desktop; +application/x-lha=file-roller.desktop; +application/x-lhz=file-roller.desktop; +application/x-lrzip=file-roller.desktop; +application/x-lrzip-compressed-tar=file-roller.desktop; +application/x-lzip=file-roller.desktop; +application/x-lzip-compressed-tar=file-roller.desktop; +application/x-lzma=file-roller.desktop; +application/x-lzma-compressed-tar=file-roller.desktop; +application/x-lzop=file-roller.desktop; +application/x-lzop-compressed-tar=file-roller.desktop; +application/x-ms-wim=file-roller.desktop; +application/x-rar=file-roller.desktop; +application/x-rar-compressed=file-roller.desktop; +application/x-rzip=file-roller.desktop; +application/x-tar=file-roller.desktop; +application/x-tarz=file-roller.desktop; +application/x-stuffit=file-roller.desktop; +application/x-war=file-roller.desktop; +application/x-xz=file-roller.desktop; +application/x-xz-compressed-tar=file-roller.desktop; +application/x-zip=file-roller.desktop; +application/x-zip-compressed=file-roller.desktop; +application/x-zoo=file-roller.desktop; +application/zip=file-roller.desktop; +application/x-archive=file-roller.desktop; +application/vnd.ms-cab-compressed=file-roller.desktop; +application/x-source-rpm=file-roller.desktop; diff --git a/SOURCES/shotwell-viewer-defaults.list b/SOURCES/shotwell-viewer-defaults.list new file mode 100644 index 0000000..e354157 --- /dev/null +++ b/SOURCES/shotwell-viewer-defaults.list @@ -0,0 +1,52 @@ +image/jpeg=shotwell-viewer.desktop; +image/png=shotwell-viewer.desktop; +image/x-canon-cr2=shotwell-viewer.desktop; +image/x-canon-crw=shotwell-viewer.desktop; +image/x-fuji-raf=shotwell-viewer.desktop; +image/x-adobe-dng=shotwell-viewer.desktop; +image/x-panasonic-raw=shotwell-viewer.desktop; +image/x-minolta-mrw=shotwell-viewer.desktop; +image/x-nikon-nef=shotwell-viewer.desktop; +image/x-olympus-orf=shotwell-viewer.desktop; +image/x-pentax-pef=shotwell-viewer.desktop; +image/x-sony-arw=shotwell-viewer.desktop; +image/x-sony-srf=shotwell-viewer.desktop; +image/x-sony-sr2=shotwell-viewer.desktop; +image/x-sigma-x3f=shotwell-viewer.desktop; +image/x-dcraw=shotwell-viewer.desktop; +image/x-3fr=shotwell-viewer.desktop; +image/x-arw=shotwell-viewer.desktop; +image/x-srf=shotwell-viewer.desktop; +image/x-sr2=shotwell-viewer.desktop; +image/x-bay=shotwell-viewer.desktop; +image/x-crw=shotwell-viewer.desktop; +image/x-cr2=shotwell-viewer.desktop; +image/x-cap=shotwell-viewer.desktop; +image/x-iiq=shotwell-viewer.desktop; +image/x-eip=shotwell-viewer.desktop; +image/x-dcs=shotwell-viewer.desktop; +image/x-dcr=shotwell-viewer.desktop; +image/x-drf=shotwell-viewer.desktop; +image/x-k25=shotwell-viewer.desktop; +image/x-kdc=shotwell-viewer.desktop; +image/x-dng=shotwell-viewer.desktop; +image/x-erf=shotwell-viewer.desktop; +image/x-fff=shotwell-viewer.desktop; +image/x-mef=shotwell-viewer.desktop; +image/x-mos=shotwell-viewer.desktop; +image/x-mrw=shotwell-viewer.desktop; +image/x-nef=shotwell-viewer.desktop; +image/x-nrw=shotwell-viewer.desktop; +image/x-orf=shotwell-viewer.desktop; +image/x-ptx=shotwell-viewer.desktop; +image/x-pef=shotwell-viewer.desktop; +image/x-pxn=shotwell-viewer.desktop; +image/x-r3d=shotwell-viewer.desktop; +image/x-raf=shotwell-viewer.desktop; +image/x-raw=shotwell-viewer.desktop; +image/x-rw2=shotwell-viewer.desktop; +image/x-raw=shotwell-viewer.desktop; +image/x-rwl=shotwell-viewer.desktop; +image/x-rwz=shotwell-viewer.desktop; +image/x-x3f=shotwell-viewer.desktop; +image/tiff=shotwell-viewer.desktop; diff --git a/SOURCES/totem-defaults.list b/SOURCES/totem-defaults.list new file mode 100644 index 0000000..cdcf086 --- /dev/null +++ b/SOURCES/totem-defaults.list @@ -0,0 +1,118 @@ +application/mxf=totem.desktop; +application/ogg=rhythmbox.desktop;totem.desktop; +application/ram=totem.desktop; +application/sdp=totem.desktop; +application/smil=totem.desktop; +application/smil+xml=totem.desktop; +application/vnd.apple.mpegurl=totem.desktop; +application/vnd.ms-wpl=totem.desktop; +application/x-extension-m4a=totem.desktop; +application/x-extension-mp4=totem.desktop; +application/x-flac=totem.desktop; +application/x-flash-video=totem.desktop; +application/x-matroska=totem.desktop; +application/x-netshow-channel=totem.desktop; +application/x-ogg=rhythmbox.desktop;totem.desktop; +application/x-quicktime-media-link=totem.desktop; +application/x-quicktimeplayer=totem.desktop; +application/x-shorten=totem.desktop; +application/x-smil=totem.desktop; +application/xspf+xml=totem.desktop; +audio/3gpp=totem.desktop; +audio/ac3=totem.desktop; +audio/AMR=totem.desktop; +audio/AMR-WB=totem.desktop; +audio/basic=totem.desktop; +audio/midi=totem.desktop; +audio/mp2=totem.desktop; +audio/mp4=totem.desktop; +audio/mpeg=rhythmbox.desktop;totem.desktop; +audio/mpegurl=totem.desktop; +audio/ogg=totem.desktop; +audio/prs.sid=totem.desktop; +audio/x-aiff=totem.desktop; +audio/x-ape=totem.desktop; +audio/x-flac=rhythmbox.desktop;totem.desktop; +audio/x-gsm=totem.desktop; +audio/x-it=totem.desktop; +audio/x-m4a=totem.desktop; +audio/x-matroska=totem.desktop; +audio/x-mod=totem.desktop; +audio/x-mp3=rhythmbox.desktop;totem.desktop; +audio/x-mpeg=rhythmbox.desktop;totem.desktop; +audio/x-mpegurl=rhythmbox.desktop;totem.desktop; +audio/x-ms-asf=totem.desktop; +audio/x-ms-asx=totem.desktop; +audio/x-ms-wax=totem.desktop; +audio/x-ms-wma=totem.desktop; +audio/x-musepack=totem.desktop; +audio/x-pn-aiff=totem.desktop; +audio/x-pn-au=totem.desktop; +audio/x-pn-wav=totem.desktop; +audio/x-pn-windows-acm=totem.desktop; +audio/x-s3m=totem.desktop; +audio/x-sbc=totem.desktop; +audio/x-scpls=rhythmbox.desktop;totem.desktop; +audio/x-speex=totem.desktop; +audio/x-stm=totem.desktop; +audio/x-tta=totem.desktop; +audio/x-wav=totem.desktop; +audio/x-wavpack=totem.desktop; +audio/x-vorbis=totem.desktop; +audio/x-vorbis+ogg=rhythmbox.desktop;totem.desktop; +audio/x-xm=totem.desktop; +image/x-pict=totem.desktop; +misc/ultravox=totem.desktop; +text/google-video-pointer=totem.desktop; +text/x-google-video-pointer=totem.desktop; +video/3gp=totem.desktop; +video/3gpp=totem.desktop; +video/dv=totem.desktop; +video/divx=totem.desktop; +video/fli=totem.desktop; +video/flv=totem.desktop; +video/mp2t=totem.desktop; +video/mp4=totem.desktop; +video/mp4v-es=totem.desktop; +video/mpeg=totem.desktop; +video/msvideo=totem.desktop; +video/ogg=totem.desktop; +video/quicktime=totem.desktop; +video/vivo=totem.desktop; +video/vnd.divx=totem.desktop; +video/vnd.mpegurl=totem.desktop; +video/vnd.vivo=totem.desktop; +video/webm=totem.desktop; +video/x-anim=totem.desktop; +video/x-avi=totem.desktop; +video/x-flc=totem.desktop; +video/x-fli=totem.desktop; +video/x-flic=totem.desktop; +video/x-flv=totem.desktop; +video/x-m4v=totem.desktop; +video/x-matroska=totem.desktop; +video/x-mpeg=totem.desktop; +video/x-mpeg2=totem.desktop; +video/x-ms-asf=totem.desktop; +video/x-ms-asx=totem.desktop; +video/x-msvideo=totem.desktop; +video/x-ms-wm=totem.desktop; +video/x-ms-wmv=totem.desktop; +video/x-ms-wmx=totem.desktop; +video/x-ms-wvx=totem.desktop; +video/x-nsv=totem.desktop; +video/x-ogm+ogg=totem.desktop; +video/x-theora+ogg=totem.desktop; +video/x-totem-stream=totem.desktop; +x-content/video-dvd=totem.desktop; +x-content/video-vcd=totem.desktop; +x-content/video-svcd=totem.desktop; +x-scheme-handler/pnm=totem.desktop; +x-scheme-handler/mms=totem.desktop; +x-scheme-handler/net=totem.desktop; +x-scheme-handler/rtp=totem.desktop; +x-scheme-handler/rtsp=totem.desktop; +x-scheme-handler/mmsh=totem.desktop; +x-scheme-handler/uvox=totem.desktop; +x-scheme-handler/icy=totem.desktop; +x-scheme-handler/icyx=totem.desktop; diff --git a/SPECS/shared-mime-info.spec b/SPECS/shared-mime-info.spec new file mode 100644 index 0000000..e04f5db --- /dev/null +++ b/SPECS/shared-mime-info.spec @@ -0,0 +1,433 @@ +Summary: Shared MIME information database +Name: shared-mime-info +Version: 1.1 +Release: 5%{?dist} +License: GPLv2+ +Group: System Environment/Base +URL: http://freedesktop.org/Software/shared-mime-info +Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz +Source1: defaults.list +# Generated with: +# for i in `cat /home/hadess/Projects/jhbuild/totem/data/mime-type-list.txt | grep -v real | grep -v ^#` ; do if grep MimeType /home/hadess/Projects/jhbuild/rhythmbox/data/rhythmbox.desktop.in.in | grep -q "$i;" ; then echo "$i=rhythmbox.desktop;totem.desktop;" >> totem-defaults.list ; else echo "$i=totem.desktop;" >> totem-defaults.list ; fi ; done ; for i in `cat /home/hadess/Projects/jhbuild/totem/data/uri-schemes-list.txt | grep -v ^#` ; do echo "x-scheme-handler/$i=totem.desktop;" >> totem-defaults.list ; done +Source2: totem-defaults.list +# Generated with: +# for i in `grep MimeType= /usr/share/applications/file-roller.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` application/x-source-rpm ; do if ! `grep -q $i defaults.list` ; then echo $i=file-roller.desktop\; >> file-roller-defaults.list ; fi ; done +Source3: file-roller-defaults.list +# Generated with: +# for i in `grep MimeType= /usr/share/applications/shotwell-viewer.desktop | sed 's/MimeType=//' | sed 's/;/ /g'` ; do echo $i=shotwell-viewer.desktop\; >> shotwell-viewer-defaults.list ; done +Source4: shotwell-viewer-defaults.list + +# Work-around for https://bugs.freedesktop.org/show_bug.cgi?id=40354 +Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libxml2-devel +BuildRequires: glib2-devel +BuildRequires: gettext +# For intltool: +BuildRequires: perl(XML::Parser) intltool + +Requires(post): glib2 + +%description +This is the freedesktop.org shared MIME info database. + +Many programs and desktops use the MIME system to represent the types of +files. Frequently, it is necessary to work out the correct MIME type for +a file. This is generally done by examining the file's name or contents, +and looking up the correct MIME type in a database. + +%prep +%setup -q +%patch0 -p1 -b .ooo-zip + +%build + +%configure +# make %{?_smp_mflags} +make + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT%{_datadir}/mime -type d \ +| sed -e "s|^$RPM_BUILD_ROOT|%%dir |" > %{name}.files +find $RPM_BUILD_ROOT%{_datadir}/mime -type f -not -path "*/packages/*" \ +| sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" >> %{name}.files + +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications +install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list +cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list +cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list +cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list + +## remove bogus translation files +## translations are already in the xml file installed +rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/* + +%if 0%{?fedora} < 17 +# f17+ mozilla-firefox.desktop renamed to firefox.desktop (#736558) +# defaults.list fixed, handle this exceptional case separately, if at all +%endif + + +%post +# Should fail, as it would mean a problem in the mime database +%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null + +%files -f %{name}.files +%defattr(-,root,root,-) +%doc README NEWS HACKING COPYING shared-mime-info-spec.xml +%{_bindir}/* +%{_datadir}/mime/packages/* +%{_datadir}/applications/defaults.list +%dir %{_datadir}/pkgconfig +%{_datadir}/pkgconfig/shared-mime-info.pc +%{_mandir}/man*/* + +%changelog +* Sat Jun 8 2013 Matthias Clasen - 1.1-5 +- Drop pkgconfig dep, instead co-own /usr/share/pkgconfig + +* Thu Feb 21 2013 Kalev Lember - 1.1-4 +- Update for file-roller desktop file vendor prefix removal + +* Thu Feb 21 2013 Kalev Lember - 1.1-3 +- Update for eog desktop file vendor prefix removal + +* Sun Feb 17 2013 Christoph Wickert - 1.1-2 +- De-vendorize defaults.list (https://fedorahosted.org/fesco/ticket/1077) + +* Wed Feb 13 2013 Bastien Nocera 1.1-1 +- Update to 1.1 + +* Fri Nov 30 2012 Bastien Nocera 1.0-6 +- Open src.rpm files in file-roller instead of PackageKit + +* Mon Nov 05 2012 Bastien Nocera 1.0-6 +- Rebuild file-roller's default list + +* Sat Jul 21 2012 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue May 22 2012 Rex Dieter +- 1.0-4 +- defaults.list: s/mozilla-firefox/firefox/ (see #736558) +- defaults.list: s/gpk-install-file/gpk-install-local-file/ +- defaults.list: application/x-catalog=gpk-install-catalog.desktop (#770019) + +* Fri May 11 2012 Bastien Nocera 1.0-3 +- Use gnome-disk-image-mounter from gnome-disk-utility to handle + CD images by default (#820403) + +* Wed Mar 7 2012 Matthias Clasen - 1.0-2 +- Own/%%ghost files generated by update-mime-database from + freedesktop.org.xml (patch by Ville Skyttä, #716451)) + +* Tue Jan 17 2012 Bastien Nocera 1.0-1 +- Update to 1.0 + +* Sat Jan 14 2012 Fedora Release Engineering - 0.91-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 21 2011 Jon Masters 0.91-6 +- Fix interpretation of MP3 files as application/x-designer (#755472) + +* Mon Oct 24 2011 Rex Dieter 0.91-5 +- s/mozilla-firefox.desktop/firefox.desktop/ (f17+, #736558) + +* Thu Oct 13 2011 Bastien Nocera 0.91-4 +- Make Evolution the default calendar (and not Gedit...) + +* Thu Oct 13 2011 Bastien Nocera 0.91-3 +- Make shotwell the default for camera roll handling +- Make shotwell-viewer the default image viewer (for the + image types it handles) +- Prefer Rhythmbox to Totem for music files + +* Sun Sep 18 2011 Bastien Nocera 0.91-2 +- Fix changelog entries + +* Sun Sep 18 2011 Bastien Nocera 0.91-1 +- Update to 0.91 + +* Thu Aug 25 2011 Bastien Nocera 0.90-9 +- Never try to load OO.o files in file-roller + +* Thu May 26 2011 Bastien Nocera 0.90-8 +- Fix LibreOffice associations (patch from Caolan McNamara, #707971) + +* Thu Apr 21 2011 Bastien Nocera 0.90-7 +- Fix name of nautilus.desktop file (#698502) + +* Wed Feb 09 2011 Fedora Release Engineering - 0.90-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 16 2010 Bastien Nocera 0.90-5 +- Auto-generate file-roller's bindings as well + +* Wed Dec 08 2010 Bastien Nocera 0.90-4 +- Update defaults.list and update for newer desktop names, + with help from Edward Sheldrake (#659457) + +* Tue Dec 07 2010 Bastien Nocera 0.90-3 +- Add Firefox as the default for application/xhtml+xml + (#660657) + +* Wed Dec 01 2010 Bastien Nocera 0.90-2 +- Update list of defaults, adding new mime-types for Totem, + as well as scheme handlers, and install defaults for + Evolution and Firefox + +* Wed Dec 01 2010 Bastien Nocera 0.90-1 +- Update to 0.90 + +* Thu Nov 4 2010 Tom "spot" Callaway 0.80-2 +- rebuild for new libxml + +* Thu Sep 30 2010 Bastien Nocera 0.80-1 +- Update to 0.80 + +* Tue Jul 6 2010 Colin Walters - 0.71-4 +- Fix previous change to be Requires(post); spotted by + Mamoru Tasaka + +* Sat Jul 3 2010 Colin Walters - 0.71-3 +- Requires(pre) on glib, since update-mime-database uses it +- Remove /dev/null redirection, we should see future errors + And really, RPM is dumb here - this stuff needs to go to + log files. + +* Tue Jun 01 2010 Bastien Nocera 0.71-2 +- Update some OO.o defaults, patch from Caolan McNamara + +* Mon Feb 01 2010 Bastien Nocera 0.71-1 +- Update to 0.71 + +* Tue Oct 06 2009 Bastien Nocera 0.70-1 +- Update to 0.70 + +* Thu Sep 24 2009 - Caolán McNamara - 0.60-5 +- Resolves: rhbz#508559 openoffice.org desktop files changed name + +* Sun Jul 26 2009 Fedora Release Engineering - 0.60-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Mar 04 2009 - Bastien Nocera - 0.60-3 +- Remove Totem as handling Blu-ray and HD-DVD +- Use brasero-ncb.desktop instead of nautilus-cd-burner for blank devices +- Update media mime-types for Rhythmbox/Totem + +* Wed Feb 25 2009 Fedora Release Engineering - 0.60-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 21 2009 - Bastien Nocera - 0.60-1 +- Update to 0.60 + +* Mon Dec 15 2008 - Bastien Nocera - 0.51-6 +- Update with comments from Orcan Ogetbil + +* Wed Nov 26 2008 - Julian Sikorski - 0.51-5 +- Fix text/plain, gedit installs gedit.desktop and not gnome-gedit.desktop + +* Wed Oct 29 2008 - Bastien Nocera - 0.51-4 +- Add patch to avoid picture CD being anything with a pictures directory + (#459365) + +* Thu Oct 02 2008 - Bastien Nocera - 0.51-3 +- Use evince, not tetex-xdvi.desktop for DVI files (#465242) + +* Mon Sep 01 2008 - Bastien Nocera - 0.51-2 +- Use Firefox and not redhat-web as the default app for HTML files (#452184) + +* Wed Jul 23 2008 - Bastien Nocera - 0.51-1 +- Update to 0.51 + +* Tue Jul 22 2008 - Bastien Nocera - 0.50-1 +- Update to 0.50 + +* Sat Jun 14 2008 Tom "spot" Callaway - 0.40-2 +- update license tag + +* Wed Jun 11 2008 - Bastien Nocera - 0.40-1 +- Update to 0.40 + +* Mon May 12 2008 - Bastien Nocera - 0.30-1 +- Update to 0.30 + +* Fri May 2 2008 David Zeuthen - 0.23-9 +- Fix defaults for x-content/image-dcf (#445032) + +* Thu Apr 17 2008 Matthias Clasen - 0.23-8 +- Make mount-archive.desktop the default for iso images (#442960) + +* Tue Apr 15 2008 Matthias Clasen - 0.23-7 +- Update the desktop file name for Gimp, too + +* Tue Apr 15 2008 Matthias Clasen - 0.23-6 +- Change default for rpm to gpk-install-file (#442485) + +* Thu Mar 27 2008 - Bastien Nocera - 0.23-5 +- Make Totem the default for the mime-types it handles (#366101) +- And make sure Rhythmbox is the second default only for the mime-types + it handles + +* Thu Mar 20 2008 Matthias Clasen - 0.23-4 +- Change default for rpm to pk-install-file + +* Mon Feb 18 2008 Fedora Release Engineering - 0.23-3 +- Autorebuild for GCC 4.3 + +* Fri Jan 18 2008 Matthias Clasen - 0.23-2 +- Add defaults for content types + +* Tue Dec 18 2007 - Bastien Nocera - 0.23-1 +- Update to 0.23 + +* Tue Nov 13 2007 - Bastien Nocera - 0.22-5 +- Remove Totem as the default music/movie player, it will be the + default for movies, as only it handles them, and Rhythmbox can + handle missing plugins now + +* Mon Nov 05 2007 - Bastien Nocera - 0.22-4 +- Make Totem the default for the mime-types it handles (#366101) + +* Fri Aug 24 2007 Adam Jackson - 0.22-3 +- Rebuild for PPC toolchain bug +- BuildRequires: gawk + +* Tue Aug 21 2007 - Bastien Nocera - 0.22-2 +- Don't say that webcal files are handled by evolution-2.0, it can't +- Disable vCard mapping as well, as evolution doesn't handle it + (See http://bugzilla.gnome.org/show_bug.cgi?id=309073) + +* Mon Jul 30 2007 - Bastien Nocera - 0.22-1 +- Update to 0.22 + +* Tue Apr 17 2007 - Bastien Nocera - 0.20-2 +- Fix the dia association (#194313) + +* Tue Feb 06 2007 - Bastien Nocera - 0.20-1 +- Update to 0.20, and remove outdated patches + +* Fri Nov 10 2006 Christopher Aillon - 0.19-2 +- Alias image/pdf to application/pdf + +* Fri Aug 25 2006 Christopher Aillon - 0.19-1 +- Update to 0.19 + +* Wed Jul 26 2006 Matthias Clasen - 0.18-2 +- add an inode/directory entry to defaults.list (#187021) + +* Wed Jul 12 2006 Jesse Keating - 0.18-1.1 +- rebuild + +* Wed Jul 5 2006 Kristian Høgsberg - 0.18-1 +- Update to 0.18 and drop backported patches. + +* Thu Jun 29 2006 Kristian Høgsberg - 0.17-3 +- Adding PDF fix backported from CVS. + +* Wed Mar 22 2006 Matthias Clasen - 0.17-2 +- Backport upstream change to fix postscript vs. matlab confusion + +* Thu Mar 16 2006 Matthias Clasen - 0.17-1 +- Update to 0.17 + +* Mon Feb 13 2006 Ray Strode - 0.16.cvs20060212-3 +- add gthumb as fallback + +* Mon Feb 13 2006 Ray Strode - 0.16.cvs20060212-2 +- make eog the default image viewer + +* Sun Feb 12 2006 Christopher Aillon - 0.16.cvs20060212-1 +- Newer CVS snapshot + +* Tue Feb 07 2006 Jesse Keating - 0.16.cvs20051219-2.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Jan 30 2006 Caolan McNamara - 0.16.cvs20051219-2 +- rh#179138# add openoffice.org as preferred app for oasis formats + +* Mon Dec 19 2005 Matthias Clasen - 0.16.cvs20051219-1 +- Newer cvs snapshot + +* Fri Dec 16 2005 Jesse Keating +- rebuilt + +* Thu Dec 1 2005 Matthias Clasen - 0.16.cvs20051201-1 +- Incorporate upstream changes + +* Wed Nov 02 2005 John (J5) Palmieri - 0.16.cvs20051018-2 +- Change all refs of eog to gthumb in defaults.list + +* Tue Oct 18 2005 Matthias Clasen - 0.16.cvs20051018-1 +- Incorporate upstream changes + +* Wed Oct 12 2005 Matthias Clasen - 0.16-6 +- Add glade to defaults.list + +* Mon Oct 3 2005 Matthias Clasen - 0.16-5 +- Make sure Type1 fonts are recognized as such (#160909) + +* Fri Jun 17 2005 David Zeuthen - 0.16-4 +- Add MIME-types for .pcf Cisco VPN settings files (fdo #3560) + +* Fri May 20 2005 Dan Williams - 0.16-3 +- Update OpenOffice.org desktop file names. #155353 +- WordPerfect default now OOo Writer, since Abiword is in Extras + +* Sun Apr 3 2005 David Zeuthen - 0.16-2 +- Make Evince the default for application/pdf and application/postscript +- Remove remaining references to gnome-ggv (application/x-gzpostscript and + image/x-eps) as this is no longer in the distribution + +* Fri Apr 1 2005 David Zeuthen - 0.16-1 +- Update to upstream release 0.16 +- Drop all patches as they are in the new upstream release + +* Wed Mar 9 2005 David Zeuthen - 0.15-11 +- Add mimetypes for OOo2 (#150546) + +* Mon Oct 18 2004 Alexander Larsson - 0.15-10 +- Fix for mime sniffing on big-endian + +* Thu Oct 14 2004 Colin Walters - 0.15-9 +- Handle renaming of hxplay.desktop to realplay.desktop + +* Wed Oct 13 2004 Matthias Clasen - 0.15-8 +- Handle XUL files. #134122 + +* Wed Oct 13 2004 Colin Walters - 0.15-7 +- Make helix default for ogg and mp3, will switch wav/flac too + when support is added + +* Wed Oct 6 2004 Alexander Larsson - 0.15-6 +- Change default pdf viewer to ggv + +* Tue Sep 7 2004 Alexander Larsson - 0.15-4 +- Fixed evo desktop file reference in defaults.list + +* Mon Sep 6 2004 Caolan McNamara - 0.15-3 +- wpd can be opened in abiword, but not in openoffice.org (#114907) + +* Fri Sep 3 2004 Alexander Larsson - 0.15-2 +- Add list of default apps (#131643) + +* Mon Aug 30 2004 Jonathan Blandford 0.15-1 +- bump version + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Mon Mar 22 2004 Alex Larsson 0.14-1 +- update to 0.14 + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Mon Jan 26 2004 Alexander Larsson 0.13-1 +- 0.13 + +* Fri Jan 16 2004 Alexander Larsson mime-info +- Initial build.