File grml-zsh-config.spec of Package grml-zsh-config
#
# spec file for package grml-zsh-config
#
# 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 https://bugs.opensuse.org/
#
Name: grml-zsh-config
Version: 0.16.1
Release: 0
Summary: Grml's zsh setup
License: GPL-2.0-or-later
Group: System/Shells
URL: https://grml.org/zsh/
Source: https://deb.grml.org/pool/main/g/grml-etc-core/grml-etc-core_%{version}.tar.gz
BuildRequires: txt2tags
Requires: coreutils
Requires: grep
Requires: procps
Requires: sed
Requires: zsh
BuildArch: noarch
Provides: grmlzshrc
%description
This package contains grml's zsh config.
%prep
%setup -q -n grml-etc-core-%{version}
%build
cd doc
make %{?_smp_mflags}
%install
install -D -m644 etc/skel/.zshrc %{buildroot}%{_sysconfdir}/skel/.zshrc
install -D -m644 etc/zsh/keephack %{buildroot}%{_sysconfdir}/zsh/keephack
install -D -m644 etc/zsh/zshrc %{buildroot}%{_sysconfdir}/zsh/zshrc
install -D -m644 etc/zsh/zshenv %{buildroot}%{_sysconfdir}/zsh/zshenv
install -D -m644 etc/zsh/zlogin %{buildroot}%{_sysconfdir}/zsh/zlogin
install -D -m644 etc/zsh/zlogout %{buildroot}%{_sysconfdir}/zsh/zlogout
install -D -m644 etc/zsh/zprofile %{buildroot}%{_sysconfdir}/zsh/zprofile
install -D -m644 doc/grmlzshrc.5 %{buildroot}%{_mandir}/man5/grmlzshrc.5
ln -sf grmlzshrc.5.gz %{buildroot}%{_mandir}/man5/grml-zsh-config.5.gz
%files
%license debian/copyright
%doc debian/changelog debian/NEWS README.md
%config %{_sysconfdir}/skel/.zshrc
%dir %{_sysconfdir}/zsh
%config %{_sysconfdir}/zsh/*
%{_mandir}/man5/grmlzshrc.5%{?ext_man}
%{_mandir}/man5/grml-zsh-config.5%{?ext_man}
%changelog