File sph2pipe.spec of Package sph2pipe

# spec file for package sph2pipe
#
# Copyright (c) 2015 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
# 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 http://bugs.opensuse.org/
#

Name:           sph2pipe
Version:        2.5
Release:        0
Summary:        Converting sph format files into other formats such as wav.
License:        Public Domain
Group:          System/Base
Url:            https://www.ldc.upenn.edu/language-resources/tools/sphere-conversion-tools
Source0:        https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/ctools/%{name}_v%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The "sph2pipe" program was created by the Linguistic Data Consortium
to provide greater flexibility and ease of use for SPHERE-formatted
digital audio data.  It is equivalent in most respects to the related
utility "sph_convert", but each of these tools provides some abilities
that the other does not.

%prep
%setup -q -n %{name}_v%{version}

%build
gcc -o %{name} *.c -lm

%install
mkdir -p %{buildroot}%{_bindir}
install -Dm 0755 %{name} %{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%doc 0readme.1st
%{_bindir}/%{name}

%changelog