Commit 9c7700d3 authored by Yves Duret's avatar Yves Duret

- new access/slp plugin.

- more buildfor_{rh80,mdk{82,90}} stuff.
- use %%mklibname macro.
- use %%clean_menus in postun instead of %%update_menus everywhere.
parent ba0c772b
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
%define rel 0.1 %define rel 0.1
%define libmajor 0 %define libmajor 0
%define libname lib%name%libmajor
%define cvs 1 %define cvs 1
%if %{cvs} %if %{cvs}
%define cvsrel 1 %define cvsrel 1
%define cvsdate 20030116 %define cvsdate 20030120
%define release 0.%{cvsdate}.%{cvsrel}mdk %define release 0.%{cvsdate}.%{cvsrel}mdk
%define cvs_name %{name}-snapshot-%cvsdate %define cvs_name %{name}-snapshot-%cvsdate
%else %else
...@@ -43,13 +42,25 @@ ...@@ -43,13 +42,25 @@
%define with_arts 1 %define with_arts 1
%define with_alsa 1 %define with_alsa 1
%define redhat80 0 %define with_slp 1
%if %redhat80
%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 %define release %rel
# some mdk macros that do not exist in rh # some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr %define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
%define make %__make %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. # adjust define for Redhat.
%endif %endif
...@@ -79,6 +90,8 @@ ...@@ -79,6 +90,8 @@
%{?_without_arts: %{expand: %%define with_arts 0}} %{?_without_arts: %{expand: %%define with_arts 0}}
%{?_without_alsa: %{expand: %%define with_alsa 0}} %{?_without_alsa: %{expand: %%define with_alsa 0}}
%{?_without_slp: %{expand: %%define with_slp 0}}
# with # with
%{?_with_mozilla: %{expand: %%define with_mozilla 1}} %{?_with_mozilla: %{expand: %%define with_mozilla 1}}
%{?_with_gtk: %{expand: %%define with_gtk 1}} %{?_with_gtk: %{expand: %%define with_gtk 1}}
...@@ -105,6 +118,7 @@ ...@@ -105,6 +118,7 @@
%{?_with_arts: %{expand: %%define with_arts 1}} %{?_with_arts: %{expand: %%define with_arts 1}}
%{?_with_alsa: %{expand: %%define with_alsa 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. Summary: VideoLAN is a free MPEG, MPEG2, DVD and DivX software solution.
Name: %{name} Name: %{name}
...@@ -179,7 +193,7 @@ Buildrequires: libdv2-devel ...@@ -179,7 +193,7 @@ Buildrequires: libdv2-devel
%endif %endif
%if %with_a52 %if %with_a52
#Buildrequires: liba52dec-devel Buildrequires: liba52dec-devel
%endif %endif
%if %with_ffmpeg %if %with_ffmpeg
...@@ -196,6 +210,11 @@ Buildrequires: libesound0-devel ...@@ -196,6 +210,11 @@ Buildrequires: libesound0-devel
Buildrequires: libarts-devel Buildrequires: libarts-devel
%endif %endif
%if %with_slp
Buildrequires: libopenslp-devel
%endif
%description %description
VideoLAN is an OpenSource streaming solution for every OS developed by VideoLAN is an OpenSource streaming solution for every OS developed by
students from the Ecole Centrale Paris and developers from all over the students from the Ecole Centrale Paris and developers from all over the
...@@ -471,6 +490,17 @@ This plugin adds support for the Advanced Linux Sound Architecture to ...@@ -471,6 +490,17 @@ This plugin adds support for the Advanced Linux Sound Architecture to
vlc, the VideoLAN Client. To activate it, use the `--aout alsa' flag or vlc, the VideoLAN Client. To activate it, use the `--aout alsa' flag or
select the `alsa' aout plugin from the preferences menu. 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 %prep
%if %{cvs} %if %{cvs}
%setup -q -n %{cvs_name} %setup -q -n %{cvs_name}
...@@ -579,6 +609,7 @@ export QTDIR=%{_libdir}/qt3 ...@@ -579,6 +609,7 @@ export QTDIR=%{_libdir}/qt3
%make %make
%install %install
rm -f %buildroot
%makeinstall_std %makeinstall_std
%find_lang %name %find_lang %name
install -d %buildroot/%_mandir/man1 install -d %buildroot/%_mandir/man1
...@@ -645,7 +676,7 @@ rm -f %pngdir/* ...@@ -645,7 +676,7 @@ rm -f %pngdir/*
%post %post
%update_menus %update_menus
%postun %postun
%update_menus %clean_menus
%clean %clean
rm -fr %buildroot rm -fr %buildroot
...@@ -848,7 +879,7 @@ rm -fr %buildroot ...@@ -848,7 +879,7 @@ rm -fr %buildroot
%post -n gvlc %post -n gvlc
%update_menus %update_menus
%postun -n gvlc %postun -n gvlc
%update_menus %clean_menus
%endif %endif
%if %with_gnome %if %with_gnome
...@@ -865,7 +896,7 @@ rm -fr %buildroot ...@@ -865,7 +896,7 @@ rm -fr %buildroot
%post -n gnome-vlc %post -n gnome-vlc
%update_menus %update_menus
%postun -n gnome-vlc %postun -n gnome-vlc
%update_menus %clean_menus
%endif %endif
%if %with_qt %if %with_qt
...@@ -881,7 +912,7 @@ rm -fr %buildroot ...@@ -881,7 +912,7 @@ rm -fr %buildroot
%post -n qvlc %post -n qvlc
%update_menus %update_menus
%postun -n qvlc %postun -n qvlc
%update_menus %clean_menus
%endif %endif
%if %with_kde %if %with_kde
...@@ -896,7 +927,7 @@ rm -fr %buildroot ...@@ -896,7 +927,7 @@ rm -fr %buildroot
%post -n kvlc %post -n kvlc
%update_menus %update_menus
%postun -n kvlc %postun -n kvlc
%update_menus %clean_menus
%endif %endif
%if %with_ncurses %if %with_ncurses
...@@ -1014,6 +1045,13 @@ rm -fr %buildroot ...@@ -1014,6 +1045,13 @@ rm -fr %buildroot
%_libdir/vlc/audio_output/libalsa_plugin.so %_libdir/vlc/audio_output/libalsa_plugin.so
%endif %endif
%if %with_slp
%files plugin-slp
%defattr(-,root,root)
%doc README
%_libdir/vlc/access/libslp_plugin.so
%endif
%changelog %changelog
* Mon Jun 20 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.2-1mdk * Mon Jun 20 2002 Yves Duret <yduret@mandrakesoft.com> 0.4.2-1mdk
- new upstream release - new upstream release
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment