File lash.spec of Package lash

# spec file for package lash
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           lash
Version:        0.5.4
Release:        0
Summary:        Linux Audio Session Handler
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Utilities
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}.png
Source1000:     baselibs.conf
Patch0:         lash-gcc44.patch
Patch1:         lash-implicit-fortify-decl.patch
Patch2:         lash-info-entry.diff
Patch3:         lash-swig-2x.patch
Patch4:         lash-add-needed.patch
Patch5:         lash-resource.patch
Patch6:         lash-glibc-2.22.patch
BuildRequires:  alsa-devel
BuildRequires:  e2fsprogs-devel
BuildRequires:  glibc-devel
BuildRequires:  gtk2-devel
BuildRequires:  libjack-devel
BuildRequires:  libtool
BuildRequires:  libuuid-devel
BuildRequires:  libxml2-devel
BuildRequires:  python-devel
BuildRequires:  readline-devel
BuildRequires:  swig
# FIXME: use proper Requires(pre/post/preun/...)
PreReq:         %{install_info_prereq}

LASH (formerly LADCCA) is a session management system for JACK and ALSA
audio applications on GNU/Linux. Its aim is to allow you to have many
different audio programs running at once and to save the setup, close
them down, then reload the setup at some other time.

%package -n liblash1
Summary:        Development package for LASH
Group:          Development/Libraries/C and C++

%description -n liblash1
This package contains the library for the LASH system.

%package -n python-lash
Summary:        Python bindings for LASH
Group:          Development/Languages/Python
Requires:       %{name} = %{version}
Requires:       python >= %{py_ver}

%description -n python-lash
This package contains the language bindings for Python.

%package -n lash-devel
Summary:        Development package for LASH
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       liblash1 = %{version}
Requires:       libuuid-devel
Requires:       readline-devel

%description -n lash-devel
This package contains the development files for the LASH system.

%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch5 -p1
%patch6 -p1

%configure --enable-static=no --datadir=%{_datadir}/%{name}-%{version}

rm -f %{buildroot}%{python_sitelib}/
rm -f %{buildroot}%{python_sitelib}/_lash.a
chmod 644 %{buildroot}/%{python_sitelib}/
find %{buildroot} -type f -name "*.la" -delete -print

# links for so.2 have to be made for older packages that link against liblash
pushd %{buildroot}%{_libdir}
        ln -s
        ln -s

%license COPYING

%files -n liblash1

%files -n lash-devel

%files -n python-lash
%doc pylash/

%post -n liblash1 -p /sbin/ldconfig
%postun -n liblash1 -p /sbin/ldconfig

openSUSE Build Service is sponsored by