yselkowitz / rpms / lash

Forked from rpms/lash 6 years ago
Clone
fe9df82
Summary:      LASH Audio Session Handler
fe9df82
Name:         lash
6818ab7
Version:      0.5.3
6818ab7
Release:      1%{?dist}
fe9df82
License:      GPL
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
6818ab7
Patch0:       lash-0.5.3-no-static-lib.patch
fe9df82
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
fe9df82
fe9df82
BuildRequires: alsa-lib-devel, e2fsprogs-devel, gtk2-devel 
fe9df82
BuildRequires: jack-audio-connection-kit-devel
fe9df82
BuildRequires: libxml2-devel, readline-devel, texi2html
6818ab7
BuildRequires: python-devel swig
fe9df82
fe9df82
Requires(post): /sbin/install-info
fe9df82
Requires(preun): /sbin/install-info
fe9df82
fe9df82
BuildRequires:    desktop-file-utils
fe9df82
fe9df82
%description
fe9df82
LASH is a session management system for JACK and ALSA audio
fe9df82
applications on GNU/Linux.
fe9df82
fe9df82
%package devel
fe9df82
Summary:      Development files for LASH
fe9df82
Group: 	      Development/Libraries
fe9df82
Requires:     %{name} = %{version}-%{release}
ca1acc6
Requires:     jack-audio-connection-kit-devel alsa-lib-devel e2fsprogs-devel
eca3901
Requires:     pkgconfig
fe9df82
fe9df82
%description devel
fe9df82
Development files for the LASH library.
fe9df82
6818ab7
%package python
6818ab7
Summary:      Python wrapper for LASH
6818ab7
Group: 	      Development/Libraries
6818ab7
Requires:     %{name} = %{version}-%{release}
6818ab7
Requires:     jack-audio-connection-kit-devel alsa-lib-devel e2fsprogs-devel
6818ab7
Requires:     python
6818ab7
6818ab7
%description python
6818ab7
Contains Python language bindings for developing Python applications that
6818ab7
use LASH.
6818ab7
fe9df82
%prep
fe9df82
%setup -q
6818ab7
%patch0 -p0
fe9df82
fe9df82
%build
fe9df82
%configure --disable-static --disable-serv-inst
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
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
fe9df82
cat << EOF > %{name}-panel.desktop
fe9df82
[Desktop Entry]
fe9df82
Name=LASH Panel
fe9df82
Comment=LASH Panel
fe9df82
Icon=lash.png
fe9df82
Exec=%{_bindir}/lash_panel
fe9df82
Terminal=false
fe9df82
Type=Application
fe9df82
EOF
fe9df82
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
fe9df82
desktop-file-install --vendor fedora              \
fe9df82
  --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
fe9df82
  --add-category X-Fedora                         \
fe9df82
  --add-category AudioVideo                       \
fe9df82
  --add-category Application                      \
fe9df82
  %{name}-panel.desktop
fe9df82
fe9df82
%clean
fe9df82
rm -rf %{buildroot}
fe9df82
fe9df82
%post
fe9df82
/sbin/ldconfig
fe9df82
# update icon themes
fe9df82
touch %{_datadir}/icons/hicolor
fe9df82
if [ -x /usr/bin/gtk-update-icon-cache ]; then
Florian La Roche 0b97a49
  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fe9df82
fi
Florian La Roche 0b97a49
exit 0
fe9df82
fe9df82
%postun
fe9df82
/sbin/ldconfig
fe9df82
# update icon themes
fe9df82
touch %{_datadir}/icons/hicolor
fe9df82
if [ -x /usr/bin/gtk-update-icon-cache ]; then
fe9df82
  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fe9df82
fi
fe9df82
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
fe9df82
%{_datadir}/applications/*%{name}-panel.desktop
fe9df82
fe9df82
%files devel
fe9df82
%defattr(-,root,root,-)
fe9df82
%{_libdir}/liblash.so
fe9df82
%{_includedir}/lash-1.0
fe9df82
%{_libdir}/pkgconfig/lash*
fe9df82
6818ab7
%files python
6818ab7
%defattr(-,root,root,0755)
6818ab7
%{_libdir}/python2.5/site-packages/*
6818ab7
fe9df82
%changelog
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
fe9df82
- Use || : is %post(un) scripts.
fe9df82
fe9df82
* Sun Jun 26 2006 Anthony Green <green@redhat.com> 0.5.1-4
fe9df82
- Fix files reference to %{_datadir}/xml/lash.
fe9df82
- Don't use update-desktop-database.
fe9df82
- 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.
fe9df82
- 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.