67 lines
1.8 KiB
RPMSpec
67 lines
1.8 KiB
RPMSpec
Name: gitlab-workhorse
|
|
Version: 8.65.0
|
|
Release: 2mamba
|
|
Summary: A smart reverse proxy for GitLab
|
|
Group: Applications/Web
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://gitlab.com/gitlab-org/gitlab/tree/master/workhorse
|
|
Source: https://gitlab.com/gitlab-org/gitlab-workhorse/-/archive/v%{version}/gitlab-workhorse-v%{version}.tar.bz2
|
|
Source1: gitlab-workhorse.service
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: gitlab
|
|
BuildRequires: go
|
|
|
|
%description
|
|
GitLab Workhorse is a smart reverse proxy for GitLab. It handles "large" HTTP requests such as file downloads, file uploads, Git push/pull and Git archive downloads.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n %{name}-v%{version}
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -D -m755 gitlab-workhorse %{buildroot}%{_bindir}/gitlab-workhorse
|
|
install -D -m755 gitlab-zip-cat %{buildroot}%{_bindir}/gitlab-zip-cat
|
|
install -D -m755 gitlab-zip-metadata %{buildroot}%{_bindir}/gitlab-zip-metadata
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/gitlab-workhorse.service
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%preun
|
|
%systemd_preun gitlab-workhorse
|
|
:
|
|
|
|
%post
|
|
%systemd_post gitlab-workhorse
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun gitlab-workhorse
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/gitlab-workhorse
|
|
%{_bindir}/gitlab-zip-cat
|
|
%{_bindir}/gitlab-zip-metadata
|
|
%{_unitdir}/gitlab-workhorse.service
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Mon Mar 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.65.0-2mamba
|
|
- fix service file and require gitlab
|
|
|
|
* Mon Mar 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.65.0-1mamba
|
|
- package created using the webbuild interface
|