gitlab-gitaly/gitlab-gitaly.spec

100 lines
3.0 KiB
RPMSpec

Name: gitlab-gitaly
Version: 15.11.6
Release: 1mamba
Summary: Speed up Git access using caching
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gitlab.com/gitlab-org/gitaly
Source: https://gitlab.com/gitlab-org/gitaly/-/archive/v%{version}/gitaly-v%{version}.tar.gz
Source1: gitlab-gitaly.service
Patch0: gitlab-gitaly-14.4.5-configs.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: go
BuildRequires: git
%description
Speed up Git access using caching.
%debug_package
%global __requires_exclude_from ^%{_datadir}/gitlab-gitaly/ruby/vendor/.*$
%prep
%setup -q -n gitaly-v%{version}
#%patch0 -p1
# https://github.com/bundler/bundler/issues/6882
sed -e '/BUNDLED WITH/,+1d' -i ruby/Gemfile.lock
%build
bundle config force_ruby_platform true # build from sources as some prebuilt gems are not available for newer ruby
make BUILD_TAGS="tracer_static tracer_static_jaeger"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make PREFIX=/usr DESTDIR="%{buildroot}" install
mkdir -p %{buildroot}%{_sysconfdir}/gitlab
mkdir -p %{buildroot}%{_datadir}/gitlab-gitaly
cp -r ruby %{buildroot}%{_datadir}/gitlab-gitaly/ruby
install -Dm644 config.toml.example %{buildroot}%{_sysconfdir}/gitlab/gitlab-gitaly-config.toml
install -Dm644 %{SOURCE1} %{buildroot}%{_unitdir}/gitlab-gitaly.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun
%systemd_preun gitlab-gitaly
:
%post
%systemd_post gitlab-gitaly
:
%postun
%systemd_postun_with_restart gitlab-gitaly
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/gitlab/gitlab-gitaly-config.toml
%{_bindir}/gitaly
%{_bindir}/gitaly-*
%{_bindir}/praefect
%{_unitdir}/gitlab-gitaly.service
%{_datadir}/gitlab-gitaly
%doc LICENSE
%changelog
* Thu May 25 2023 Automatic Build System <autodist@mambasoft.it> 15.11.6-1mamba
- automatic version update by autodist
* Mon Apr 24 2023 Automatic Build System <autodist@mambasoft.it> 15.11.0-1mamba
- automatic version update by autodist
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 14.4.5-1mamba
- automatic version update by autodist
* Wed Jun 16 2021 Automatic Build System <autodist@mambasoft.it> 13.12.4-1mamba
- automatic version update by autodist
* Fri Jun 11 2021 Automatic Build System <autodist@mambasoft.it> 13.12.3-1mamba
- automatic version update by autodist
* Sat Jun 05 2021 Automatic Build System <autodist@mambasoft.it> 13.12.2-1mamba
- automatic version update by autodist
* Fri May 28 2021 Automatic Build System <autodist@mambasoft.it> 13.11.4-1mamba
- automatic version update by autodist
* Tue May 11 2021 Automatic Build System <autodist@mambasoft.it> 13.11.3-1mamba
- automatic version update by autodist
* Mon Mar 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 13.10.0-1mamba
- package created using the webbuild interface