File dsd2pcm.spec of Package dsd2pcm

#
# spec file for package dsd2pcm
#
# Copyright (c) 2018 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:           dsd2pcm
Version:        20111130
Release:        0
Summary:        A DSD to PCM stream converter
License:        MIT
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Url:            https://code.google.com/p/%{name}
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  dos2unix
BuildRequires:  gcc-c++

%description
dsd2pcm is a simple little "filter" program, that takes a DSD data stream on stdin and converts it to a PCM stream and writes it to stdout.

%prep
%setup -q
dos2unix LICENSE.txt
dos2unix info.txt

%build
%{__cxx} %{optflags} *.c *.cpp -o %{name}
%{__strip} -s %{name}

%install
%{__install} -D -m 0755 -p %{name} %{buildroot}/%{_bindir}/%{name}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%doc info.txt
%license LICENSE.txt

%changelog
openSUSE Build Service is sponsored by