Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL6
>
lash
> lash.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lash.spec of Package lash (Revision 2)
Currently displaying revision
2
,
show latest
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: LASH Audio Session Handler Name: lash Version: 0.5.4 Release: 9%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.nongnu.org/lash/ Source0: http://download.savannah.gnu.org/releases/lash/lash-%{version}.tar.gz Source1: %{name}-panel.desktop Patch0: lash-0.5.3-no-static-lib.patch # Fix DSO-linking failure # Upstream bugtracker is closed for some reason. Sent via email: Patch1: lash-linking.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: gtk2-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: libxml2-devel BuildRequires: python-devel BuildRequires: readline-devel BuildRequires: swig BuildRequires: texi2html %if 0%{?fedora} < 12 || 0%{?rhel} < 6 BuildRequires: e2fsprogs-devel %else BuildRequires: libuuid-devel %endif %description LASH is a session management system for JACK and ALSA audio applications on GNU/Linux. It allows you to save and restore audio sessions consisting of multiple interconneced applications, restoring program state (i.e. loaded patches) and the connections between them. %package devel Summary: Development files for LASH Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: alsa-lib-devel Requires: jack-audio-connection-kit-devel Requires: pkgconfig %if 0%{?fedora} < 12 Requires: e2fsprogs-devel %else Requires: libuuid-devel %endif %description devel Development files for the LASH library. %package -n python-lash Summary: Python wrapper for LASH Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description -n python-lash Contains Python language bindings for developing Python applications that use LASH. %prep %setup -q %patch0 -p0 %patch1 -p1 -b .linking %build export am_cv_python_pythondir=%{python_sitearch} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %configure --disable-static --disable-serv-inst # remove rpath from libtool sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sysconfdir} make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_infodir}/dir rm -f %{buildroot}%{_libdir}/liblash.la rm -f %{buildroot}%{python_sitearch}/_lash.la # Fix permission chmod -x %{buildroot}%{python_sitearch}/lash.py # Move icons to the right place mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/96x96/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps mv %{buildroot}%{_datadir}/lash/icons/lash_16px.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/lash.png mv %{buildroot}%{_datadir}/lash/icons/lash_24px.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/lash.png mv %{buildroot}%{_datadir}/lash/icons/lash_48px.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lash.png mv %{buildroot}%{_datadir}/lash/icons/lash_96px.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/lash.png mv %{buildroot}%{_datadir}/lash/icons/lash.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lash.svg # Move the dtd file to our Fedora Friendly place mkdir -p %{buildroot}%{_datadir}/xml/lash/dtds mv %{buildroot}%{_datadir}/lash/dtds/lash-project-1.0.dtd %{buildroot}%{_datadir}/xml/lash/dtds # This directory is empty! rm -rf %{buildroot}%{_datadir}/lash # install the desktop entry mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --vendor fedora \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} # Work around the newer texi2html which is behaving somehow else if [ ! -d docs/lash-manual-html-split/lash-manual/ ]; then mkdir -p docs/lash-manual-html-split/lash-manual/ cp -p docs/lash-manual-html-split/*.html docs/lash-manual-html-split/lash-manual/ fi %clean rm -rf %{buildroot} %post /sbin/ldconfig # update icon themes touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /sbin/ldconfig # update icon themes if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README docs/lash-manual-html-split/lash-manual icons/lash.xcf %{_bindir}/lash* %{_libdir}/liblash.so.1 %{_libdir}/liblash.so.1.* %{_datadir}/icons/hicolor/16x16/apps/lash.png %{_datadir}/icons/hicolor/24x24/apps/lash.png %{_datadir}/icons/hicolor/48x48/apps/lash.png %{_datadir}/icons/hicolor/96x96/apps/lash.png %{_datadir}/icons/hicolor/scalable/apps/lash.svg %{_datadir}/xml/lash %{_datadir}/applications/*lash-panel.desktop %files devel %defattr(-,root,root,-) %{_libdir}/liblash.so %{_includedir}/lash-1.0 %{_libdir}/pkgconfig/lash* %files -n python-lash %defattr(-,root,root,-) %{python_sitearch}/_lash.so %{python_sitearch}/lash.py* %changelog