%define rel 0.1
%define libmajor 0
-%define libname lib%name%libmajor
%define cvs 1
%if %{cvs}
%define cvsrel 1
-%define cvsdate 20030116
+%define cvsdate 20030120
%define release 0.%{cvsdate}.%{cvsrel}mdk
%define cvs_name %{name}-snapshot-%cvsdate
%else
%define with_arts 1
%define with_alsa 1
-%define redhat80 0
-%if %redhat80
+%define with_slp 1
+
+%define buildfor_rh80 0
+%define buildfor_mdk82 0
+%define buildfor_mdk90 0
+
+# new macros
+%if %buildfor_mdk82 || %buildfor_mdk90 || %buildfor_rh80
+%define libname lib%name%libmajor
+%else
+%define libname %mklibname %name %libmajor
+%endif
+
+%if %buildfor_rh80
%define release %rel
# some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
%define make %__make
-%define makeinstall_std make DESTDIR="$RPM_BUILD_ROOT" install
+%define makeinstall_std %__make DESTDIR="$RPM_BUILD_ROOT" install
# adjust define for Redhat.
%endif
%{?_without_arts: %{expand: %%define with_arts 0}}
%{?_without_alsa: %{expand: %%define with_alsa 0}}
+%{?_without_slp: %{expand: %%define with_slp 0}}
+
# with
%{?_with_mozilla: %{expand: %%define with_mozilla 1}}
%{?_with_gtk: %{expand: %%define with_gtk 1}}
%{?_with_arts: %{expand: %%define with_arts 1}}
%{?_with_alsa: %{expand: %%define with_alsa 1}}
+%{?_with_slp: %{expand: %%define with_slp 1}}
Summary: VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
Name: %{name}
%endif
%if %with_a52
-#Buildrequires: liba52dec-devel
+Buildrequires: liba52dec-devel
%endif
%if %with_ffmpeg
Buildrequires: libarts-devel
%endif
+%if %with_slp
+Buildrequires: libopenslp-devel
+%endif
+
+
%description
VideoLAN is an OpenSource streaming solution for every OS developed by
students from the Ecole Centrale Paris and developers from all over the
vlc, the VideoLAN Client. To activate it, use the `--aout alsa' flag or
select the `alsa' aout plugin from the preferences menu.
+%package plugin-slp
+Summary: Service Location Protocol acces plugin for the VideoLAN client
+Group: Video
+Requires: %{name} = %{version}
+%description plugin-slp
+VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
+
+This plugin adds support for the Service Location Protocol to
+vlc, the VideoLAN Client.
+
+
%prep
%if %{cvs}
%setup -q -n %{cvs_name}
%make
%install
+rm -f %buildroot
%makeinstall_std
%find_lang %name
install -d %buildroot/%_mandir/man1
%post
%update_menus
%postun
-%update_menus
+%clean_menus
%clean
rm -fr %buildroot
%post -n gvlc
%update_menus
%postun -n gvlc
-%update_menus
+%clean_menus
%endif
%if %with_gnome
%post -n gnome-vlc
%update_menus
%postun -n gnome-vlc
-%update_menus
+%clean_menus
%endif
%if %with_qt
%post -n qvlc
%update_menus
%postun -n qvlc
-%update_menus
+%clean_menus
%endif
%if %with_kde
%post -n kvlc
%update_menus
%postun -n kvlc
-%update_menus
+%clean_menus
%endif
%if %with_ncurses
%_libdir/vlc/audio_output/libalsa_plugin.so
%endif
+%if %with_slp
+%files plugin-slp
+%defattr(-,root,root)
+%doc README
+%_libdir/vlc/access/libslp_plugin.so
+%endif
+
%changelog
* Mon Jun 20 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.2-1mdk
- new upstream release