-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-friendly.spec
53 lines (39 loc) · 1.63 KB
/
git-friendly.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%define SHA256SUM0 eda37ce98ed81f14b0e500d5e7e132f04d93815ba90d63e856f464165bd60f1e
%define debug_package %{nil}
Name: git-friendly
Version: 1.0.2
Release: 1%{?dist}
Summary: Streamline your git workflow: just type pull, branch, merge, push
License: MIT
URL: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
Requires: git
%description
A collection of shell scripts for making pulling, pushing, branching, merging, and stashing with Git fast and painless.
Git sometimes requires typing two or three commands just to execute something basic like fetching new code. git-friendly adds a few new commands — pull, push, branch, merge and stash which:
- does the most useful thing by default; plus
- push copies a GitHub compare URL to your clipboard;
- pull runs commands like bundle install, npm install, yarn install, and composer install if necessary;
- branch tracks remote branches if they are available;
- stash includes untracked files by default.
Less time fighting Git — more time actually doing work.
%prep
echo "%SHA256SUM0 %SOURCE0" | sha256sum -c -
%autosetup -n %{name}-%{version}
%build
/bin/true
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/local/bin
install -m 0755 branch %{buildroot}/usr/local/bin/branch
install -m 0755 merge %{buildroot}/usr/local/bin/merge
install -m 0755 pull %{buildroot}/usr/local/bin/pull
install -m 0755 push %{buildroot}/usr/local/bin/push
install -m 0755 stash %{buildroot}/usr/local/bin/stash
%files
/usr/local/bin/branch
/usr/local/bin/merge
/usr/local/bin/pull
/usr/local/bin/push
/usr/local/bin/stash
%changelog