gitea: upgrade to 1.22.1
This commit is contained in:
parent
3c591a97aa
commit
4c025b1c98
@ -2,13 +2,13 @@
|
|||||||
%global _default_patch_fuzz 2
|
%global _default_patch_fuzz 2
|
||||||
|
|
||||||
Name: gitea
|
Name: gitea
|
||||||
Version: 1.21.10
|
Version: 1.22.1
|
||||||
Release: 1%{dist}
|
Release: 1%{dist}
|
||||||
Summary: Git with a cup of tea, painless self-hosted git service
|
Summary: Git with a cup of tea, painless self-hosted git service
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
URL: https://gitea.io/
|
URL: https://gitea.io/
|
||||||
Source0: https://github.com/go-gitea/gitea/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/go-gitea/gitea/archive/v%{version}.tar.gz#/%{name}-src-%{version}.tar.gz
|
||||||
Source6: gitea.sysusers
|
Source6: gitea.sysusers
|
||||||
Source10: gitea.service
|
Source10: gitea.service
|
||||||
Source11: gitea.service.d.conf
|
Source11: gitea.service.d.conf
|
||||||
@ -16,13 +16,14 @@ Source12: app-gitea.ini
|
|||||||
Patch0: make-version.patch
|
Patch0: make-version.patch
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: golang >= 1.21
|
BuildRequires: golang >= 1.22
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
BuildRequires: pkgconfig(openssl) >= 3.0, pkgconfig(openssl) < 3.8
|
BuildRequires: pkgconfig(openssl) >= 3.0, pkgconfig(openssl) < 3.8
|
||||||
BuildRequires: npm >= 1:8.19
|
#BuildRequires: npm >= 1:8.19
|
||||||
BuildRequires: nodejs >= 1:18.0
|
BuildRequires: npm < 1:10.0
|
||||||
|
#BuildRequires: nodejs >= 1:20.0
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -31,14 +32,16 @@ of setting up a self-hosted Git service. It is similar to GitHub, Bitbucket,
|
|||||||
and Gitlab. Gitea is a fork of Gogs.
|
and Gitlab. Gitea is a fork of Gogs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1 -n %{name}-src-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
ulimit -n 8192
|
||||||
export GOPATH="`pwd`/.godeps"
|
export GOPATH="`pwd`/.godeps"
|
||||||
%if 0%{?rhel} < 9
|
%if 0%{?rhel} < 9
|
||||||
export CGO_CFLAGS="$CGO_CFLAGS -I%{_includedir}/openssl3"
|
export CGO_CFLAGS="$CGO_CFLAGS -I%{_includedir}/openssl3"
|
||||||
%endif
|
%endif
|
||||||
export LDFLAGS='-X "code.gitea.io/gitea/modules/setting.StaticRootPath=%{_datadir}/gitea/web" -X "code.gitea.io/gitea/modules/setting.AppWorkPath=%{_localstatedir}/lib/gitea/" -X "code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini" -X "main.MakeVersion=GNU Make 4.3" -X "main.Version=%{version}" -X "main.Tags=bindata tidb sqlite sqlite_unlock_notify pam"'
|
export EXTRA_GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
|
||||||
|
export LDFLAGS='-linkmode=external -compressdwarf=false -X "code.gitea.io/gitea/modules/setting.StaticRootPath=%{_datadir}/gitea/web" -X "code.gitea.io/gitea/modules/setting.AppWorkPath=%{_localstatedir}/lib/gitea/" -X "code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini" -X "main.MakeVersion=GNU Make 4.3" -X "main.Version=%{version}" -X "main.Tags=bindata tidb sqlite sqlite_unlock_notify pam"'
|
||||||
TAGS="bindata tidb sqlite sqlite_unlock_notify pam" make VERSION=%{version} generate all
|
TAGS="bindata tidb sqlite sqlite_unlock_notify pam" make VERSION=%{version} generate all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -89,6 +92,12 @@ cp -r options public templates %{buildroot}%{_datadir}/%{name}/web
|
|||||||
%{_sysusersdir}/%{name}.conf
|
%{_sysusersdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 4 2024 Raven <raven@sysadmins.ws> - 1.22.1-1
|
||||||
|
- update to 1.22.1
|
||||||
|
|
||||||
|
* Tue May 28 2024 Raven <raven@sysadmins.ws> - 1.22.0-1
|
||||||
|
- update to 1.22.0
|
||||||
|
|
||||||
* Tue Mar 26 2024 Raven <raven@sysadmins.ws> - 1.21.10-1
|
* Tue Mar 26 2024 Raven <raven@sysadmins.ws> - 1.21.10-1
|
||||||
- update to 1.21.10
|
- update to 1.21.10
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user