File gws.spec of Package gws

#
# spec file for package gws
#
# Copyright (c) 2017-2018 The openSUSE Project.
#
# 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:           gws
Version:        0.2.0
Release:        0
Summary:        Colorful KISS helper for git workspaces
License:        MIT
Group:          Development/Tools/Version Control
Url:            https://streakycobra.github.io/gws/
Source:         https://github.com/StreakyCobra/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Requires:       bash > 4.0
Requires:       git
BuildArch:      noarch

%description
gws is a KISS, bash, colorful helper to manage workspaces composed of git
repositories.

%prep
%setup -q

%build
# Nothing to do

%install
install -D -m 0755 src/gws %{buildroot}%{_bindir}/%{name}
install -D -m 0644 completions/bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -D -m 0644 completions/zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}

%files
%doc CHANGELOG README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/zsh/site-functions/_%{name}
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions

%changelog
openSUSE Build Service is sponsored by