2024-01-05 23:03:42 +01:00
|
|
|
Name: gitea
|
|
|
|
Version: 1.21.3
|
2024-01-05 23:03:51 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 23:03:42 +01:00
|
|
|
Summary: Painless self-hosted Git service, community managed
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://about.gitea.com/
|
|
|
|
Source: https+git://github.com/go-gitea/gitea.git/v%{version}/gitea-%{version}.tar.bz2
|
|
|
|
Source1: gitea.service
|
|
|
|
Source2: gitea.sysusers
|
|
|
|
Source3: gitea.tmpfiles
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libpam-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: go
|
|
|
|
BuildRequires: nodejs
|
|
|
|
|
|
|
|
%description
|
|
|
|
Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD.
|
|
|
|
|
|
|
|
#% debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
2024-01-05 23:03:51 +01:00
|
|
|
# Workaround for poetry stuck in infinite processes
|
|
|
|
#poetry cache clear --all .
|
|
|
|
|
|
|
|
#make deps
|
2024-01-05 23:03:42 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export EXTRA_GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
|
|
|
|
export LDFLAGS="-linkmode=external -compressdwarf=false -X \
|
|
|
|
'code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/' \
|
|
|
|
-X 'code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini'"
|
|
|
|
export TAGS="bindata sqlite sqlite_unlock_notify pam"
|
|
|
|
|
|
|
|
%make -j1
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
#% makeinstall
|
|
|
|
install -D -m755 gitea %{buildroot}%{_bindir}/gitea
|
2024-01-05 23:03:51 +01:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/gitea.service
|
2024-01-05 23:03:42 +01:00
|
|
|
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
|
|
|
|
install -D -m644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gitea.conf
|
|
|
|
install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/app.ini
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%sysusers_create_package gitea %{SOURCE2}
|
|
|
|
%tmpfiles_create_package gitea %{SOURCE3}
|
|
|
|
:
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post gitea
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun gitea
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun gitea
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/gitea/app.ini
|
|
|
|
%{_bindir}/gitea
|
2024-01-05 23:03:51 +01:00
|
|
|
%{_unitdir}/gitea.service
|
2024-01-05 23:03:42 +01:00
|
|
|
%{_sysusersdir}/gitea.conf
|
|
|
|
%{_tmpfilesdir}/gitea.conf
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:03:51 +01:00
|
|
|
* Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-2mamba
|
|
|
|
- fixed service file name
|
|
|
|
|
2024-01-05 23:03:42 +01:00
|
|
|
* Wed Dec 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-1mamba
|
|
|
|
- package created using the webbuild interface
|