-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgit-branch-blacklist.spec
46 lines (31 loc) · 1.04 KB
/
git-branch-blacklist.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
%{!?CODE_VERSION: %global CODE_VERSION %(cat VERSION)}
Name: git-branch-blacklist
Version: %{CODE_VERSION}
Release: 1%{?dist}
Group: Development/Tools
Summary: Git branch blacklisting tools
License: GPLv3+
URL: https://github.com/ashcrow/git-branch-blacklist
Source0: %{name}-%{version}.tar.gz
Requires: git
BuildArch: noarch
%description
Git branch blacklisting tools for use over the SSH transport.
%prep
%setup -q
%build
%{__sed} -i "s|PRE_RECEIVE_HOOK_FILE=\"\"|PRE_RECEIVE_HOOK_FILE=\"%{_datarootdir}/%{name}/git-hooks/pre-receive\"|" bin/%{name}-install
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}/
mkdir -p $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/
PREFIX=$RPM_BUILD_ROOT %make_install
%files
%defattr(-, root, root, -)
%doc README.md
%{_bindir}/git-branch-blacklist
%{_bindir}/git-branch-blacklist-install
%{_datarootdir}/%{name}/git-hooks/pre-receive
%changelog
* Fri Jan 31 2014 Steve Milner <stevem@gnulinux.net> - 0.1.0-1
- Initial spec file.