2015-05-07 08:36:28 +02:00
|
|
|
#
|
|
|
|
# spec file for package homeshick
|
|
|
|
#
|
2023-05-15 23:15:21 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-05-07 08:36:28 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-05-16 14:02:07 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-05-07 08:36:28 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: homeshick
|
2023-05-15 23:15:21 +02:00
|
|
|
Version: 2.0.1
|
2015-05-07 08:36:28 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Dotfile synchronizer based on Git and Bash
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/File utilities
|
2020-05-16 14:02:07 +02:00
|
|
|
URL: https://github.com/andsens/homeshick
|
2023-05-15 23:15:21 +02:00
|
|
|
Source0: https://github.com/andsens/homeshick/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-05-07 08:36:28 +02:00
|
|
|
Source1: README-openSUSE.md
|
2023-05-15 23:15:21 +02:00
|
|
|
Source50: https://github.com/bats-core/bats-file/archive/v0.3.0.tar.gz#/bats-file-0.3.0.tar.gz
|
|
|
|
Source51: https://github.com/bats-core/bats-support/archive/v0.3.0.tar.gz#/bats-support-0.3.0.tar.gz
|
|
|
|
Source52: https://github.com/bats-core/bats-assert/archive/v2.0.0.tar.gz#/bats-assert-2.0.0.tar.gz
|
2015-05-08 22:37:17 +02:00
|
|
|
Source99: homeshick.rpmlintrc
|
2018-06-07 22:33:12 +02:00
|
|
|
Patch0: suse-packaging.patch
|
2023-05-15 23:15:21 +02:00
|
|
|
Patch1: test-helper.patch
|
2015-05-07 08:36:28 +02:00
|
|
|
BuildRequires: expect
|
|
|
|
BuildRequires: git >= 1.5
|
|
|
|
BuildRequires: iputils
|
|
|
|
BuildRequires: tcsh
|
|
|
|
Requires: bash >= 3
|
|
|
|
Requires: git >= 1.5
|
|
|
|
BuildArch: noarch
|
2018-06-07 22:33:12 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2015-05-07 08:36:28 +02:00
|
|
|
BuildRequires: bats
|
2020-05-16 14:02:07 +02:00
|
|
|
BuildRequires: dash
|
2015-05-07 08:36:28 +02:00
|
|
|
BuildRequires: fish
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2015-05-07 19:19:58 +02:00
|
|
|
Homeshick is a tool for users to manage configuration files, also known as
|
2015-05-08 22:27:54 +02:00
|
|
|
dotfiles. It leverages Git repositories to store and version dotfiles, and to
|
2015-05-08 22:37:17 +02:00
|
|
|
synchronize dotfile repositories between accounts and/or machines.
|
2015-05-07 08:36:28 +02:00
|
|
|
|
2018-06-07 22:33:12 +02:00
|
|
|
For example, this allows managing personal dotfiles alongside emacs or vim
|
|
|
|
plugins without clutter. It also makes it easy to install large external
|
|
|
|
frameworks, such as oh-my-zsh, found on sites like https://dotfiles.github.io/.
|
2015-05-07 08:36:28 +02:00
|
|
|
|
|
|
|
%prep
|
2023-05-16 11:32:54 +02:00
|
|
|
%autosetup -p1
|
2015-05-07 08:36:28 +02:00
|
|
|
|
2023-05-15 23:15:21 +02:00
|
|
|
# unpack test libraries
|
|
|
|
mkdir -p test/bats/lib
|
|
|
|
for lib in file support assert; do
|
2023-05-16 11:32:54 +02:00
|
|
|
tar -xf %{_sourcedir}/bats-$lib-*.tar.gz -C test/bats/lib --transform "s/bats-$lib-...../$lib/"
|
2023-05-15 23:15:21 +02:00
|
|
|
done
|
|
|
|
|
2015-05-07 08:36:28 +02:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2020-05-16 14:02:07 +02:00
|
|
|
mv %{name}.sh %{name}.fish %{name}.csh bin lib completions %{buildroot}%{_datadir}/%{name}
|
2015-05-07 08:36:28 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
ln -s %{_datadir}/%{name}/bin/homeshick %{buildroot}%{_bindir}/%{name}
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
|
|
|
%check
|
2018-06-07 22:33:12 +02:00
|
|
|
# run tests if bats is available
|
2015-05-07 08:36:28 +02:00
|
|
|
if type bats &>/dev/null; then
|
2023-05-15 23:15:21 +02:00
|
|
|
HOMESHICK_DIR=%{buildroot}%{_datadir}/%{name} HOMESHICK_TEST_DIR="$PWD" bats test/suites
|
2015-05-07 08:36:28 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2018-06-07 22:33:12 +02:00
|
|
|
%doc README.md README-openSUSE.md CONTRIBUTING.md
|
|
|
|
%license LICENSE
|
2015-05-07 08:36:28 +02:00
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_bindir}/homeshick
|
|
|
|
|
|
|
|
%changelog
|