Accepting request 714718 from home:StefanBruens:branches:multimedia:apps

- Update to version 19.5 (no changelog provided)
- Remove snd-drop-date-time.diff, no longer required
- Drop snd-fix-no-return.diff, fixed upstream
- Reenable all archs, but without jack for anything but x86/ppc
  (32 and 64 bit), as it uses inline assembly

OBS-URL: https://build.opensuse.org/request/show/714718
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/snd?expand=0&rev=38
This commit is contained in:
Martin Pluskal
2019-07-16 11:06:50 +00:00
committed by Git OBS Bridge
parent 37ba549898
commit 1aca4f34a9
6 changed files with 25 additions and 55 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package snd
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,9 +12,15 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%ifarch %ix86 x86_64 %ppc ppc64 ppc64le
# The jack support has some inline assembly, but only for x86/ppc
%bcond_without jack
%else
%bcond_with jack
%endif
Name: snd
BuildRequires: alsa-devel
@@ -31,17 +37,14 @@ BuildRequires: update-desktop-files
Summary: Sound File Editor
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Sound/Editors and Convertors
Version: 17.1
Version: 19.5
Release: 0
Requires: ladspa
Source: ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-%{version}.tar.gz
Source1: snd.desktop
Source2: snd.png
Patch1: snd-fix-no-return.diff
Patch2: snd-drop-date-time.diff
Url: https://ccrma.stanford.edu/software/snd/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 %ppc ppc64 ppc64le
%description
Snd is a sound editor modelled loosely after Emacs and an old,
@@ -52,8 +55,6 @@ and extended using guile and guile-gtk.
%prep
%setup -q
find -name "*~" -type f -print -delete
%patch1 -p1
%patch2 -p1
find -name "*.png" -type f -exec chmod 0644 "{}" "+"
%build
@@ -66,7 +67,8 @@ find -name "*.png" -type f -exec chmod 0644 "{}" "+"
--with-ladspa \
--with-static-xm \
--with-gl \
--with-jack
%{?with_jack:--with-jack} \
# feel free to improve following change and please notify upstream
sed -i "s:\(^LIBS =.*\):\1 -lX11 -ldl:" makefile
make %{?_smp_mflags}
@@ -86,8 +88,8 @@ mkdir -p %{buildroot}/%{_datadir}/pixmaps
cp %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps
%files
%defattr(-, root, root)
%doc COPYING *.Snd *.html pix
%license COPYING
%doc *.Snd *.html pix
%{_mandir}/man?/*
%{_bindir}/*
%{_libdir}/snd