Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.
... ... --- a/vlc.spec
... ... +++ b/vlc.spec
... ... @@ -41,7 +41,7 @@
41 41
Summary:	MPEG, MPEG2, DVD and DivX player
42 42
Name:		vlc
43 43
Version:	3.0.4
44
Release:	1%{?extrarelsuffix}
44
Release:	2%{?extrarelsuffix}
45 45
#gw the shared libraries are LGPL
46 46
License:	GPLv2+ and LGPLv2+
47 47
Group:		Video
... ... @@ -670,6 +670,34 @@ This package is in Restricted repository as it is violating software patents.
670 670
%{_datadir}/apps/solid/actions/*.desktop
671 671
%{_datadir}/metainfo/vlc.appdata.xml
672 672
673
%post
674
#!/bin/sh
675
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9642
676
# https://bugs.launchpad.net/1328466
677
run_vlc_cache_gen() {
678
	files=`find %{_libdir}/vlc/plugins -name '*.so' -type f -print -quit`
679
	if test -n "$files"
680
	then
681
		# run vlc-cache-gen since there are plugins
682
		if ! %{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins
683
		then
684
			echo "WARNING: Regenerating VLC plugin cache failed."
685
			echo "Please run '%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins' manually."
686
		fi
687
	else
688
		# no plugins, so remove plugins.dat
689
		rm -f %{_libdir}/vlc/plugins/plugins.dat
690
	fi
691
}
692
693
[ -d %{_libdir}/vlc/plugins ] && \
694
run_vlc_cache_gen
695
696
%postun
697
#!/bin/sh
698
# exec if it's a full uninstall, not upgrade
699
[ "$1" = '0' ] && rm -f %{_libdir}/vlc/plugins/plugins.dat
700
673 701
#----------------------------------------------------------------------------
674 702
675 703
%package -n svlc

Comments