]>
Commit | Line | Data |
---|---|---|
c2673245 ER |
1 | Summary: An HTTP daemon that serves Git clients |
2 | Name: gitlab-workhorse | |
8f975f47 | 3 | Version: 0.7.1 |
d89d4327 | 4 | Release: 0.4 |
c2673245 ER |
5 | License: MIT |
6 | Group: Development/Building | |
24ddf485 | 7 | # md5 deliberately omitted until this package is useful |
8f975f47 | 8 | Source0: https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz |
c2673245 | 9 | Source1: %{name}.service |
8f975f47 | 10 | URL: https://gitlab.com/gitlab-org/gitlab-workhorse |
c2673245 ER |
11 | BuildRequires: git-core |
12 | BuildRequires: golang | |
13 | %{?with_systemd:BuildRequires: systemd-units} | |
79527d56 | 14 | Obsoletes: gitlab-git-http-server <= 0.3.0 |
c2673245 ER |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | gitlab-git-http-server was designed to unload Git HTTP traffic from | |
19 | the GitLab Rails app (Unicorn) to a separate daemon. All | |
20 | authentication and authorization logic is still handled by the GitLab | |
21 | Rails app. | |
22 | ||
23 | %prep | |
8f975f47 ER |
24 | %setup -qc |
25 | mv %{name}-v%{version}-*/* . | |
c2673245 ER |
26 | |
27 | %build | |
28 | %{__make} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
d89d4327 | 32 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{systemdunitdir}} |
7d3229e0 ER |
33 | |
34 | install -p %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} | |
35 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service | |
c2673245 ER |
36 | |
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
c2673245 ER |
40 | %preun |
41 | %systemd_preun %{name}.service | |
42 | ||
43 | %post | |
44 | %systemd_post %{name}.service | |
45 | ||
46 | %postun | |
7d3229e0 | 47 | %systemd_reload |
c2673245 ER |
48 | |
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGELOG README.md LICENSE | |
52 | %attr(755,root,root) %{_sbindir}/%{name} | |
c2673245 | 53 | %{systemdunitdir}/%{name}.service |