File gogo.spec of Package gogo

#
# spec file for package gogo
#
# 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:           gogo
Version:        3.13
Release:        0
%global short_version 313
Summary:        MP3 Encoder based on LAME3.88
License:        LGPL-2.0
Group:          Productivity/Multimedia/Sound/Editors and Convertors
ExclusiveArch:  i386 i586 i686
Url:            http://homepage2.nifty.com/kei-i/
Source0:        %{name}-%{version}.tar.xz
Patch0:         %{name}-fftsse.patch
BuildRequires:  nasm

%description
GOGO is a mp3 encoder based on LAME3.88, which is optimized for Enhanced 3D Now!/SSE/SSE2 and dual-CPUs.

%prep
%setup -q -n petit%{short_version}
cd engine/i386
%patch0

%build
cd linux
%{__make} %{?_smp_mflags} CFLAGS="${CFLAGS:-%{optflags}}"
%{__strip} -s %{name}

%install
cd linux
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 0755 -p -t %{buildroot}%{_bindir} %{name}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%doc history readme.html readme_e.html
%license COPYING

%changelog
openSUSE Build Service is sponsored by