File translate-shell.spec of Package translate-shell

#
# spec file for package translate-shell
#
# Copyright (c) 2016 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:           translate-shell
Version:        0.9.4
Release:        0
Summary:        Google Translate to serve as a command-line tool
License:        Unlicense
Group:          Productivity/Networking/Web/Frontends
Url:            https://www.soimort.org/translate-shell
Source:         https://github.com/soimort/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  emacs-nox
BuildRequires:  gawk >= 4.0
BuildRequires:  rlwrap
Requires:       bash
Requires:       gawk >= 4.0
Recommends:     curl
Recommends:     fribidi
Recommends:     less
Recommends:     rlwrap
Suggests:       emacs-nox
Suggests:       mpv
BuildArch:      noarch

%description
Translate Shell is a command-line translator powered by
Google Translate. It gives you easy access to Google Translate in
your terminal.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
%make_install \
  PREFIX=%{buildroot}%{_prefix}

%check
LC_ALL=en_US.UTF-8 make test %{?_smp_mflags}

%files
%defattr(-,root,root)
%doc CONTRIBUTING.md LICENSE README.md WAIVER
%{_bindir}/trans
%{_mandir}/man?/trans.?%{?ext_man}

%changelog
openSUSE Build Service is sponsored by