]> git.pld-linux.org Git - packages/gstreamer.git/blobdiff - gstreamer.spec
- (googled) ppc fix (compilation without -mregnames)
[packages/gstreamer.git] / gstreamer.spec
index 99213c15b4848f97ccefcd758f2cb6033b24f4e1..34c1e8a68f0fd9ce4c12c6e1e83385e5ccc2dcdf 100644 (file)
@@ -1,19 +1,36 @@
 Summary:       GStreamer Streaming-media framework runtime
 Summary(pl):   GStreamer - biblioteki ¶rodowiska do obróbki strumieni
 Name:          gstreamer
-Version:       0.4.2
+Version:       0.6.4
 Release:       1
 License:       LGPL
 Group:         Libraries
-Source0:       http://prdownloads.sourceforge.net/gstreamer/%{name}-%{version}.tar.bz2
+Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
+# Source0-md5: d607f42d4a6de9e79d74ccaa6469ded6
+Patch0:                %{name}-libtool.patch
+Patch1:                %{name}-without_ps_pdf.patch
+Patch2:                %{name}-doc-destdir.patch
 URL:           http://gstreamer.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: flex
 BuildRequires: glib2-devel >= 2.0.1
+BuildRequires: gtk-doc >= 0.7
+BuildRequires: libtool
 BuildRequires: libxml2-devel >= 2.4.17
 BuildRequires: nasm
 BuildRequires: pkgconfig
+BuildRequires: popt-devel >= 1.6.1
+BuildRequires: transfig
+BuildRequires: xmlto
 Requires(post):        /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _gstlibdir      %{_libdir}/gstreamer-0.6
+%define                _gstincludedir  %{_includedir}/gstreamer-0.6
+%define                _gstcachedir    %{_var}/cache/gstreamer-0.6
+
 %description
 GStreamer is a streaming-media framework, based on graphs of filters
 which operate on media data. Applications using this library can do
@@ -35,6 +52,9 @@ Summary:      Include files for GStreamer streaming-media framework
 Summary(pl):   Pliki nag³ówkowe do ¶rodowiska obróbki strumieni GStreamer
 Group:         Development/Libraries
 Requires:      %{name} = %{version}
+Requires:      glib2-devel >= 2.0.1
+Requires:      libxml2-devel >= 2.4.17
+Requires:      popt-devel >= 1.6.1
 
 %description devel
 This package contains the includes files necessary to develop
@@ -58,20 +78,47 @@ Statyczne wersje bibliotek GStreamer.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I common/m4
 %{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
+%ifarch i586 i686 athlon
+       --enable-fast-stack-trash \
+%else
+       --disable-fast-stack-trash \
+%endif
        --enable-glib2 \
        --enable-libmmx \
-       --enable-atomic
-
+       --enable-atomic \
+       --disable-examples \
+       --disable-tests \
+       --disable-debug \
+       --disable-debug-color \
+       --enable-docs-build \
+       --with-html-dir=%{_gtkdocdir} \
+       --with-cachedir=%{_gstcachedir}
+       
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+
+install -d $RPM_BUILD_ROOT%{_gstcachedir}
+touch $RPM_BUILD_ROOT%{_gstcachedir}/registry.xml
+
+# no static modules and *.la for them - shut up check files
+rm -f $RPM_BUILD_ROOT%{_gstlibdir}/lib*.{la,a}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -84,21 +131,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS README RELEASE NEWS TODO ChangeLog
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*
-%dir %{_libdir}/gst
-%attr(755,root,root) %{_libdir}/gst/*.so*
-%{_libdir}/gst/*.la
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%dir %{_gstlibdir}
+%attr(755,root,root) %{_gstlibdir}/*.so
+%dir %{_gstcachedir}
+%ghost %{_gstcachedir}/registry.xml
 %{_mandir}/man1/*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_libdir}/lib*.la
-%{_includedir}/%{name}-%{version}
+%{_gstincludedir}
+%{_gtkdocdir}/*
 %{_pkgconfigdir}/*
+%{_aclocaldir}/*
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
-%{_libdir}/gst/lib*.a
This page took 0.084914 seconds and 4 git commands to generate.