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
0344166
Release:      31%{?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
1e39649
# Fix build against gcc-4.7
1e39649
Patch2:       lash-gcc47.patch
2811a50
# Modernize texi2html arguments for texi2html-5.0
2811a50
Patch3:       lash-Modernize-texi2html-arguments.patch
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
Jaromir Capik 1720bae
BuildRequires: chrpath
6b0aed3
BuildRequires: libuuid-devel
1e39649
0344166
Requires:      %{name}-libs%{?_isa} = %{version}-%{release}
0344166
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
0344166
Requires:     %{name}-libs%{?_isa} = %{version}-%{release}
6b0aed3
Requires:     alsa-lib-devel
6b0aed3
Requires:     jack-audio-connection-kit-devel
6b0aed3
Requires:     libuuid-devel
6b0aed3
fe9df82
%description devel
fe9df82
Development files for the LASH library.
fe9df82
0344166
%package        libs
0344166
Summary:        Shared libraries for using %{name}
0344166
0344166
%description    libs
0344166
The %{name}-libs package contains lash shared libraries.
0344166
5dfea1e
%package -n python-lash
5dfea1e
Summary:      Python wrapper for LASH
5dfea1e
Group:        System Environment/Libraries
0344166
Requires:     %{name}-libs%{?_isa} = %{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
1e39649
%patch2 -p1 -b .gcc47
2811a50
%patch3 -p1 -b .texi2html
fe9df82
684a94c
# Hack to build against newer swig
6dc0cc1
%if 0%{?rhel}
6dc0cc1
sed -i 's|1.3.31|2.0.0|g' configure*
6dc0cc1
%else
Jaromir Capik 1720bae
sed -i 's|1.3.31|3.0.0|g' configure*
6dc0cc1
%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
fe9df82
make %{?_smp_mflags}
fe9df82
Jaromir Capik 1720bae
fe9df82
%install
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
Jaromir Capik 1720bae
# Remove rpath
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lash_control
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lash_simple_client
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lashd
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lash_synth
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lash_panel
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{_bindir}/lash_save_button
Jaromir Capik 1720bae
chrpath --delete %{buildroot}%{python_sitearch}/_lash.so
Jaromir Capik 1720bae
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
1f1c3b2
desktop-file-install                         \
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
%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
%doc AUTHORS ChangeLog COPYING NEWS README docs/lash-manual-html-split/lash-manual icons/lash.xcf
fe9df82
%{_bindir}/lash*
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
1f1c3b2
%{_datadir}/applications/lash-panel.desktop
fe9df82
fe9df82
%files devel
fe9df82
%{_libdir}/liblash.so
fe9df82
%{_includedir}/lash-1.0
fe9df82
%{_libdir}/pkgconfig/lash*
fe9df82
0344166
%files libs
0344166
%{_libdir}/liblash.so.1
0344166
%{_libdir}/liblash.so.1.*
0344166
5dfea1e
%files -n python-lash
5dfea1e
%{python_sitearch}/_lash.so
5dfea1e
%{python_sitearch}/lash.py*
6818ab7
fe9df82
%changelog
0344166
* Tue Aug 15 2017 Pete Walter <pwalter@fedoraproject.org> - 0.5.4-31
0344166
- Split out shared libraries to lash-libs subpackage
0344166
10bd975
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-30
10bd975
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
10bd975
2eb5edc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-29
2eb5edc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2eb5edc
23323a7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-28
23323a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
23323a7
Igor Gnatenko 835c414
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.5.4-27
Igor Gnatenko 835c414
- Rebuild for readline 7.x
Igor Gnatenko 835c414
6dc0cc1
* Tue Oct 04 2016 Pete Walter <pwalter@fedoraproject.org> - 0.5.4-26
6dc0cc1
- Fix the build on EPEL 7
6dc0cc1
ef73820
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-25
ef73820
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ef73820
c6d31aa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-24
c6d31aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6d31aa
2811a50
* Mon Sep 21 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.5.4-23
2811a50
- Modernize texi2html arguments
2811a50
d0b6612
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-22
d0b6612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0b6612
3520e70
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-21
3520e70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3520e70
39c3ca2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-20
39c3ca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
39c3ca2
Jaromir Capik 1720bae
* Wed Apr 23 2014 Jaromir Capik <jcapik@redhat.com> - 0.5.4-19
Jaromir Capik 1720bae
- Fixing FTBFS caused by the swig upgrade 2.0.12 -> 3.0.0 (#1090111)
Jaromir Capik 1720bae
- Fixing rpath removal (libtool regenerated during the make phase -> sed didn't work)
Jaromir Capik 1720bae
429b6f8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-18
429b6f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
429b6f8
1f1c3b2
* Sun Feb 10 2013 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.4-18
1f1c3b2
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
1f1c3b2
1e39649
* Sun Jul 22 2012 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.4-17
1e39649
- Fix build against gcc-4.7
1e39649
0520fe9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-16
0520fe9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0520fe9
c52c548
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-15
c52c548
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c52c548
efdb72e
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5.4-14
efdb72e
- Rebuild for new libpng
efdb72e
7897ac0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-13
7897ac0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7897ac0
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
2811a50
* Mon Jun 26 2006 Anthony Green <green@redhat.com> 0.5.1-5
5dfea1e
- Use || : is %%post(un) scripts.
fe9df82
2811a50
* Mon 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)
2811a50
* Wed Feb 12 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.