- Adds support for vlc-cache-gen

- Drop support for vlc-handlers.schemas
  (will be handled in .desktop file)
el8
Nicolas Chauvet 15 years ago
parent 053882e133
commit 5dd942c795

@ -21,7 +21,7 @@
Summary: The cross-platform open-source multimedia framework, player and server Summary: The cross-platform open-source multimedia framework, player and server
Name: vlc Name: vlc
Version: 1.1.4 Version: 1.1.4
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/Multimedia Group: Applications/Multimedia
URL: http://www.videolan.org URL: http://www.videolan.org
@ -29,7 +29,6 @@ Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}
%if 0%{?live555_date:1} %if 0%{?live555_date:1}
Source2: http://www.live555.com/liveMedia/public/live.%{live555_date}.tar.gz Source2: http://www.live555.com/liveMedia/public/live.%{live555_date}.tar.gz
%endif %endif
Source10: vlc-handlers.schemas
Patch0: vlc-1.1.0-vlc-cache-gen_noerror.patch Patch0: vlc-1.1.0-vlc-cache-gen_noerror.patch
Patch1: 0001-Libnotify-depends-on-a-gtk.patch Patch1: 0001-Libnotify-depends-on-a-gtk.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -354,10 +353,6 @@ ln -sf ../../../fonts/dejavu/DejaVuSans-Bold.ttf \
#Fix unowned directories #Fix unowned directories
rm -rf $RPM_BUILD_ROOT%{_docdir}/vlc rm -rf $RPM_BUILD_ROOT%{_docdir}/vlc
#Fix CGonf2 url-handler support
#mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
install -pm 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/vlc/utils/
%find_lang %{name} %find_lang %{name}
@ -366,22 +361,7 @@ install -pm 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/vlc/utils/
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%pre
if [ "$1" -gt 1 ] ; then
if [ -x %{_bindir}/gconftool-2 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_datadir}/vlc/utils/vlc-handlers.schemas >/dev/null
fi
fi || :
%post %post
if [ -x %{_bindir}/gconftool-2 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
%{_datadir}/vlc/utils/vlc-handlers.schemas >/dev/null
fi
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
@ -390,15 +370,6 @@ fi
%post core -p /sbin/ldconfig %post core -p /sbin/ldconfig
%preun
if [ "$1" -eq 0 ]; then
if [ -x %{_bindir}/gconftool-2 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_datadir}/vlc/utils/vlc-handlers.schemas >& /dev/null
fi
fi || :
%postun %postun
%{_bindir}/update-desktop-database %{_datadir}/applications %{_bindir}/update-desktop-database %{_datadir}/applications
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
@ -408,6 +379,34 @@ fi || :
%postun core -p /sbin/ldconfig %postun core -p /sbin/ldconfig
%posttrans core
%{_libdir}/vlc/vlc-cache-gen -f %{_libdir}/vlc || :
%post nox
if [ $1 == 1 ] ; then
%{_libdir}/vlc/vlc-cache-gen -f %{_libdir}/vlc || :
fi
%post plugin-jack
if [ $1 == 1 ] ; then
%{_libdir}/vlc/vlc-cache-gen -f %{_libdir}/vlc || :
fi
%postun nox
if [ $1 == 0 ] ; then
%{_libdir}/vlc/vlc-cache-gen -f %{_libdir}/vlc || :
fi
%postun plugin-jack
if [ $1 == 0 ] ; then
%{_libdir}/vlc/vlc-cache-gen -f %{_libdir}/vlc || :
fi
%preun core
if [ $1 == 0 ] ; then
rm -rf %{_libdir}/vlc/plugins-*-*.dat
fi || :
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -520,6 +519,11 @@ fi || :
%changelog %changelog
* Sun Sep 05 2010 Nicolas Chauvet <kwizart@gmail.com> - 1.1.4-2
- Adds support for vlc-cache-gen
- Drop support for vlc-handlers.schemas
(will be handled in .desktop file)
* Sat Aug 28 2010 Nicolas Chauvet <kwizart@gmail.com> - 1.1.4-1 * Sat Aug 28 2010 Nicolas Chauvet <kwizart@gmail.com> - 1.1.4-1
- Update to 1.1.4 - Update to 1.1.4
- Fix libnotify build on f14 - Fix libnotify build on f14

Loading…
Cancel
Save