5dfea1e
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
c26cf86
fe9df82
Summary:      LASH Audio Session Handler
fe9df82
Name:         lash
fcf6faf
Version:      0.5.4
684a94c
Release:      12%{?dist}
be1ed00
License:      GPLv2+
fe9df82
Group:        System Environment/Libraries
fe9df82
URL:          http://www.nongnu.org/lash/
fe9df82
Source0:      http://download.savannah.gnu.org/releases/lash/lash-%{version}.tar.gz
e943558
Source1:      %{name}-panel.desktop
6818ab7
Patch0:       lash-0.5.3-no-static-lib.patch
7b3cf2d
# Fix DSO-linking failure
7b3cf2d
# Upstream bugtracker is closed for some reason. Sent via email:
7b3cf2d
Patch1:       lash-linking.patch
fe9df82
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
fe9df82
6b0aed3
BuildRequires: alsa-lib-devel
6b0aed3
BuildRequires: desktop-file-utils
6b0aed3
BuildRequires: gtk2-devel 
fe9df82
BuildRequires: jack-audio-connection-kit-devel
6b0aed3
BuildRequires: libxml2-devel
6b0aed3
BuildRequires: python-devel
6b0aed3
BuildRequires: readline-devel
6b0aed3
BuildRequires: swig
6b0aed3
BuildRequires: texi2html
6b0aed3
e943558
%if 0%{?fedora} < 12
6b0aed3
BuildRequires: e2fsprogs-devel
6b0aed3
%else
6b0aed3
BuildRequires: libuuid-devel
6b0aed3
%endif
fe9df82
fe9df82
%description
5dfea1e
LASH is a session management system for JACK and ALSA audio applications on
5dfea1e
GNU/Linux. It allows you to save and restore audio sessions consisting of
5dfea1e
multiple interconneced applications, restoring program state (i.e. loaded
5dfea1e
patches) and the connections between them.
fe9df82
fe9df82
%package devel
fe9df82
Summary:      Development files for LASH
5dfea1e
Group:        Development/Libraries
fe9df82
Requires:     %{name} = %{version}-%{release}
6b0aed3
Requires:     alsa-lib-devel
6b0aed3
Requires:     jack-audio-connection-kit-devel
eca3901
Requires:     pkgconfig
fe9df82
e943558
%if 0%{?fedora} < 12
6b0aed3
Requires:     e2fsprogs-devel
6b0aed3
%else
6b0aed3
Requires:     libuuid-devel
6b0aed3
%endif
6b0aed3
fe9df82
%description devel
fe9df82
Development files for the LASH library.
fe9df82
5dfea1e
%package -n python-lash
5dfea1e
Summary:      Python wrapper for LASH
5dfea1e
Group:        System Environment/Libraries
5dfea1e
Requires:     %{name} = %{version}-%{release}
6818ab7
5dfea1e
%description -n python-lash
5dfea1e
Contains Python language bindings for developing Python applications that use
5dfea1e
LASH.
6818ab7
fe9df82
%prep
fe9df82
%setup -q
6818ab7
%patch0 -p0
7b3cf2d
%patch1 -p1 -b .linking
fe9df82
684a94c
# Hack to build against newer swig
684a94c
%if 0%{?fedora} > 13
684a94c
sed -i 's|1.3.31|2.0.0|g' configure*
684a94c
%endif
684a94c
fe9df82
%build
5dfea1e
export am_cv_python_pythondir=%{python_sitearch}
5dfea1e
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %configure --disable-static --disable-serv-inst
5dfea1e
# remove rpath from libtool
5dfea1e
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
5dfea1e
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
fe9df82
make %{?_smp_mflags}
fe9df82
fe9df82
%install
fe9df82
rm -rf %{buildroot}
fe9df82
mkdir -p %{buildroot}%{_sysconfdir}
fe9df82
make DESTDIR=%{buildroot} install
fe9df82
rm -f %{buildroot}%{_infodir}/dir
fe9df82
rm -f %{buildroot}%{_libdir}/liblash.la
5dfea1e
rm -f %{buildroot}%{python_sitearch}/_lash.la
5dfea1e
5dfea1e
# Fix permission
5dfea1e
chmod -x %{buildroot}%{python_sitearch}/lash.py
fe9df82
fe9df82
# Move icons to the right place
fe9df82
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
fe9df82
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
fe9df82
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
fe9df82
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/96x96/apps
fe9df82
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
fe9df82
mv %{buildroot}%{_datadir}/lash/icons/lash_16px.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/lash.png
fe9df82
mv %{buildroot}%{_datadir}/lash/icons/lash_24px.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/lash.png
fe9df82
mv %{buildroot}%{_datadir}/lash/icons/lash_48px.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lash.png
fe9df82
mv %{buildroot}%{_datadir}/lash/icons/lash_96px.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/lash.png
fe9df82
mv %{buildroot}%{_datadir}/lash/icons/lash.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lash.svg
fe9df82
fe9df82
# Move the dtd file to our Fedora Friendly place
fe9df82
mkdir -p %{buildroot}%{_datadir}/xml/lash/dtds
fe9df82
mv %{buildroot}%{_datadir}/lash/dtds/lash-project-1.0.dtd %{buildroot}%{_datadir}/xml/lash/dtds
fe9df82
fe9df82
# This directory is empty!
fe9df82
rm -rf %{buildroot}%{_datadir}/lash
fe9df82
fe9df82
# install the desktop entry
5dfea1e
mkdir -p %{buildroot}%{_datadir}/applications
e943558
desktop-file-install --vendor fedora         \
5dfea1e
  --dir %{buildroot}%{_datadir}/applications \
