Name: gitea Version: 1.21.1 Release: 1%{?dist} Summary: Gitea is a painless self-hosted Git service. %define MyVersion %version %define debug_package %{nil} License: MIT URL: https://gitea.io Source0: %name-%MyVersion.tar.gz Source1: gitea.service BuildRequires: golang >= 1.16 %if 0%{?rhel} >= 8 %else BuildRequires: go-bindata %endif BuildRequires: make BuildRequires: npm Requires: git %if 0%{?rhel} >= 8 BuildRequires: platform-python-devel %endif # Temporary solution while waiting for golang and go-bindata to be built in cbs.centos.org ExclusiveArch: i686 x86_64 %description Gitea is a painless self-hosted Git service, built in GO %prep %setup -q -n %name-%MyVersion %if 0%{?rhel} >= 8 for f in \ vendor/github.com/urfave/cli/runtests \ vendor/github.com/urfave/cli/generate-flag-types \ vendor/github.com/prometheus/procfs/ttar; do pathfix.py -pni /usr/bin/python3 $f done %endif %build # Fedora only provides golang 1.16, but we require 1.17 in mimimum: #if [ -x /usr/local/go/bin/go ]; then #export PATH=/usr/local/go/bin:$PATH #fi # Overwrite LDFLAGS from rpm macros should be removed later: LDFLAGS='' export LDFLAGS TAGS="bindata" make build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/gitea mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/gitea mkdir -p $RPM_BUILD_ROOT/%{_unitdir} install custom/conf/app.example.ini $RPM_BUILD_ROOT/%{_sysconfdir}/gitea/gitea.ini install -m 755 gitea $RPM_BUILD_ROOT/%{_sharedstatedir}/gitea/gitea install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/gitea.service %files %defattr(0644,gitea,gitea,0755) %doc LICENSE %dir %attr(755,gitea,gitea) %{_sharedstatedir}/gitea %attr(755,gitea,gitea) %{_sharedstatedir}/gitea/gitea %attr(0640,gitea,gitea) %config(noreplace) %{_sysconfdir}/gitea/gitea.ini %{_unitdir}/gitea.service %clean rm -rf $RPM_BUILD_ROOT %pre getent group gitea > /dev/null || groupadd -r gitea getent passwd gitea > /dev/null || \ useradd -m -g gitea -s /bin/bash \ -c "Gitea git account" gitea %post %systemd_post gitea.service %changelog * Tue Nov 28 2023 Daniel Steiner - Update to 1.21.1. * Thu Nov 23 2023 Daniel Steiner - Update to 1.21.0. * Fri Sep 15 2023 Daniel Steiner - Update to 1.20.4. * Wed Sep 6 2023 Daniel Steiner - Update to 1.20.3. * Wed Aug 2 2023 Daniel Steiner - Update to 1.20.2. * Mon Jul 17 2023 Daniel Steiner - Update to 1.20.0. * Thu May 11 2023 Daniel Steiner - First build on Fedora 38. * Fri May 5 2023 Daniel Steiner - Update to 1.19.3. * Thu Feb 23 2023 Daniel Steiner - Update to 1.18.5. * Sat Jan 21 2023 Daniel Steiner - Update to 1.18.2. * Mon Jan 9 2023 Daniel Steiner - Update to 1.18.0. * Fri Nov 25 2022 Daniel Steiner - Update to 1.17.3. - First build on Fedora 37. * Sun Sep 11 2022 Daniel Steiner - Update to 1.17.2. * Fri Aug 19 2022 Daniel Steiner - Update to 1.17.1. * Mon Aug 1 2022 Daniel Steiner - Update to 1.17.0. * Fri May 20 2022 Daniel Steiner - Update to 1.16.8. * Fri May 6 2022 Daniel Steiner - Update to 1.16.7. * Fri Apr 22 2022 Daniel Steiner - Update to 1.16.6. * Fri Apr 8 2022 Daniel Steiner - This version requires go 1.17 or greater for the build. - Depends now on /usr/local/go/bin/go installation. - Update to 1.16.5. * Fri Mar 18 2022 Daniel Steiner - Update to 1.16.4. * Fri Feb 25 2022 Daniel Steiner - Update to 1.16.2. * Fri Feb 18 2022 Daniel Steiner - Update to 1.16.1. * Mon Jan 17 2022 Daniel Steiner - Update to 1.15.10. * Mon Dec 27 2021 Daniel Steiner - Update to 1.15.8. * Sun Dec 5 2021 Daniel Steiner - Update to 1.15.7. * Tue Nov 9 2021 Daniel Steiner - Update to 1.15.6. * Fri Oct 22 2021 Daniel Steiner - Update to 1.15.5. * Sun Oct 17 2021 Daniel Steiner - Update to 1.15.4. * Sun Sep 26 2021 Daniel Steiner - Update to 1.15.3. * Fri Sep 10 2021 Daniel Steiner - Update to 1.15.2. * Fri Aug 13 2021 Daniel Steiner - Update to 1.14.6. * Sat Jul 10 2021 Daniel Steiner - Update to 1.14.4. * Wed Jun 23 2021 Daniel Steiner - Update to 1.14.3. * Fri May 21 2021 Daniel Steiner - First build on Fedora 34. * Mon May 10 2021 Daniel Steiner - Update to version 1.14.2. * Thu Apr 22 2021 Daniel Steiner - Update to version 1.14.1. * Fri Apr 9 2021 Daniel Steiner - Update to version 1.13.7. * Sun Apr 4 2021 Daniel Steiner - Update to version 1.13.6. * Sun Mar 7 2021 Daniel Steiner - Update to version 1.13.3. * Sun Feb 7 2021 Daniel Steiner - Update to version 1.13.2. * Wed Jan 6 2021 Daniel Steiner - Update to version 1.13.1. * Sun Dec 20 2020 Daniel Steiner - Update to version 1.13.0. * Sun Nov 29 2020 Daniel Steiner - Update to version 1.12.6. * Sat Oct 31 2020 Daniel Steiner - First build for Fedora 33.