LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lash.spec of Package lash (Project openSUSE:Factory)

#
# spec file for package lash
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#


Name:           lash
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
Summary:        Linux Audio Session Handler
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Version:        0.5.4
Release:        0
PreReq:         %install_info_prereq
Url:            http://git.savannah.gnu.org/cgit/lash.git
Source:         %name-%version.tar.bz2
Source1:        %name.desktop
Source2:        %name.png
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

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

Authors:
--------
    Bob Ham <node@users.sourceforge.net>
    Dave Robillard <drobilla@connect.carelton.ca>

%prep
%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3
%patch4
%patch5 -p1

%build
./autogen.sh
%configure --enable-static=no --datadir=/usr/share/%{name}-%{version}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%__rm -f %{buildroot}%{python_sitelib}/_lash.la
%__rm -f %{buildroot}%{python_sitelib}/_lash.a
%__chmod 644 %{buildroot}/%{python_sitelib}/lash.py
%__rm %{buildroot}%{_libdir}/lib*.la

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

%clean
rm -rf $RPM_BUILD_ROOT

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

Authors:
--------
    Bob Ham <node@users.sourceforge.net>
    Dave Robillard <drobilla@connect.carelton.ca>

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

Authors:
--------
    Bob Ham <node@users.sourceforge.net>
    Dave Robillard <drobilla@connect.carelton.ca>


%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_datadir}/%{name}-%{version}/

%files -n liblash1
%defattr(-,root,root)
%{_libdir}/liblash.so.*

%files -n lash-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

%files -n python-lash
%defattr(-,root,root)
%doc pylash/test.py
%{python_sitelib}/_lash.so
%{python_sitelib}/lash.py

%post -n liblash1 -p /sbin/ldconfig

%postun -n liblash1 -p /sbin/ldconfig

%changelog