2024-01-05 23:03:42 +01:00
|
|
|
Name: gitea
|
2024-09-06 14:31:52 +02:00
|
|
|
Version: 1.22.2
|
|
|
|
Release: 1mamba
|
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
|
2024-07-20 20:05:53 +02:00
|
|
|
Patch0: gitea-1.22.1-theme-primary-green.patch
|
2024-01-05 23:03:42 +01:00
|
|
|
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-07-20 20:05:53 +02:00
|
|
|
%patch 0 -p1
|
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"
|
|
|
|
|
2024-01-05 23:04:10 +01:00
|
|
|
go mod tidy
|
|
|
|
|
2024-01-05 23:03:42 +01:00
|
|
|
%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 %{SOURCE2} %{buildroot}%{_sysusersdir}/gitea.conf
|
2024-01-05 23:04:10 +01:00
|
|
|
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
|
2024-01-05 23:03:42 +01:00
|
|
|
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-09-06 14:31:52 +02:00
|
|
|
* Fri Sep 06 2024 Automatic Build System <autodist@openmamba.org> 1.22.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-20 20:05:53 +02:00
|
|
|
* Sat Jul 20 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.22.1-2mamba
|
|
|
|
- remove custom fork of chroma since patch has been merged upstream
|
|
|
|
- patch theme css to restore green as primary color
|
|
|
|
|
2024-07-04 18:29:37 +02:00
|
|
|
* Thu Jul 04 2024 Automatic Build System <autodist@openmamba.org> 1.22.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-28 09:47:42 +02:00
|
|
|
* Tue May 28 2024 Automatic Build System <autodist@openmamba.org> 1.22.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-17 10:50:28 +02:00
|
|
|
* Wed Apr 17 2024 Automatic Build System <autodist@openmamba.org> 1.21.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-27 23:56:32 +01:00
|
|
|
* Wed Mar 27 2024 Automatic Build System <autodist@openmamba.org> 1.21.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-22 18:56:17 +01:00
|
|
|
* Fri Mar 22 2024 Automatic Build System <autodist@openmamba.org> 1.21.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-13 15:27:40 +01:00
|
|
|
* Wed Mar 13 2024 Automatic Build System <autodist@openmamba.org> 1.21.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-26 21:59:06 +01:00
|
|
|
* Mon Feb 26 2024 Automatic Build System <autodist@openmamba.org> 1.21.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-23 15:54:40 +01:00
|
|
|
* Fri Feb 23 2024 Automatic Build System <autodist@openmamba.org> 1.21.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-02 09:11:14 +01:00
|
|
|
* Thu Feb 01 2024 Automatic Build System <autodist@openmamba.org> 1.21.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-18 13:37:26 +01:00
|
|
|
* Wed Jan 17 2024 Automatic Build System <autodist@openmamba.org> 1.21.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:04:10 +01:00
|
|
|
* Tue Jan 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-3mamba
|
|
|
|
- use custom chroma repository for rpm spec support
|
|
|
|
- gitea.service: don't set ProtectSystem=strict to fix usage of sendmail
|
|
|
|
|
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
|