X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gstreamer.spec;h=b1f3df3537bfbf151f5dbd985349f9f565168b0b;hb=9e6e41676c9e8d3c08cf10325d693361a5630729;hp=5bcc2246dd9e5bfdaa6d3985c77f9985a0aed9d7;hpb=50b962f4ef0af4bf6f218c6ecfd683375feee9fe;p=packages%2Fgstreamer.git diff --git a/gstreamer.spec b/gstreamer.spec index 5bcc224..b1f3df3 100644 --- a/gstreamer.spec +++ b/gstreamer.spec @@ -1,18 +1,35 @@ Summary: GStreamer Streaming-media framework runtime Summary(pl): GStreamer - biblioteki ¶rodowiska do obróbki strumieni Name: gstreamer -Version: 0.4.1 +Version: 0.8.0 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.8/%{name}-%{version}.tar.bz2 +# Source0-md5: 275384c4001c6b934f159952f39e2f36 +Patch0: %{name}-without_ps_pdf.patch URL: http://gstreamer.net/ -BuildRequires: glib2-devel >= 2.0.0 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: bison +BuildRequires: flex +BuildRequires: glib2-devel >= 1:2.4.0 +BuildRequires: gtk-doc >= 1.0 +BuildRequires: libtool BuildRequires: libxml2-devel >= 2.4.17 BuildRequires: nasm +BuildRequires: perl-base BuildRequires: pkgconfig +BuildRequires: popt-devel >= 1.6.3 +BuildRequires: transfig +BuildRequires: xmlto +Requires(post): /sbin/ldconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _gstlibdir %{_libdir}/gstreamer-0.8 +%define _gstincludedir %{_includedir}/gstreamer-0.8 +%define _gstcachedir %{_var}/cache/gstreamer + %description GStreamer is a streaming-media framework, based on graphs of filters which operate on media data. Applications using this library can do @@ -33,7 +50,10 @@ nowych typ 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: %{name} = %{version}-%{release} +Requires: glib2-devel >= 1:2.4.0 +Requires: libxml2-devel >= 2.4.17 +Requires: popt-devel >= 1.6.3 %description devel This package contains the includes files necessary to develop @@ -47,7 +67,7 @@ i wtyczek do GStreamera. Summary: GStreamer static libraries Summary(pl): Biblioteki statyczne GStreamer Group: Development/Libraries -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static Static versions of GStreamer libraries. @@ -57,44 +77,86 @@ Statyczne wersje bibliotek GStreamer. %prep %setup -q +%patch0 -p1 %build +#intltoolize --copy --force +#%%{__gettextize} +%{__libtoolize} +%{__aclocal} -I common/m4 +%{__autoconf} +%{__autoheader} +%{__automake} + %configure \ + --program-suffix="" \ +%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 +install -d $RPM_BUILD_ROOT{%{_gstcachedir},%{_docdir}/%{name}-devel-%{version}} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +touch $RPM_BUILD_ROOT%{_gstcachedir}/registry.xml + +mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{manual,pwg} \ + $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version} + +%find_lang %{name} --all-name --with-gnome -%{__make} DESTDIR=$RPM_BUILD_ROOT install +# 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 %post /sbin/ldconfig -%{_bindir}/gst-register --gst-mask=0 +# how to do it ???? +%{_bindir}/gst-register --gst-registry=%{_gstcachedir}/registry.xml +#%%{_bindir}/gst-register --gst-mask=0 %postun -p /sbin/ldconfig -%files +%files -f %{name}.lang %defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README TODO %attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/lib*.so.* -%attr(755,root,root) %{_libdir}/gst/*.so* -%attr(755,root,root) %{_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) +%doc DEVEL %attr(755,root,root) %{_libdir}/lib*.so -%{_includedir}/%{name}-%{version} +%{_libdir}/lib*.la +%{_gstincludedir} +%{_gtkdocdir}/* %{_pkgconfigdir}/* +%{_aclocaldir}/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a -%{_libdir}/gst/lib*.a