use custom chroma repository for rpm spec support

gitea.service: don't set ProtectSystem=strict to fix usage of sendmail [release 1.21.3-3mamba;Tue Jan 02 2024]
This commit is contained in:
Silvan Calarco 2024-01-05 23:04:10 +01:00
parent 02f794df79
commit 4f1a14e372
2 changed files with 12 additions and 3 deletions

View File

@ -38,7 +38,7 @@ ProtectKernelLogs=true
ProtectKernelModules=true ProtectKernelModules=true
ProtectKernelTunables=true ProtectKernelTunables=true
ProtectProc=invisible ProtectProc=invisible
ProtectSystem=strict #ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=true RestrictNamespaces=true
RestrictRealtime=true RestrictRealtime=true

View File

@ -1,6 +1,6 @@
Name: gitea Name: gitea
Version: 1.21.3 Version: 1.21.3
Release: 2mamba Release: 3mamba
Summary: Painless self-hosted Git service, community managed Summary: Painless self-hosted Git service, community managed
Group: System/Servers Group: System/Servers
Vendor: openmamba Vendor: openmamba
@ -26,6 +26,7 @@ Painless self-hosted all-in-one software development service, including Git host
%prep %prep
%setup -q %setup -q
#-D -T #-D -T
#:<< _EOF #:<< _EOF
# Workaround for poetry stuck in infinite processes # Workaround for poetry stuck in infinite processes
@ -40,6 +41,10 @@ export LDFLAGS="-linkmode=external -compressdwarf=false -X \
-X 'code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini'" -X 'code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini'"
export TAGS="bindata sqlite sqlite_unlock_notify pam" export TAGS="bindata sqlite sqlite_unlock_notify pam"
# Replace chroma with custom fork adding RPM Spec support for syntax highlighting
go mod edit -replace github.com/alecthomas/chroma/v2="github.com/mambasoft/chroma/v2@v2.0.0-20240102115650-6fed1b9b0d99"
go mod tidy
%make -j1 %make -j1
%install %install
@ -47,8 +52,8 @@ export TAGS="bindata sqlite sqlite_unlock_notify pam"
#% makeinstall #% makeinstall
install -D -m755 gitea %{buildroot}%{_bindir}/gitea install -D -m755 gitea %{buildroot}%{_bindir}/gitea
install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/gitea.service install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/gitea.service
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
install -D -m644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gitea.conf install -D -m644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gitea.conf
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/app.ini install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/app.ini
%clean %clean
@ -81,6 +86,10 @@ install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/ap
%doc LICENSE %doc LICENSE
%changelog %changelog
* 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
* Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-2mamba * Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-2mamba
- fixed service file name - fixed service file name