e943558
  %{SOURCE1}
fe9df82
9822c71
# Work around the newer texi2html which is behaving somehow else
9822c71
if [ ! -d docs/lash-manual-html-split/lash-manual/ ]; then
9822c71
  mkdir -p docs/lash-manual-html-split/lash-manual/
9822c71
  cp -p docs/lash-manual-html-split/*.html docs/lash-manual-html-split/lash-manual/
9822c71
fi
9822c71
fe9df82
%clean
fe9df82
rm -rf %{buildroot}
fe9df82
fe9df82
%post
fe9df82
/sbin/ldconfig
fe9df82
# update icon themes
5dfea1e
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
fe9df82
fe9df82
%postun
fe9df82
/sbin/ldconfig
fe9df82
# update icon themes
5dfea1e
if [ $1 -eq 0 ] ; then
5dfea1e
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
5dfea1e
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fe9df82
fi
fe9df82
5dfea1e
%posttrans
5dfea1e
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
5dfea1e
5dfea1e
fe9df82
%files
fe9df82
%defattr(-,root,root,-)
fe9df82
%doc AUTHORS ChangeLog COPYING NEWS README docs/lash-manual-html-split/lash-manual icons/lash.xcf
fe9df82
%{_bindir}/lash*
6818ab7
%{_libdir}/liblash.so.1
6818ab7
%{_libdir}/liblash.so.1.*
fe9df82
%{_datadir}/icons/hicolor/16x16/apps/lash.png
fe9df82
%{_datadir}/icons/hicolor/24x24/apps/lash.png
fe9df82
%{_datadir}/icons/hicolor/48x48/apps/lash.png
fe9df82
%{_datadir}/icons/hicolor/96x96/apps/lash.png
fe9df82
%{_datadir}/icons/hicolor/scalable/apps/lash.svg
fe9df82
%{_datadir}/xml/lash
5dfea1e
%{_datadir}/applications/*lash-panel.desktop
fe9df82
fe9df82
%files devel
fe9df82
%defattr(-,root,root,-)
fe9df82
%{_libdir}/liblash.so
fe9df82
%{_includedir}/lash-1.0
fe9df82
%{_libdir}/pkgconfig/lash*
fe9df82
5dfea1e
%files -n python-lash
5dfea1e
%defattr(-,root,root,-)
5dfea1e
%{python_sitearch}/_lash.so
5dfea1e
%{python_sitearch}/lash.py*
6818ab7
fe9df82
%changelog
684a94c
* Fri Jul 23 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.4-12
684a94c
- Hack to build against newer swig
684a94c
ea7cd46
* Fri Jul 23 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.4-11
ea7cd46
- More DSO-linking fixes
ea7cd46
395962a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.4-10
395962a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
395962a
7b3cf2d
* Wed Feb 10 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.4-9
7b3cf2d
- Fix DSO-linking failure
7b3cf2d
e943558
* Wed Aug 05 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.5.4-8
e943558
- Update .desktop file
e943558
85bf227
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-7
85bf227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
85bf227
6b0aed3
* Tue Jul 14 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.5.4-6
6b0aed3
- Build against libuuid on F-12 (e2fsprogs got split up)
6b0aed3
5dfea1e
* Sat Jun 13 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.5.4-5
5dfea1e
- Re-enable python package
5dfea1e
- Some macro consistency cleanup
5dfea1e
- Update scriptlets according to new guidelines
5dfea1e
- Make the .desktop file nicer
5dfea1e
- Update description
5dfea1e
- Remove rpath
5dfea1e
- Clear some rpmlints
5dfea1e
9822c71
* Sun Mar 22 2009 Robert Scheck <robert@fedoraproject.org> - 0.5.4-4
9822c71
- Work around the newer texi2html which is behaving somehow else
9822c71
acea656
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-3
acea656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
acea656
c870992
* Thu Feb 28 2008 Anthony Green <green@redhat.com> 0.5.4-2
c870992
- Force build with _GNU_SOURCE, not _POSIX_SOURCE..
c870992
fcf6faf
* Thu Feb 28 2008 Anthony Green <green@redhat.com> 0.5.4-1
fcf6faf
- Upgrade to 0.5.4.  Force build with _POSIX_SOURCE.
f397d44
be1ed00
* Mon Oct 08 2007 Anthony Green <green@redhat.com> 0.5.3-3
be1ed00
- Disable pylash until we can figure out how to install it properly.
be1ed00
c26cf86
* Mon Oct 08 2007 Anthony Green <green@redhat.com> 0.5.3-2
c26cf86
- Fixed python installation for 64-bit systems.
c26cf86
6818ab7
* Sun Oct 07 2007 Anthony Green <green@redhat.com> 0.5.3-1
6818ab7
- Upgrade sources.
6818ab7
- Don't install info files (no longer built).
6818ab7
- Add python package.
6818ab7
c2adf0e
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.5.1-15
c2adf0e
- Rebuild for selinux ppc32 issue.
c2adf0e
Florian La Roche 8482367
* Fri Jun 22 2007 Florian La Roche <laroche@redhat.com> 0.5.1-14
Florian La Roche 175d18a
- info files are gzipped, add info dir entry
Florian La Roche 0b97a49
c6e3114
* Thu Feb 01 2007 Anthony Green <green@redhat.com> 0.5.1-11
c6e3114
- Rebuild to drop libtermcap dependency as per bugzilla #226761.
c6e3114
062abeb
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.5.1-10
062abeb
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
062abeb
614c345
* Mon Sep 25 2006 Anthony Green <green@redhat.com> 0.5.1-9
614c345
- Update -texi-dir patch.
614c345
545bd93
* Tue Sep 19 2006 Anthony Green <green@redhat.com> 0.5.1-8
545bd93
- Fix release tag.
545bd93
ad57998
* Mon Sep 18 2006 Anthony Green <green@redhat.com> 0.5.1-7.1
ad57998
- Rebuild.
ad57998
eca3901
* Mon Sep  4 2006 Anthony Green <green@redhat.com> 0.5.1-7
eca3901
- The devel package must Require pkgconfig.
eca3901
ca1acc6
* Fri Jul 14 2006 Anthony Green <green@redhat.com> 0.5.1-6
ca1acc6
- The devel package must Require e2fsprogs-devel.
ca1acc6
fe9df82
* Sun Jun 26 2006 Anthony Green <green@redhat.com> 0.5.1-5
5dfea1e
- Use || : is %%post(un) scripts.
fe9df82
fe9df82
* Sun Jun 26 2006 Anthony Green <green@redhat.com> 0.5.1-4
5dfea1e
- Fix files reference to %%{_datadir}/xml/lash.
fe9df82
- Don't use update-desktop-database.
5dfea1e
- Use %%{version} in Source0.
fe9df82
fe9df82
* Mon Jun 19 2006 Anthony Green <green@redhat.com> 0.5.1-3
fe9df82
- Fix changelog entries.
fe9df82
- Move pkgconfig file to devel package.
fe9df82
- Run ldconfig is post and postun.
fe9df82
- Clean up BuildRequires.
fe9df82
- Fix docs install.
fe9df82
- Move icons to correct directory.
fe9df82
- Move dtds to correct directory.
fe9df82
- Don't install INSTALL or TODO.
fe9df82
- Install desktop file.
fe9df82
fe9df82
* Tue May 30 2006 Anthony Green <green@redhat.com> 0.5.1-2
fe9df82
- Fix URL.
fe9df82
- Add lash-0.5.1-service.patch.
fe9df82
- Fix some BuildRequires.
fe9df82
- The devel package Requires things now.
5dfea1e
- Use %%{_infodir}.
fe9df82
- Delete the texinfo dir file.
fe9df82
- Add -texi-dir patch.
fe9df82
- Install info files properly.
fe9df82
- Add Fernando Lopez-Lazcano's -service.patch.
fe9df82
- Delete .la file after installation.
fe9df82
- Configure with --disable-serv-inst.
fe9df82
fe9df82
* Tue Apr 18 2006 Anthony Green <green@redhat.com> 0.5.1-1
fe9df82
- Build for Fedora Extras.
fe9df82
fe9df82
* Mon May 30 2005 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
fe9df82
- remove references to deprecated function jack_set_server_dir in
fe9df82
  jack (patch4), fc4 test build, no release bump yet
fe9df82
* Sun Dec 19 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
fe9df82
- spec file cleanup
fe9df82
* Thu May 20 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
fe9df82
- aded tetex buildrequires
fe9df82
* Sat May  8 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
fe9df82
- added buildrequires
fe9df82
- add patch to not add service to /etc/services
fe9df82
* Tue Feb 24 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.4.0-2
fe9df82
- added patch (thanks to Guenter Geiger) to not require a service number
fe9df82
  entry in /etc/services
fe9df82
* Fri Nov 14 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.4.0-1
fe9df82
- spec file tweaks
fe9df82
* Thu Nov  6 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.4.0-1
fe9df82
- updated to 0.4.0
fe9df82
- patched to build under gcc2.96 (patch1)
fe9df82
* Wed Feb 11 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.3.0-1
fe9df82
- updated to 0.3.0
fe9df82
- added 7.2 workaround for gtk2 configuration problem
fe9df82
* Mon Jan 13 2003  Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2-1
fe9df82
- Initial build.