File tumbleweed-cli.spec of Package tumbleweed-cli
#
# spec file for package tumbleweed-cli
#
# Copyright (c) 2022 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: tumbleweed-cli
Version: 0.3.3
Release: 0
Summary: Command line interface for interacting with tumbleweed snapshots
License: GPL-2.0-only
Group: System/Packages
URL: https://github.com/boombatower/tumbleweed-cli
Source: https://github.com/boombatower/tumbleweed-cli/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.xz
Patch0: dup.patch
# see https://github.com/steamtricks/steamtricks/issues/27
Requires: coreutils
Requires: curl
Requires: grep
Requires: libzypp(repovarexpand) >= 1
Requires: sudo
Requires: zypper
BuildArch: noarch
%description
tumbleweed-cli provides a command line interface for interacting with tumbleweed
snapshots.
%prep
%autosetup -p1
%build
%install
%make_install VERSION="%{version}"
sed -i 's:\/usr\/bin\/env bash:\/usr\/bin\/bash:' %{buildroot}%{_bindir}/tumbleweed
chmod 0644 %{buildroot}%{_sysconfdir}/bash_completion.d/tumbleweed-completion.bash
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
mv %{buildroot}%{_sysconfdir}/bash_completion.d/tumbleweed-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/tumbleweed
%files
%{_bindir}/tumbleweed
%{_datadir}/bash-completion/completions/tumbleweed
%changelog