diff --git a/k3b.changes b/k3b.changes index 81167f8..5d9349d 100644 --- a/k3b.changes +++ b/k3b.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 17 14:35:17 UTC 2011 - wstephenson@novell.com + +- call update-mime-database in pre/post install scripts + ------------------------------------------------------------------- Fri Jan 28 09:15:56 UTC 2011 - embar@super.lt diff --git a/k3b.spec b/k3b.spec index 9757aa0..a61d09a 100644 --- a/k3b.spec +++ b/k3b.spec @@ -20,40 +20,42 @@ %bcond_with mad %bcond_with lame -Name: k3b -BuildRequires: cups-devel libkcddb4-devel ruby-devel sqlite-devel taglib-devel -BuildRequires: libkcompactdisc4-devel libkdepimlibs4-devel tse3-devel update-desktop-files -BuildRequires: gstreamer010-devel libmtp-devel libvisual-devel xine-devel -BuildRequires: flac-devel libQtWebKit-devel libdvdread-devel libvorbis-devel -BuildRequires: dbus-1-glib-devel libogg-devel libsamplerate-devel libsndfile-devel -BuildRequires: libmpcdec-devel libmusicbrainz-devel -%if %{with ffmpeg} -BuildRequires: libffmpeg-devel +Name: k3b +BuildRequires: cups-devel libkcddb4-devel ruby-devel sqlite-devel taglib-devel +BuildRequires: libkcompactdisc4-devel libkdepimlibs4-devel tse3-devel update-desktop-files +BuildRequires: gstreamer010-devel libmtp-devel libvisual-devel xine-devel +BuildRequires: flac-devel libQtWebKit-devel libdvdread-devel libvorbis-devel +BuildRequires: dbus-1-glib-devel libogg-devel libsamplerate-devel libsndfile-devel +BuildRequires: libmpcdec-devel libmusicbrainz-devel +%if %{with ffmpegg} +BuildRequires: libffmpeg-devel %endif -%if %{with mad} -BuildRequires: libmad-devel +%if %{with mad} +BuildRequires: libmad-devel %endif -%if %{with lame} -BuildRequires: libmp3lame-devel +%if %{with lame} +BuildRequires: libmp3lame-devel %endif -Url: http://k3b.sourceforge.net/ -License: GPLv2+ -Group: Productivity/Multimedia/CD/Record -Summary: A Universal CD and DVD Burning Application -Requires: /usr/bin/cdrecord /usr/bin/mkisofs /usr/bin/cdrdao dvd+rw-tools -Version: 2.0.2 -Release: 2 +Url: http://k3b.sourceforge.net/ +License: GPLv2+ +Group: Productivity/Multimedia/CD/Record +Summary: A Universal CD and DVD Burning Application +Requires: /usr/bin/cdrecord /usr/bin/mkisofs /usr/bin/cdrdao dvd+rw-tools +Version: 2.0.2 +Release: 2 %define rversion %version # svn.kde.org/home/kde/trunk/extragear/multimedia/k3b -Source0: k3b-%{version}.tar.bz2 -Patch1: initial-preference.diff -Patch3: add_mimetypes_bnc661777.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%kde4_runtime_requires -Provides: kde4-k3b = 4.2.1.svn942189 -Provides: kde4-k3b = 4.2.2.svn951754 -Obsoletes: kde4-k3b <= 4.2.2.svn951754 -Recommends: %{name}-lang = %{version} +Source0: k3b-%{version}.tar.bz2 +Patch1: initial-preference.diff +Patch3: add_mimetypes_bnc661777.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%kde4_runtime_requires +Requires(post): shared-mime-info +Requires(postun): shared-mime-info +Provides: kde4-k3b = 4.2.1.svn942189 +Provides: kde4-k3b = 4.2.2.svn951754 +Obsoletes: kde4-k3b <= 4.2.2.svn951754 +Recommends: %{name}-lang = %{version} %description K3b is a CD burning application that supports Ogg Vorbis, MP3 audio @@ -108,9 +110,13 @@ Authors: %find_lang kio_videodvd k3b.lang mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/scalable/apps -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : %clean rm -rf $RPM_BUILD_ROOT