]> git.pld-linux.org Git - packages/gitlab-workhorse.git/blame - gitlab-workhorse.spec
oops
[packages/gitlab-workhorse.git] / gitlab-workhorse.spec
CommitLineData
c2673245
ER
1Summary: An HTTP daemon that serves Git clients
2Name: gitlab-workhorse
8f975f47 3Version: 0.7.1
d89d4327 4Release: 0.4
c2673245
ER
5License: MIT
6Group: Development/Building
24ddf485 7# md5 deliberately omitted until this package is useful
8f975f47 8Source0: https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz
c2673245 9Source1: %{name}.service
8f975f47 10URL: https://gitlab.com/gitlab-org/gitlab-workhorse
c2673245
ER
11BuildRequires: git-core
12BuildRequires: golang
13%{?with_systemd:BuildRequires: systemd-units}
79527d56 14Obsoletes: gitlab-git-http-server <= 0.3.0
c2673245
ER
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18gitlab-git-http-server was designed to unload Git HTTP traffic from
19the GitLab Rails app (Unicorn) to a separate daemon. All
20authentication and authorization logic is still handled by the GitLab
21Rails app.
22
23%prep
8f975f47
ER
24%setup -qc
25mv %{name}-v%{version}-*/* .
c2673245
ER
26
27%build
28%{__make}
29
30%install
31rm -rf $RPM_BUILD_ROOT
d89d4327 32install -d $RPM_BUILD_ROOT{%{_sbindir},%{systemdunitdir}}
7d3229e0
ER
33
34install -p %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
35cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
c2673245
ER
36
37%clean
38rm -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
This page took 0.067395 seconds and 4 git commands to generate.