File gstreamer0.10.spec of Package gstreamer0.10

#
# spec file for package gst0
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define ver_major 0.10
Name:           gstreamer%{ver_major}
Version:        %{ver_major}.36
Release:        0
Summary:        GStreamer streaming media framework runtime (legacy version)
License:        LGPL
Group:          System/Libraries
URL:            https://gstreamer.freedesktop.org
Source:         gstreamer-%{version}.tar
Source1:        common.tar
Patch0:         gstreamer-%{version}-alt2.patch
Patch1:         gstreamer-0.10.36-bison3.patch
BuildRequires:  docbook-utils
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  ghostscript-devel
BuildRequires:  glib2-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  check-devel
BuildRequires:  libxml2-devel
BuildRequires:  python-rpm-macros python3-subst
BuildRequires:  sgmltool
BuildRequires:  transfig
BuildRequires:  libxml2-tools
Requires:       lib%{name} = %{version}

%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 (legacy version)
Group:          System/Libraries

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

%package -n lib%{name}-gir
Summary:        GObject introspection data for the GStreamer library (legacy version)
Group:          System/Libraries
Requires:       lib%{name} = %{version}

%description -n lib%{name}-gir
GObject introspection data for the GStreamer library

%package devel
Summary:        Development files for GStreamer streaming-media framework (legacy version)
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/C
Requires:       lib%{name} = %{version}

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

%package gir-devel
Summary:        GObject introspection devel data for the GStreamer library (legacy version)
Group:          System/Libraries
Requires:       %{name}-devel = %{version}
Requires:       lib%{name}-gir = %{version}
BuildArch:      noarch

%description gir-devel
GObject introspection devel data for the GStreamer library

%prep
%setup -q -a1 -n gstreamer-%{version}
%patch0 -p1
%patch1 -p1

touch ABOUT-NLS config.rpath
subst '/.PHONY/d' Makefile.am

%build
%{autoreconf}
%configure \
	--with-package-name=GStreamer \
	--with-package-origin=%{name} \
	--disable-examples \
	--disable-valgrind \
	--disable-docbook \
	--disable-gtk-doc \
	--disable-rpath \
	--disable-tests \
	--disable-debug \
	--disable-static

%make_build

%install
%{make} DESTDIR=%{buildroot} install

%find_lang %{name}-%{ver_major}

%files -f %{name}-%{ver_major}.lang
%doc AUTHORS NEWS README RELEASE
%{_libexecdir}/gstreamer-%{ver_major}
%dir %{_libdir}/gstreamer-%{ver_major}
%{_libdir}/gstreamer-%{ver_major}/*.so

%files -n lib%{name}
%{_libdir}/*.so.*

%files -n lib%{name}-gir
%{_libdir}/girepository-1.0/*.typelib

%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_pkgconfigdir}/*.pc
%{_datadir}/aclocal/*

%files gir-devel
%{_datadir}/gir-1.0/*.gir

%changelog
openSUSE Build Service is sponsored by