From b2c8cd471a1b39b8576d2d4ff3788c463975578fa4afa5544eb5928ed67da663 Mon Sep 17 00:00:00 2001 From: Richard Rahl Date: Thu, 21 Mar 2024 12:27:58 +0000 Subject: [PATCH] Accepting request 1160096 from home:rrahl0:branches:devel:tools:scm . OBS-URL: https://build.opensuse.org/request/show/1160096 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=5 --- forgejo.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/forgejo.spec b/forgejo.spec index 8d8cb4d..8576027 100644 --- a/forgejo.spec +++ b/forgejo.spec @@ -50,14 +50,24 @@ BuildRequires: make BuildRequires: systemd-rpm-macros BuildRequires: sysuser-tools BuildRequires: apparmor-abstractions +BuildRequires: apparmor-parser BuildRequires: apparmor-rpm-macros -Recommends: apparmor-abstractions Requires: git-core Requires: git-lfs +Requires: (%{name}-apparmor if apparmor) Requires(pre): shadow %{systemd_requires} %{sysusers_requires} +%package apparmor +Summary: Apparmor profile for %{name} +Supplements: (%{name} and apparmor) +Requires: apparmor +Recommends: apparmor-abstractions + +%description apparmor +This package includes the apparmor profile for %{name} + %description Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo – the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality. @@ -110,8 +120,6 @@ install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.forgejo %{_unitdir}/%{name}.service %{_bindir}/%{name} %{_bindir}/gitea -%{_sysconfdir}/apparmor.d -%config %{_sysconfdir}/apparmor.d/usr.bin.forgejo %defattr(0660,root,forgejo,770) %config(noreplace) %{_sysconfdir}/%{name}/conf/app.ini %{_sysconfdir}/%{name} @@ -121,4 +129,7 @@ install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.forgejo %{_sharedstatedir}/%{name} %{_sysusersdir}/%{name}.conf +%files apparmor +%config %{_sysconfdir}/apparmor.d/usr.bin.forgejo + %changelog