Rename defaults.list to be GNOME specific and follow

the latest changes in the shared mime info spec
This commit is contained in:
Bastien Nocera 2015-02-05 16:16:30 +01:00
parent d2c9ebda85
commit 5c7979d1bb
2 changed files with 11 additions and 7 deletions

View File

@ -1,12 +1,12 @@
Summary: Shared MIME information database Summary: Shared MIME information database
Name: shared-mime-info Name: shared-mime-info
Version: 1.4 Version: 1.4
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
URL: http://freedesktop.org/Software/shared-mime-info URL: http://freedesktop.org/Software/shared-mime-info
Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
Source1: defaults.list Source1: gnome-mimeapps.list
# Generated with: # Generated with:
# for i in `cat /home/hadess/Projects/jhbuild/totem/data/mime-type-list.txt | grep -v audio/flac | grep -v ^#` ; do if grep MimeType /home/hadess/Projects/jhbuild/rhythmbox/data/rhythmbox.desktop.in.in | grep -q "$i;" ; then echo "$i=rhythmbox.desktop;org.gnome.Totem.desktop;" >> totem-defaults.list ; else echo "$i=org.gnome.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=org.gnome.Totem.desktop;" >> totem-defaults.list ; done # for i in `cat /home/hadess/Projects/jhbuild/totem/data/mime-type-list.txt | grep -v audio/flac | grep -v ^#` ; do if grep MimeType /home/hadess/Projects/jhbuild/rhythmbox/data/rhythmbox.desktop.in.in | grep -q "$i;" ; then echo "$i=rhythmbox.desktop;org.gnome.Totem.desktop;" >> totem-defaults.list ; else echo "$i=org.gnome.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=org.gnome.Totem.desktop;" >> totem-defaults.list ; done
Source2: totem-defaults.list Source2: totem-defaults.list
@ -57,10 +57,10 @@ find $RPM_BUILD_ROOT%{_datadir}/mime -type f -not -path "*/packages/*" \
| sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" >> %{name}.files | sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" >> %{name}.files
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
## remove bogus translation files ## remove bogus translation files
## translations are already in the xml file installed ## translations are already in the xml file installed
@ -80,13 +80,17 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%doc README NEWS HACKING shared-mime-info-spec.xml %doc README NEWS HACKING shared-mime-info-spec.xml
%{_bindir}/* %{_bindir}/*
%{_datadir}/mime/packages/* %{_datadir}/mime/packages/*
%{_datadir}/applications/defaults.list %{_datadir}/applications/gnome-mimeapps.list
# better to co-own this dir than to pull in pkgconfig # better to co-own this dir than to pull in pkgconfig
%dir %{_datadir}/pkgconfig %dir %{_datadir}/pkgconfig
%{_datadir}/pkgconfig/shared-mime-info.pc %{_datadir}/pkgconfig/shared-mime-info.pc
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Thu Feb 05 2015 Bastien Nocera <bnocera@redhat.com> 1.4-2
- Rename defaults.list to be GNOME specific and follow
the latest changes in the shared mime info spec
* Thu Feb 05 2015 Bastien Nocera <bnocera@redhat.com> 1.4-1 * Thu Feb 05 2015 Bastien Nocera <bnocera@redhat.com> 1.4-1
- Update to 1.4 - Update to 1.4