diff --git a/git-lfs.spec b/git-lfs.spec index 29fe637de84345d6f7ce1602c2b4c15dc54de143..8785f5c58b9d68430d996bb1951140c7e7cba3d3 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: 2%{?dist} +Release: 2%{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 +* Fri Jul 15 2022 Weisson - 2.13.3-2.0.1 +- Add doc sub package + * Mon Jan 17 2022 Ondrej Pohorelsky - 2.13.3-2 - Define %%gobuild macro with proper ldflags - Related: rhbz#2021549