-%define name gstreamer
-%define ver 0.1.1
-%define rel 1
-%define prefix /usr
-
-Summary: GStreamer Streaming-media framework runtime
-Name: %name
-Version: %ver
-Release: %rel
-Copyright: LGPL
-Group: Libraries
-Source: %{name}-%{ver}.tar.gz
-BuildRoot: /var/tmp/%{name}-%{ver}-root
-Docdir: %{prefix}/doc
-Prefix: %prefix
+Summary: GStreamer Streaming-media framework runtime
+Summary(pl): GStreamer - biblioteki ¶rodowiska do obróbki strumieni
+Name: gstreamer
+Version: 0.2.2
+Release: 0.20011125.1
+License: LGPL
+Group: Libraries
+Group(de): Libraries
+Group(es): Bibliotecas
+Group(fr): Librairies
+Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
+Source0: http://download.sourceforge.net/gstreamer/%{name}.tar.bz2
+#Source0: http://download.sourceforge.net/gstreamer/%{name}-%{version}.tar.bz2
+Patch0: %{name}-size_t.patch
+URL: http://gstreamer.net/
+BuildRequires: nasm
+BuildRequires: pkgconfig
+BuildRequires: GConf-devel
+BuildRequires: Hermes-devel
+BuildRequires: SDL-devel
+BuildRequires: aalib-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: arts-devel
+BuildRequires: audiofile-devel
+BuildRequires: avifile-devel
+BuildRequires: cdparanoia-III-devel
+BuildRequires: esound-devel
+BuildRequires: gdk-pixbuf-devel
+BuildRequires: gnome-libs-devel
+BuildRequires: gnome-vfs-devel
+BuildRequires: gtk+-devel
+BuildRequires: lame-libs-devel
+BuildRequires: libdv-devel
+BuildRequires: libdvdread-devel
+BuildRequires: libghttp-devel
+BuildRequires: libglade-devel
+BuildRequires: libgsm-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libmikmod-devel
+BuildRequires: libraw1394-devel
+BuildRequires: libvorbis-devel
+BuildRequires: libxml-devel
+BuildRequires: mad-devel
+BuildRequires: mpeg2dec-devel
+BuildRequires: quicktime4linux-devel
+BuildRequires: xmms-devel
+
+# libshout 1.0.5 is out of date...
+# http://cvs.icecast.org/cvsweb.cgi/
+# module shout
+#BuildRequires: libshout-devel
+
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-GStreamer is a streaming-media framework, based on graphs of filters which
-operate on media data. Applications using this library can do anything
-from real-time sound processing to playing videos, and just about anything
-else media-related. Its plugin-based architecture means that new data
-types or processing capabilities can be added simply by installing new
-plugins.
+GStreamer is a streaming-media framework, based on graphs of filters
+which operate on media data. Applications using this library can do
+anything from real-time sound processing to playing videos, and just
+about anything else media-related. Its plugin-based architecture means
+that new data types or processing capabilities can be added simply by
+installing new plugins.
+
+%description -l pl
+GStreamer to ¶rodowisko obróbki danych strumieniowych, bazuj±ce na
+grafie filtrów operuj±cych na danych medialnych. Aplikacje u¿ywaj±ce
+tej biblioteki mog± robiæ wszystko od przetwarzania d¼wiêku w czasie
+rzeczywistym, do odtwarzania filmów i czegokolwiek innego zwi±zego z
+mediami. Architektura bazuj±ca na wtyczkach pozwala na ³atwe dodawanie
+nowych typów danych lub mo¿liwo¶ci obróbki.
%package devel
-Summary: Libraries and include files for GStreamer streaming-media framework
-Group: Development/Libraries
-Requires: %{name}
+Summary: Include files for GStreamer streaming-media framework
+Summary(pl): Pliki nag³ówkowe do ¶rodowiska obróbki strumieni GStreamer
+Group: Development/Libraries
+Group(de): Entwicklung/Libraries
+Group(es): Desarrollo/Bibliotecas
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Group(pt_BR): Desenvolvimento/Bibliotecas
+Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires: %{name} = %{version}
%description devel
-GStreamer is a streaming-media framework, based on graphs of filters which
-operate on media data. Applications using this library can do anything
-from real-time sound processing to playing videos, and just about anything
-else media-related. Its plugin-based architecture means that new data
-types or processing capabilities can be added simply by installing new
-plugins.
-
-This package contains the libraries and includes files necessary to develop
+This package contains the includes files necessary to develop
applications and plugins for GStreamer.
-%changelog
-* Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu>
-- updated to build -devel package as well
-
-* Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu>
-- first draft of spec file
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe potrzebne do rozwijania aplikacji
+i wtyczek do GStreamera.
+
+%package static
+Summary: GStreamer static libraries
+Summary(pl): Biblioteki statyczne GStreamer
+Group: Development/Libraries
+Group(de): Entwicklung/Libraries
+Group(es): Desarrollo/Bibliotecas
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Group(pt_BR): Desenvolvimento/Bibliotecas
+Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires: %{name}-devel = %{version}
+
+%description static
+Static versions of GStreamer libraries.
+
+%description static -l pl
+Statyczne wersje bibliotek GStreamer.
%prep
-%setup
+%setup -q -n %{name}
+%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
-
-if [ "$SMP" != "" ]; then
- (make "MAKE=make -k -j $SMP"; exit 0)
- make
-else
- make
-fi
+rm -f missing
+./makeconfigure < configure.base > configure.in configure.in
+libtoolize --force --copy
+aclocal
+automake --add-missing
+autoconf
+%configure \
+ --enable-libmmx \
+ --enable-libghttp \
+ --enable-alsa \
+ --enable-libxmms \
+ --enable-gdk_pixbuf \
+ --enable-libaudiofile \
+ --enable-libesd \
+ --enable-arts \
+ --enable-atomic \
+ --enable-autoplug
+
+%{__make}
%install
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
%clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
-%{prefix}/bin/gstreamer-register
+%{_bindir}/gstreamer-register
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
-%defattr(-, root, root)
-%{prefix}/bin/*
-%{prefix}/lib/lib*.so.*
-%{prefix}/lib/gst/*
-%{prefix}/share/*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%{_libdir}/lib*.so.*
+%{_libdir}/gst/*
+%{_datadir}/*
%files devel
-%{prefix}/include/*
-%{prefix}/lib/lib*.a
-%{prefix}/lib/lib*.so
+%defattr(644,root,root,755)
+%{_includedir}/*
+%{_libdir}/lib*.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a