Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37859277
en ru br
ALT Linux repos
5.0: 0.10.22-alt2
4.1: 0.10.21-alt0.M41.1
4.0: 0.10.14-alt1.M40.1
3.0: 0.8.10-alt1

Group :: System/Libraries
RPM: gstreamer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define origname gstreamer
%define ver_major 0.10

Name: %origname
Version: %ver_major.14
Release: alt1.M40.1

%def_disable debug
%def_disable static
%def_enable tests

Summary: GStreamer streaming media framework runtime
License: LGPL
Group: System/Libraries
URL: http://gstreamer.freedesktop.org

Packager: Igor Zubkov <icesik at altlinux.org>

Requires: lib%name = %version-%release
Provides: %origname%ver_major = %version
Obsoletes: %origname%ver_major

%define pkgdocdir %_docdir/%origname-%ver_major
%define _gtk_docdir %_datadir/gtk-doc/html
%define _gst_libdir %_libdir/%origname-%ver_major
%define _gst_ignore_regexp ^%_libdir/%origname-%(echo %ver_major | sed 's/\\./\\\\./g')/.*\.so$

Source: http://gstreamer.freedesktop.org/src/%origname/%origname-%version.tar.bz2

%define glib_ver 2.8
%define libxml2_ver 2.6.17

# Automatically added by buildreq on Mon Sep 10 2007

BuildRequires: check cvs docbook-utils-print flex gcc-c++ gcc-fortran ghostscript-module-X ghostscript-utils glib2-devel glibc-devel-static gtk-doc libxml2-devel python-module-PyXML python-modules-compiler python-modules-email python-modules-encodings python-modules-logging transfig w3c-markup-validator-libs


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

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

%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: glib2-devel >= %glib_ver
Provides: %origname%ver_major-devel = %version
Obsoletes: %origname%ver_major-devel

%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
Obsoletes: %origname%ver_major-doc
Conflicts: gstreamer < 0.8.8-alt1

%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
Provides: %origname%ver_major-devel-static = %version
Obsoletes: %origname%ver_major-devel-static

%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
Provides: %origname%ver_major-utils = %version
Obsoletes: %origname%ver_major-utils

%description utils
This package contains some utilities used to register, analyze, and run
Gstreamer plugins.

%prep
%setup -q -n %origname-%version

%build
NOCONFIGURE=1 ./autogen.sh

export ac_cv_path_VALGRIND_PATH=%_bindir/valgrind
%configure \
   --disable-examples \
   --disable-valgrind \
   --enable-docbook \
   --enable-gtk-doc \
   --disable-rpath \
   --with-html-dir=%_gtk_docdir \
   %{subst_enable tests} \
   %{subst_enable debug} \
   %{subst_enable static}

# Non-parallel build

%make

%install
%make_install install DESTDIR=%buildroot

# docs

%__install -d -m755 %buildroot%pkgdocdir
%__install -p -m644 AUTHORS ChangeLog NEWS README RELEASE \
%buildroot%pkgdocdir/
%__bzip2 -9 %buildroot%pkgdocdir/ChangeLog
%__ln_s %_licensedir/LGPL-2 %buildroot%pkgdocdir/COPYING

mkdir -p %buildroot%_sysconfdir/buildreqs/files/ignore.d
cat <<EOF >%buildroot%_sysconfdir/buildreqs/files/ignore.d/%name
%_gst_ignore_regexp
EOF

# remove non-packaged files

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

%find_lang %origname-%ver_major

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

%files -f %origname-%ver_major.lang
%dir %_gst_libdir
%_gst_libdir/*.so
%_sysconfdir/buildreqs/files/ignore.d/%name
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog*
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/RELEASE

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

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%_datadir/aclocal/*

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

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

%files utils
%_bindir/*
%_man1dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin