Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37904396
en ru br
Репозитории ALT
5.1: 0.10.25-alt2
4.1: 0.10.21-alt0.M41.1
4.0: 0.10.14-alt1.M40.1
3.0: 0.8.10-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: gstreamer

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 0.8

Name: gstreamer
Version: %ver_major.10
Release: alt1

%def_disable static
%def_enable tests
%def_without libmmx

Summary: GStreamer Streaming-media framework runtime
License: LGPL
Group: System/Libraries
Url: http://%name.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>

Requires: lib%name = %version-%release
Requires(post): %name-utils = %version-%release

Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2
Source1: %name.rpmmacros
Patch: %name-0.7.5-alt-dependency-loop.patch
Patch1: %name-0.8.0-alt-no-fancy-docs.patch

%define glib_ver 2.6.3
%define gtk_doc_ver 1.3
%define python_ver 2.1
%define libxml2_ver 2.6.17

BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: gtk-doc >= %gtk_doc_ver
BuildPreReq: python >= %python_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildPreReq: autoconf >= 2.52
BuildPreReq: automake >= 1.6
BuildPreReq: pkgconfig >= 0.8.0

# Automatically added by buildreq on Tue Sep 14 2004

BuildRequires: ORBit2-devel OpenSP XFree86-libs cvs docbook-dtds docbook-style-dsssl docbook-style-xsl docbook-utils flex gcc-c++ gcc-g77 ghostscript-classic ghostscript-common ghostscript-module-X glib glib2-devel gnome-vfs2-devel gtk-doc libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libgimp-print libgnome-devel libgnomecanvas-devel libgnomeui-devel libgpg-error libgtk+2-devel libpango-devel libpopt-devel libstdc++-devel libxml2-devel openjade pkgconfig python-base python-modules-encodings sgml-common tetex-dvips transfig urw-fonts xml-common xml-utils xsltproc zlib-devel

%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.

This package also contains some utilities to register analyze and run
Gstreamer plugins.

%package -n lib%name
Summary: Shared libraries of GStreamer
Group: System/Libraries
Requires: glib2 >= %glib_ver
Requires: libxml2 >= %libxml2_ver

%description -n lib%name
This package contains the shared libraries of the GStreamer media framework.

%package devel
Summary: Development files for GStreamer streaming-media framework
Group: Development/C
Requires: lib%name = %version-%release
Requires: %name-utils = %version-%release
Requires: glib2-devel >= %glib_ver

%description devel
This package contains the libraries and header files necessary to
develop applications and plugins for GStreamer.

To make work with GStreamer documentation more comfortable install
%name-devel-doc package.

%package devel-doc
Summary: Development documentation for GStreamer
Group: Development/C
Conflicts: %name < %version-%release

%description devel-doc
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 development documentation for GStreamer.

%package devel-static
Summary: Static libraries for GStreamer streaming-media framework
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
This package contains the static libraries necessary to develop
statically linked applications and plugins for GStreamer.

%package utils
Summary: GStreamer utilities
Group: System/Libraries
Requires: lib%name = %version-%release

%description utils
This package contains utilities needed to work with GStreamer.

%define pkgdocdir %_docdir/%name-%version
%define _gtk_docdir %_datadir/gtk-doc/html
%define gstreamer_cachedir %_var/lib/%name-%ver_major
%define _gst_libdir %_libdir/%name-%ver_major

%prep
%setup -q
%patch -p1
%patch1 -p1

%build
# Required by Patch0, Patch1
NOCONFIGURE=1 ./autogen.sh

%configure \
--program-suffix="" \
--enable-docs-build \
--disable-examples \
--disable-rpath \
%if_with libmmx
--enable-libmmx \
%endif
--with-html-dir=%_gtk_docdir \
--with-cachedir=%gstreamer_cachedir \
%{subst_enable tests} \
%{subst_enable static}

# SMP-incompatible build

%make

%install
%makeinstall HTML_DIR=%buildroot%_gtk_docdir
%__install -d -m755 %buildroot%gstreamer_cachedir

# requires to register gst-plugins.

%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__install -p -m644 %SOURCE1 %buildroot%_sysconfdir/rpm/macros.d/%name

# docs

%__install -p -m644 AUTHORS ChangeLog NEWS README RELEASE REQUIREMENTS TODO \
%buildroot%pkgdocdir/
%__bzip2 -9 %buildroot%pkgdocdir/ChangeLog
%__ln_s %_licensedir/LGPL-2 %buildroot%pkgdocdir/COPYING.LIB

%make -C examples distclean
%__cp -a examples %buildroot%pkgdocdir/

# remove non-packaged files

%__rm -f %buildroot%_gst_libdir/*.la

%find_lang %name-%ver_major

%post
%_bindir/gst-register --gst-debug-disable >/dev/null
%_bindir/gst-compprep >/dev/null ||:

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -f %name-%ver_major.lang
%dir %_gst_libdir
%_gst_libdir/*.so
%dir %gstreamer_cachedir
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog*
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/RELEASE
%pkgdocdir/REQUIREMENTS
%pkgdocdir/TODO

%files  -n lib%name
%_libdir/*.so.*
%dir %pkgdocdir
%pkgdocdir/COPYING.LIB

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%_datadir/aclocal/*
%_sysconfdir/rpm/macros.d/%name

%files devel-doc
%_gtk_docdir/*
%dir %pkgdocdir
%pkgdocdir/[a-z]*

%if_enabled static
%files devel-static
%_libdir/*.a
%_gst_libdir/*.a
%endif

%files utils
%_bindir/*
%_man1dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin