Rename defaults.list to be GNOME specific and follow
the latest changes in the shared mime info spec
This commit is contained in:
parent
d2c9ebda85
commit
5c7979d1bb
@ -1,12 +1,12 @@
|
||||
Summary: Shared MIME information database
|
||||
Name: shared-mime-info
|
||||
Version: 1.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?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
|
||||
Source1: gnome-mimeapps.list
|
||||
# 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
|
||||
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
|
||||
|
||||
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
|
||||
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
|
||||
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
|
||||
cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
|
||||
cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
|
||||
|
||||
## remove bogus translation files
|
||||
## 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
|
||||
%{_bindir}/*
|
||||
%{_datadir}/mime/packages/*
|
||||
%{_datadir}/applications/defaults.list
|
||||
%{_datadir}/applications/gnome-mimeapps.list
|
||||
# better to co-own this dir than to pull in pkgconfig
|
||||
%dir %{_datadir}/pkgconfig
|
||||
%{_datadir}/pkgconfig/shared-mime-info.pc
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%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
|
||||
- Update to 1.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user