Prepare for RPM 4.20 OBS-URL: https://build.opensuse.org/request/show/1151574 OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/snack?expand=0&rev=17
103 lines
2.8 KiB
RPMSpec
103 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package snack
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: snack
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: tk-devel
|
|
Summary: Sound Extension for Tcl/Tk
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Libraries/Tcl
|
|
Version: 2.2.10
|
|
Release: 0
|
|
Requires: tcl
|
|
Requires: tk
|
|
URL: http://www.speech.kth.se/snack
|
|
Source0: %{name}%{version}.tar.bz2
|
|
Source1: snack-rpmlintrc
|
|
Patch0: snack.patch
|
|
Patch1: snack-alsa.patch
|
|
Patch2: snack-CVE-2012-6303.patch
|
|
Patch3: snack-tk-libs.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Snack provides commands to play, record, process, and visualize sound.
|
|
It supports various file formats such as WAV, AU, AIFF, and MP3.
|
|
|
|
With Snack, you can easily create sound applications with Tcl/Tk or
|
|
Python or extend existing programs with sound capabilities.
|
|
|
|
The documentation is located under /usr/share/doc/packages/snack There
|
|
is also a 'demos' subdirectory which contains examples for Tcl/Tk and
|
|
Python.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Kåre Sjölander <kare@speech.kth.se>
|
|
|
|
%define INSTALL install -m755 -s
|
|
%define INSTALL_SCRIPT install -m755
|
|
%define INSTALL_DIR install -d -m755
|
|
%define INSTALL_DATA install -m644
|
|
|
|
%prep
|
|
%setup -q -n %{name}%{version}
|
|
%patch -P 0
|
|
%patch -P 1
|
|
%patch -P 2 -p 1
|
|
%patch -P 3
|
|
chmod 644 BSD.txt changes README COPYING doc/* ext/*
|
|
chmod 755 ext/configure
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-variable -Wno-unused-but-set-variable"
|
|
cd unix
|
|
./configure \
|
|
--prefix=%_prefix \
|
|
--libdir=%_libdir \
|
|
--with-tcl=%_libdir \
|
|
--with-tk=%_libdir \
|
|
--with-ogg-include=%_includedir \
|
|
--with-ogg-lib=%_libdir \
|
|
--enable-alsa
|
|
make OPTFLAGS="$CFLAGS"
|
|
|
|
%install
|
|
%{INSTALL_DIR} %buildroot%_libdir
|
|
cd unix
|
|
make install \
|
|
DESTDIR=%buildroot \
|
|
SNACK_INSTALL_PATH=%tclscriptdir
|
|
# We don't install the headers, so we don't need the stubs lib
|
|
rm -f %buildroot/%_libdir/libsnack*.a
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
%files
|
|
%defattr(-, root, root,-)
|
|
%_libdir/lib*
|
|
%defattr(644, root, root, 755)
|
|
%doc BSD.txt changes README COPYING doc/* ext
|
|
%tclscriptdir/*
|
|
|
|
%changelog
|