Source0: https://gitlab.com/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz
# Source0-md5: e863a2b6e978b5da886842822861e327
Patch0: config.yml.patch
+Patch1: unvendor-redis.patch
URL: https://gitlab.com/gitlab-org/gitlab-shell
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
mv %{name}-*/* .
cp -p config.yml.example config.yml
%patch0 -p1
+%patch1 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* hooks/*
+mv lib/vendor .
+
# deprecated
rm support/rewrite-hooks.sh
# stupid script, rather not package it at all
---- gitlab-shell-3.0.0/lib/gitlab_config.rb~ 2016-05-23 12:07:23.000000000 +0300
-+++ gitlab-shell-3.0.0/lib/gitlab_config.rb 2016-06-16 19:59:25.827657934 +0300
-@@ -1,4 +1,3 @@
--$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'vendor/redis/lib')))
- require 'yaml'
-
- class GitlabConfig
--- gitlab-shell-3.3.0/lib/gitlab_redis.rb~ 2016-07-27 18:29:35.000000000 +0300
+++ gitlab-shell-3.3.0/lib/gitlab_redis.rb 2016-08-04 09:31:43.753514191 +0300
@@ -1,2 +1 @@