Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
009cca9028
|
|||
|
f200a6a3aa
|
|||
|
b1c7e346b6
|
|||
|
6d90e3bd2f
|
|||
|
505ed95e47
|
|||
|
9408b225c8
|
|||
|
bcbe8ee1a0
|
|||
|
54d4c8128c
|
|||
|
90df312265
|
|||
|
ca1a71c56e
|
|||
|
a841485287
|
|||
|
8c00970c4d
|
|||
|
eadd22f317
|
|||
|
dfed526137
|
|||
|
3a27c9e8fa
|
|||
|
6fcecc988b
|
|||
|
2bd7927c6c
|
|||
|
24e4980de2
|
|||
|
1e92745429
|
|||
|
e1f11e569e
|
|||
|
eb2be0c994
|
|||
|
7f6b8669ee
|
|||
|
1469c7d2de
|
|||
|
131c750d23
|
|||
|
37a3881154
|
|||
|
96fad2dafc
|
|||
|
2842bfd829
|
|||
|
0cc24d731b
|
+97
-50
@@ -1,46 +1,41 @@
|
|||||||
ExclusiveArch: %{go_arches}
|
ExclusiveArch: %{go_arches}
|
||||||
%if 0%{?el8}
|
%if 0%{?el8} || 0%{?el9} || 0%{?el10} || 0%{?fc42} || 0%{?fc43} || 0%{?fc44}
|
||||||
%global debug_package %{nil}
|
|
||||||
%endif
|
|
||||||
%if 0%{?el9}
|
|
||||||
%global debug_package %{nil}
|
|
||||||
%endif
|
|
||||||
%if 0%{?fc40}
|
|
||||||
%global debug_package %{nil}
|
|
||||||
%endif
|
|
||||||
%if 0%{?fc41}
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: forgejo
|
Name: forgejo
|
||||||
Version: 8.0.3
|
Version: 11.0.15
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Beyond coding. We forge.
|
Summary: Beyond coding. We forge.
|
||||||
|
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
URL: https://forgejo.org/
|
URL: https://forgejo.org/
|
||||||
Source0: https://codeberg.org/%{name}/%{name}/releases/download/v%{version}/%{name}-src-%{version}.tar.gz
|
Source0: https://codeberg.org/%{name}/%{name}/releases/download/v%{version}/%{name}-src-%{version}.tar.gz
|
||||||
|
Source1: forgejo.sysusers
|
||||||
|
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: golang >= 1.23.6
|
BuildRequires: make
|
||||||
|
BuildRequires: golang >= 1.25.11
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
Requires(pre): /usr/bin/getent
|
BuildRequires: systemd-rpm-macros
|
||||||
Requires(pre): /usr/sbin/useradd
|
%{?sysusers_requires_compat}
|
||||||
Requires: git
|
Requires: git
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Forgejo is a self-hosted lightweight software forge. Easy to install and
|
||||||
|
low maintenance, it just does the job.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-src-%{version}
|
%setup -q -n %{name}-src-%{version}
|
||||||
|
cp %{SOURCE1} .
|
||||||
%build
|
%build
|
||||||
sed -i -e 's/-s -w //g' Makefile
|
sed -i -e 's/-s -w //g' Makefile
|
||||||
|
|
||||||
LDFLAGS=""
|
LDFLAGS=""
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
|
|
||||||
make \
|
%make_build \
|
||||||
TAGS="bindata timetzdata pam sqlite sqlite_unlock_notify" \
|
TAGS="bindata timetzdata pam sqlite sqlite_unlock_notify" \
|
||||||
FORGEJO_VERSION="%{version}-%{release}" \
|
FORGEJO_VERSION="%{version}-%{release}" \
|
||||||
build
|
build
|
||||||
@@ -49,59 +44,111 @@ make \
|
|||||||
sed -i \
|
sed -i \
|
||||||
-e 's|^User=.*$|User=forgejo|g' \
|
-e 's|^User=.*$|User=forgejo|g' \
|
||||||
-e 's|^Group=.*$|Group=forgejo|g' \
|
-e 's|^Group=.*$|Group=forgejo|g' \
|
||||||
-e 's|^WorkingDirectory=.*$|WorkingDirectory=/var/lib/forgejo|g' \
|
-e 's|^WorkingDirectory=.*$|WorkingDirectory=%{_sharedstatedir}/forgejo|g' \
|
||||||
-e 's|^ExecStart=.*$|ExecStart=%{_bindir}/forgejo web /etc/forgejo/app.ini|g' \
|
-e 's|^ExecStart=.*$|ExecStart=%{_bindir}/forgejo web --config %{_sysconfdir}/forgejo/app.ini|g' \
|
||||||
-e 's|^Environment=.*$|Environment=USER=forgejo HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo|g' \
|
-e 's|^Environment=.*$|Environment=USER=forgejo HOME=%{_sharedstatedir}/forgejo FORGEJO_WORK_DIR=%{_sharedstatedir}/forgejo|g' \
|
||||||
contrib/systemd/forgejo.service
|
contrib/systemd/forgejo.service
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
install -d %{buildroot}%{_bindir}
|
||||||
%{__install} -d %{buildroot}%{_bindir}
|
install -d %{buildroot}%{_sysconfdir}/forgejo
|
||||||
%{__install} -d %{buildroot}%{_sysconfdir}/forgejo
|
install -d %{buildroot}%{_unitdir}
|
||||||
%{__install} -d %{buildroot}/usr/lib/systemd/system
|
install -d %{buildroot}%{_sysusersdir}
|
||||||
%{__install} -d %{buildroot}/var/lib/forgejo
|
install -d %{buildroot}%{_sharedstatedir}/forgejo
|
||||||
%{__install} -d %{buildroot}/var/log/forgejo
|
install -d %{buildroot}%{_localstatedir}/log/forgejo
|
||||||
%{__install} -p -m 0755 gitea %{buildroot}%{_bindir}/%{name}
|
install -p -m 0755 gitea %{buildroot}%{_bindir}/%{name}
|
||||||
%{__install} -p -m 0644 contrib/systemd/forgejo.service %{buildroot}/usr/lib/systemd/system/forgejo.service
|
install -p -m 0644 contrib/systemd/forgejo.service %{buildroot}%{_unitdir}/forgejo.service
|
||||||
|
install -p -m 0644 forgejo.sysusers %{buildroot}%{_sysusersdir}/forgejo.conf
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent passwd forgejo > /dev/null 2>&1 || useradd -r -d /var/lib/forgejo -s /bin/bash forgejo
|
%sysusers_create_compat forgejo.sysusers
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ -x /usr/bin/systemctl ]
|
%systemd_post forgejo.service
|
||||||
then
|
|
||||||
systemctl condrestart forgejo
|
%preun
|
||||||
elif [ -x /usr/sbin/service ]
|
%systemd_preun forgejo.service
|
||||||
then
|
|
||||||
service forgejo condrestart
|
%postun
|
||||||
fi
|
%systemd_postun_with_restart forgejo.service
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc DCO
|
|
||||||
%doc CODEOWNERS
|
%doc CODEOWNERS
|
||||||
%doc CONTRIBUTING.md
|
%doc CONTRIBUTING.md
|
||||||
|
%doc DCO
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%attr(0700, forgejo, forgejo) %dir /var/lib/forgejo
|
%doc RELEASE-NOTES.md
|
||||||
%attr(0700, forgejo, forgejo) %dir /var/log/forgejo
|
%attr(0700, forgejo, forgejo) %dir %{_sharedstatedir}/forgejo
|
||||||
|
%attr(0700, forgejo, forgejo) %dir %{_localstatedir}/log/forgejo
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%attr(0644, root, root) /usr/lib/systemd/system/forgejo.service
|
%{_unitdir}/forgejo.service
|
||||||
%attr(-, forgejo, forgejo) %config(noreplace) %{_sysconfdir}/forgejo
|
%{_sysusersdir}/forgejo.conf
|
||||||
|
%attr(0770, root, forgejo) %dir %{_sysconfdir}/forgejo
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 03 2025 Jason Rothstein
|
* Wed Jun 10 2026 Jason Rothstein
|
||||||
- 8.0.3
|
- 11.0.15
|
||||||
|
- golang >= 1.25.11
|
||||||
|
|
||||||
* Tue Mar 03 2025 Jason Rothstein
|
* Mon May 18 2026 Jason Rothstein
|
||||||
- 8.0.2
|
- 11.0.14
|
||||||
|
|
||||||
* Mon Mar 03 2025 Jason Rothstein
|
* Mon May 11 2026 Jason Rothstein
|
||||||
- 8.0.1
|
- packaging best practices for Fedora 44
|
||||||
|
|
||||||
* Sun Mar 02 2025 Jason Rothstein
|
* Wed Apr 29 2026 Jason Rothstein
|
||||||
- 8.0.0
|
- 11.0.13
|
||||||
|
|
||||||
|
* Tue Apr 28 2026 Jason Rothstein
|
||||||
|
- Drop EL8
|
||||||
|
|
||||||
|
* Mon Apr 27 2026 Jason Rothstein
|
||||||
|
- Add Fedora 44
|
||||||
|
|
||||||
|
* Wed Apr 15 2026 Jason Rothstein
|
||||||
|
- 11.0.12
|
||||||
|
- golang >= 1.25.9
|
||||||
|
|
||||||
|
* Sun Feb 01 2026 Jason Rothstein
|
||||||
|
- 11.0.10
|
||||||
|
- golang >= 1.25.6
|
||||||
|
|
||||||
|
* Sun Feb 01 2026 Jason Rothstein
|
||||||
|
- 11.0.9
|
||||||
|
|
||||||
|
* Wed Nov 26 2025 Jason Rothstein
|
||||||
|
- 11.0.8
|
||||||
|
|
||||||
|
* Tue Nov 25 2025 Jason Rothstein
|
||||||
|
- 11.0.7
|
||||||
|
- golang >= 1.25
|
||||||
|
|
||||||
|
* Wed Oct 29 2025 Jason Rothstein
|
||||||
|
- 11.0.6
|
||||||
|
|
||||||
|
* Mon Oct 27 2025 Jason Rothstein
|
||||||
|
- 11.0.6
|
||||||
|
|
||||||
|
* Sat Oct 25 2025 Jason Rothstein
|
||||||
|
- 11.0.5
|
||||||
|
|
||||||
|
* Thu Oct 23 2025 Jason Rothstein
|
||||||
|
- 11.0.4
|
||||||
|
|
||||||
|
* Fri Aug 01 2025 Jason Rothstein
|
||||||
|
- 11.0.3
|
||||||
|
|
||||||
|
* Tue Jul 14 2025 Jason Rothstein
|
||||||
|
- 11.0.2
|
||||||
|
|
||||||
|
* Sun May 11 2025 Jason Rothstein
|
||||||
|
- 11.0.1
|
||||||
|
|
||||||
|
* Sun Apr 27 2025 Jason Rothstein
|
||||||
|
- 11.0.0
|
||||||
|
- goland >= 1.24
|
||||||
|
- debug packages won't be built
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
u forgejo - "Forgejo Git Service" /var/lib/forgejo /sbin/nologin
|
||||||
Reference in New Issue
Block a user