From d3caa53a9aeac385eefee443d9bcd970ac953f46 Mon Sep 17 00:00:00 2001 From: anolis-bot Date: Thu, 27 Oct 2022 18:06:16 +0800 Subject: [PATCH 1/2] update to git-lfs-2.13.3-3.el8_6 Signed-off-by: anolis-bot --- dist | 1 + git-lfs.spec | 22 +++++----------------- 2 files changed, 6 insertions(+), 17 deletions(-) create mode 100644 dist diff --git a/dist b/dist new file mode 100644 index 0000000..0ee7539 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8_6 diff --git a/git-lfs.spec b/git-lfs.spec index 8785f5c..db10949 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -1,4 +1,3 @@ -%define anolis_release .0.1 # Build man pages %global with_manpages 1 @@ -20,7 +19,7 @@ Version: 2.13.3 %global gobuild CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**} Name: git-lfs -Release: 2%{anolis_release}%{?dist} +Release: 3%{?dist} Summary: Git extension for versioning large files License: MIT @@ -73,23 +72,12 @@ BuildRequires: git >= 1.8.5 %endif Requires: git-core >= 1.8.5 -Requires: bash -Requires: glibc - -Provides: /usr/bin/git-lfs %description Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server. -%package doc -Summary: Documents for %{name} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} - -%description doc -Doc pages for %{name}. %prep %autosetup -p1 -n %{name}-%{version} @@ -163,17 +151,17 @@ PATH=%{buildroot}%{_bindir}:%{gobuilddir}/bin:$PATH \ %files # In Fedora this is done by using %%gopkgfiles +%doc README.md CHANGELOG.md docs %license LICENSE.md %{_bindir}/%{name} %{_mandir}/man1/%{name}*.1* %{_mandir}/man5/%{name}*.5* -%files doc -%doc README.md CHANGELOG.md docs %changelog -* Fri Jul 15 2022 Weisson - 2.13.3-2.0.1 -- Add doc sub package +* Tue Oct 04 2022 Ondrej Pohorelsky - 2.13.3-3 +- Rebuild with new Golang +- Resolves: rhbz#2131795 * Mon Jan 17 2022 Ondrej Pohorelsky - 2.13.3-2 - Define %%gobuild macro with proper ldflags -- Gitee From 64213708651f5dc3e932eaabe6ddf6b3606f2e16 Mon Sep 17 00:00:00 2001 From: Weisson Date: Sun, 17 Jul 2022 15:42:42 +0800 Subject: [PATCH 2/2] spec: add doc sub package Signed-off-by: Weisson --- git-lfs.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/git-lfs.spec b/git-lfs.spec index db10949..b4779db 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # Build man pages %global with_manpages 1 @@ -19,7 +20,7 @@ Version: 2.13.3 %global gobuild CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**} Name: git-lfs -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Git extension for versioning large files License: MIT @@ -72,12 +73,23 @@ BuildRequires: git >= 1.8.5 %endif Requires: git-core >= 1.8.5 +Requires: bash +Requires: glibc + +Provides: /usr/bin/git-lfs %description Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %autosetup -p1 -n %{name}-%{version} @@ -151,14 +163,18 @@ PATH=%{buildroot}%{_bindir}:%{gobuilddir}/bin:$PATH \ %files # In Fedora this is done by using %%gopkgfiles -%doc README.md CHANGELOG.md docs %license LICENSE.md %{_bindir}/%{name} %{_mandir}/man1/%{name}*.1* %{_mandir}/man5/%{name}*.5* +%files doc +%doc README.md CHANGELOG.md docs %changelog +* Mon Oct 31 2022 Weisson - 2.13.3-3.0.1 +- Add doc sub package + * Tue Oct 04 2022 Ondrej Pohorelsky - 2.13.3-3 - Rebuild with new Golang - Resolves: rhbz#2131795 -- Gitee