File lash.spec of Package lash
#
# spec file for package lash (Version 0.5.0)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: lash
BuildRequires: alsa-devel e2fsprogs-devel gtk2-devel libjack-devel libxml2-devel readline-devel update-desktop-files
Summary: Linux Audio Session Handler
Version: 0.5.0
Release: 225
Group: Productivity/Multimedia/Sound/Utilities
AutoReqProv: on
PreReq: %install_info_prereq
Obsoletes: ladcca <= 0.4.0
Provides: ladcca = 0.4.0
License: GPL v2 or later
Url: http://savannah.nongnu.org/projects/lash
Source: %name-%version.tar.bz2
Source1: %name.desktop
Source2: %name.png
Patch: lash-automake-fix.diff
Patch1: lash-info-entry.diff
Patch2: lash-nogtk1.diff
Patch3: lash-0.5.0-pkgconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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>
%package libs
License: GPL v2 or later
Summary: Shared libraries for LASH system
Group: System/Libraries
Obsoletes: ladcca-libs <= 0.4.0
Provides: ladcca-libs = 0.4.0
%description libs
This package contains the shared libraries for LASH system.
Authors:
--------
Bob Ham <node@users.sourceforge.net>
Dave Robillard <drobilla@connect.carelton.ca>
%package devel
License: GPL v2 or later
Summary: Development package for LASH
Group: Development/Libraries/C and C++
Requires: lash-libs = %{version}
Requires: alsa-devel libuuid-devel
Obsoletes: ladcca-devel <= 0.4.0
Provides: ladcca-devel = 0.4.0
%description devel
This package contains the files needed to compile programs that use the
LASH system.
Authors:
--------
Bob Ham <node@users.sourceforge.net>
Dave Robillard <drobilla@connect.carelton.ca>
%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%build
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --disable-static --with-pic --disable-serv-inst
%{__make} %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file -i %name AudioVideo Music
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post
%install_info --info-dir=%{_infodir} %{_infodir}/lash-manual.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/lash-manual.info.gz
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
/usr/share/applications/%name.desktop
%{_datadir}/pixmaps/*.png
%{_bindir}/*
%{_infodir}/*.info*
%files libs
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%{_datadir}/lash
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%changelog