- Update with comments from Orcan Ogetbil <orcanbahri@yahoo.com>
This commit is contained in:
parent
3df9120f88
commit
9dde123f45
@ -1,11 +1,11 @@
|
|||||||
Summary: Shared MIME information database
|
Summary: Shared MIME information database
|
||||||
Name: shared-mime-info
|
Name: shared-mime-info
|
||||||
Version: 0.51
|
Version: 0.51
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPL+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Base
|
||||||
URL: http://freedesktop.org/Software/shared-mime-info
|
URL: http://freedesktop.org/Software/shared-mime-info
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.bz2
|
||||||
Source1: defaults.list
|
Source1: defaults.list
|
||||||
# Generated with:
|
# Generated with:
|
||||||
# for i in `totem-video-indexer -m | grep -v real` ; do if grep MimeType /home/hadess/Projects/Cvs/rhythmbox/data/rhythmbox.desktop.in.in | grep -q $i ; then echo "$i=totem.desktop;rhythmbox.desktop;" >> totem-defaults.list ; else echo "$i=totem.desktop;" >> totem-defaults.list ; fi ; done
|
# for i in `totem-video-indexer -m | grep -v real` ; do if grep MimeType /home/hadess/Projects/Cvs/rhythmbox/data/rhythmbox.desktop.in.in | grep -q $i ; then echo "$i=totem.desktop;rhythmbox.desktop;" >> totem-defaults.list ; else echo "$i=totem.desktop;" >> totem-defaults.list ; fi ; done
|
||||||
@ -14,14 +14,13 @@ Source2: totem-defaults.list
|
|||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=459365
|
# https://bugzilla.redhat.com/show_bug.cgi?id=459365
|
||||||
Patch0: shared-mime-info-picturecd.patch
|
Patch0: shared-mime-info-picturecd.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gawk
|
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
# For intltool:
|
# For intltool:
|
||||||
BuildRequires: perl-XML-Parser >= 2.31-16 intltool
|
BuildRequires: perl(XML::Parser) intltool
|
||||||
Requires: libxml2 glib2
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is the freedesktop.org shared MIME info database.
|
This is the freedesktop.org shared MIME info database.
|
||||||
@ -38,28 +37,30 @@ and looking up the correct MIME type in a database.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%configure --disable-update-mimedb
|
%configure --disable-update-mimedb
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
%{__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/defaults.list
|
||||||
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list
|
cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list
|
||||||
|
|
||||||
## remove these bogus files
|
## remove bogus translation files
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
|
## translations are already in the xml file installed
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
# Should fail, as it would mean a problem in the mime database
|
||||||
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null
|
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README NEWS shared-mime-info-spec.xml
|
%doc README NEWS HACKING COPYING shared-mime-info-spec.xml
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%dir %{_datadir}/mime/
|
%dir %{_datadir}/mime/
|
||||||
%{_datadir}/mime/packages
|
%{_datadir}/mime/packages
|
||||||
@ -68,6 +69,9 @@ cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/defaults.list
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 15 2008 - Bastien Nocera <bnocera@redhat.com> - 0.51-6
|
||||||
|
- Update with comments from Orcan Ogetbil <orcanbahri@yahoo.com>
|
||||||
|
|
||||||
* Wed Nov 26 2008 - Julian Sikorski <belegdol[at]gmail[dot]com> - 0.51-5
|
* Wed Nov 26 2008 - Julian Sikorski <belegdol[at]gmail[dot]com> - 0.51-5
|
||||||
- Fix text/plain, gedit installs gedit.desktop and not gnome-gedit.desktop
|
- Fix text/plain, gedit installs gedit.desktop and not gnome-gedit.desktop
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user