151 lines
3.8 KiB
RPMSpec
151 lines
3.8 KiB
RPMSpec
Name: gitea
|
|
Version: 1.15.10
|
|
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.8
|
|
%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
|
|
#cd ../
|
|
#mkdir src/code.gitea.io -p
|
|
#cp -av %name-%{MyVersion} src/code.gitea.io/gitea
|
|
#export GOPATH=$(pwd)
|
|
#cd src/code.gitea.io/gitea/
|
|
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
|
|
* Mon Jan 17 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.10.
|
|
|
|
* Mon Dec 27 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.8.
|
|
|
|
* Sun Dec 5 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.7.
|
|
|
|
* Tue Nov 9 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.6.
|
|
|
|
* Fri Oct 22 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.5.
|
|
|
|
* Sun Oct 17 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.4.
|
|
|
|
* Sun Sep 26 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.3.
|
|
|
|
* Fri Sep 10 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.15.2.
|
|
|
|
* Fri Aug 13 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.14.6.
|
|
|
|
* Sat Jul 10 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.14.4.
|
|
|
|
* Wed Jun 23 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to 1.14.3.
|
|
|
|
* Fri May 21 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- First build on Fedora 34.
|
|
|
|
* Mon May 10 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.14.2.
|
|
|
|
* Thu Apr 22 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.14.1.
|
|
|
|
* Fri Apr 9 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.7.
|
|
|
|
* Sun Apr 4 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.6.
|
|
|
|
* Sun Mar 7 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.3.
|
|
|
|
* Sun Feb 7 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.2.
|
|
|
|
* Wed Jan 6 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.1.
|
|
|
|
* Sun Dec 20 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.13.0.
|
|
|
|
* Sun Nov 29 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- Update to version 1.12.6.
|
|
|
|
* Sat Oct 31 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
- First build for Fedora 33.
|
|
|