lash/lash.spec

185 lines
7.1 KiB
RPMSpec

%define pkgver %(echo %version | tr _ '~')
%define srcver %(echo %version | sed "s|_.*|.594|")
Name: lash
Version: 0.6.0_rc2
Release: 2mamba
Summary: A session management system for JACK and ALSA audio applications on GNU/Linux
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://lash.nongnu.org/
Source: http://download.savannah.gnu.org/releases/lash/lash-%{pkgver}.tar.bz2
Patch0: %{name}-0.5.4-gcc44.patch
Patch1: lash-0.6.0_rc2-arm-sigsegv.patch
Patch2: lash-0.6.0_rc2-fix-manual-generation.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libalsa-devel
BuildRequires: libatk-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libe2fs-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libjack-devel
BuildRequires: libkrb5-devel
BuildRequires: liblzma-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libreadline-devel
BuildRequires: libstdc++6-devel
BuildRequires: libsystemd-devel
BuildRequires: libtirpc-devel
BuildRequires: libuuid-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: python
## AUTOBUILDREQ-END
BuildRequires: tetex
BuildRequires: swig
Requires: swig
Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
LASH is a session management system for JACK and ALSA audio applications on GNU/Linux. It is an implementation of a proposal that originated from this discussion. Its aim is to allow you to have many different audio programs running at once, to save their setup, close them down and then easily reload the setup at some other time. LASH doesn't deal with any kind of audio data itself; it just runs programs, deals with saving/loading (arbitrary) data and connects different kinds of virtual audio ports together (currently JACK and ALSA sequencer ports). It can also be used to move entire sessions between computers, or post sessions on the Internet for download.
%package -n lib%{name}
Summary: A session management system for JACK and ALSA audio applications on GNU/Linux
Group: System/Libraries
%description -n lib%{name}
LASH is a session management system for JACK and ALSA audio applications on GNU/Linux. It is an implementation of a proposal that originated from this discussion. Its aim is to allow you to have many different audio programs running at once, to save their setup, close them down and then easily reload the setup at some other time. LASH doesn't deal with any kind of audio data itself; it just runs programs, deals with saving/loading (arbitrary) data and connects different kinds of virtual audio ports together (currently JACK and ALSA sequencer ports). It can also be used to move entire sessions between computers, or post sessions on the Internet for download.
This package contains static libraries and header files need for development.
%package -n lib%{name}-devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
LASH is a session management system for JACK and ALSA audio applications on GNU/Linux. It is an implementation of a proposal that originated from this discussion. Its aim is to allow you to have many different audio programs running at once, to save their setup, close them down and then easily reload the setup at some other time. LASH doesn't deal with any kind of audio data itself; it just runs programs, deals with saving/loading (arbitrary) data and connects different kinds of virtual audio ports together (currently JACK and ALSA sequencer ports). It can also be used to move entire sessions between computers, or post sessions on the Internet for download.
This package contains static libraries and header files needed for development.
%package -n python-%{name}
Summary: Python wrapper for LASH
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n python-%{name}
Contains Python language bindings for developing Python applications that use LASH.
%debug_package
%prep
%setup -q -n %{name}-%{srcver}
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%ifarch arm aarch64
%patch1 -p1
%endif
cd docs
%patch2 -p1
cd ..
%build
%configure \
--enable-alsa-midi \
LIBS="-luuid -lm -ltirpc" \
CFLAGS="%{optflags} -I%{_includedir}/tirpc"
# FIXME http://bugs.gentoo.org/show_bug.cgi?id=214234 removed pylash pakage
make -j1 ALSA_LIBS="-lpthread -lasound"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-panel.desktop << EOF
[Desktop Entry]
Name=LASH Panel
Comment=LASH Panel
Icon=/usr/share/lash/icons/lash_48px.png
Exec=/usr/bin/lash_panel
Terminal=false
Type=Application
StartupNotify=false
Categories=Qt;KDE;AudioVideo;
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%post -n python-%{name} -p /sbin/ldconfig
%postun -n python-%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lash_*
%{_bindir}/lashd
%dir %{_datadir}/lash/icons
%{_datadir}/lash/icons/lash.svg
%{_datadir}/lash/icons/lash.xcf
%{_datadir}/lash/icons/lash_*px.png
%{_datadir}/applications/%{name}-panel.desktop
%{_datadir}/dbus-1/services/org.nongnu.lash.service
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/liblash.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/lash-1.0/lash
%{_includedir}/lash-1.0/lash/*.h
%{_libdir}/liblash.a
%{_libdir}/liblash.la
%{_libdir}/liblash.so
%{_datadir}/lash/dtds/lash-project-1.0.dtd
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog ChangeLog.old NEWS README README.SECURITY TODO
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitelib}/_lash.a
%{python_sitelib}/_lash.la
%{python_sitelib}/_lash.so
%{python_sitelib}/lash.py
%changelog
* Sat Dec 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0_rc2-2mamba
- rebuilt with debug package and aarch64 build fix
* Tue Feb 12 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0_rc2-1mamba
- update to 0.6.0_rc2
* Thu Apr 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.4-3mamba
- pass link libraries to fix build; remove python-lash subpackage
* Sat Apr 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.4-2mamba
- added patch to build against current gcc
- added requirements for swig
* Fri Aug 22 2008 gil <puntogil@libero.it> 0.5.4-1mamba
- update to 0.5.4
- added lash-panel.desktop
- FIXME http://bugs.gentoo.org/show_bug.cgi?id=214234 or removed python-lash pakage
* Thu Oct 26 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.2-1qilnx
- package created by autospec