File ohmyzsh.spec of Package ohmyzsh

#
# spec file for package ohmyzsh
#
# Copyright (c) 2020 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:           ohmyzsh
Version:        0~git1761877321.43e880ba
Release:        0
Summary:        A delightful community-driven framework for managing your zsh configuration
License:        MIT
URL:            https://github.com/ohmyzsh/ohmyzsh
Source:         %{name}-%{version}.tar.xz
Source1:        README.SUSE
Source2:        series
Patch:          use-user-dirs-where-needed.patch
Requires:       zsh
BuildArch:      noarch
BuildRequires:  rsync

%description
Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.

%prep
%autosetup -p1

%build
cp %{SOURCE1} .
rm -rv .git* log/.gitkeep

%install
install -D -m 0755 -d %{buildroot}%{_datadir}/ohmyzsh/
rsync -av oh-my-zsh.sh custom lib plugins themes tools \
  %{buildroot}%{_datadir}/ohmyzsh/

%files
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%doc templates/*
%doc README.SUSE
%license LICENSE.txt
%{_datadir}/ohmyzsh/

%changelog
openSUSE Build Service is sponsored by