已合并
update to version 3.8.0 #30
Funda Wang创建于 29 天前
update to version 3.8.0 #30
已合并
从已删除 :main合入到src-openeuler/git-lfsmaster
共 4 个文件变更+19-17
Binary files do not support preview
Binary files do not support preview
| @@ -2,14 +2,13 @@ | |||
| 2 | %bcond_without check | 2 | %bcond_without check |
| 3 | 3 | ||
| 4 | Name: git-lfs | 4 | Name: git-lfs |
| 5 | -Version: 3.7.1 | 5 | +Version: 3.8.0 |
| 6 | Release: 1 | 6 | Release: 1 |
| 7 | Summary: Git extension for versioning large files | 7 | Summary: Git extension for versioning large files |
| 8 | 8 | ||
| 9 | License: MIT and BSD and Apache-2.0 and MPL-2.0 | 9 | License: MIT and BSD and Apache-2.0 and MPL-2.0 |
| 10 | URL: https://git-lfs.github.io/ | 10 | URL: https://git-lfs.github.io/ |
| 11 | -Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-v%{version}.tar.gz | 11 | +Source0: https://github.com/git-lfs/git-lfs/releases/download/v%{version}/git-lfs-vendor-v%{version}.tar.gz |
| 12 | -Source1: vendor.tar.xz | ||
| 13 | Patch6000: 0001-use-vendor-dir-for-build.patch | 12 | Patch6000: 0001-use-vendor-dir-for-build.patch |
| 14 | 13 | ||
| 15 | %if %{with check} | 14 | %if %{with check} |
| @@ -19,10 +18,12 @@ BuildRequires: perl-Test-Harness | |||
| 19 | # Tests require full git suite, but not generally needed. | 18 | # Tests require full git suite, but not generally needed. |
| 20 | BuildRequires: git >= 1.8.5 | 19 | BuildRequires: git >= 1.8.5 |
| 21 | %endif | 20 | %endif |
| 22 | -BuildRequires: golang >= 1.23.0 | 21 | +BuildRequires: golang >= 1.25.0 |
| 23 | BuildRequires: tar, which | 22 | BuildRequires: tar, which |
| 24 | 23 | ||
| 25 | Requires: git-core >= 1.8.5 | 24 | Requires: git-core >= 1.8.5 |
| 25 | +Requires(post): /usr/bin/git | ||
| 26 | +Requires(preun): /usr/bin/git | ||
| 26 | Supplements: (git-core and openEuler-release) | 27 | Supplements: (git-core and openEuler-release) |
| 27 | 28 | ||
| 28 | %description | 29 | %description |
| @@ -32,30 +33,31 @@ storing the file contents on a remote server. | |||
| 32 | 33 | ||
| 33 | 34 | ||
| 34 | %prep | 35 | %prep |
| 35 | -%autosetup -p0 -n %{name}-%{version} -a 1 | 36 | +%autosetup -p0 -n %{name}-%{version} |
| 36 | - | ||
| 37 | -cd .. | ||
| 38 | -mv %{name}-%{version} %{name} | ||
| 39 | -mkdir -p %{name}-%{version}/src/github.com/git-lfs | ||
| 40 | -mv %{name} %{name}-%{version}/src/github.com/git-lfs/ | ||
| 41 | - | ||
| 42 | 37 | ||
| 43 | %build | 38 | %build |
| 44 | -pushd src/github.com/git-lfs/%{name} | ||
| 45 | make | 39 | make |
| 46 | -popd | ||
| 47 | -# BaseOS is not support rubygem-ronn/ronn, ignore generate man pages | ||
| 48 | - | ||
| 49 | 40 | ||
| 50 | %install | 41 | %install |
| 51 | -install -Dpm0755 src/github.com/git-lfs/git-lfs/bin/git-lfs %{buildroot}%{_bindir}/%{name} | 42 | +install -Dpm0755 bin/git-lfs %{buildroot}%{_bindir}/%{name} |
| 52 | 43 | ||
| 44 | +%post | ||
| 45 | +git lfs install --system | ||
| 46 | + | ||
| 47 | +%preun | ||
| 48 | +if [ $1 -eq 0 ] ; then | ||
| 49 | + git lfs uninstall --system | ||
| 50 | +fi | ||
| 53 | 51 | ||
| 54 | %files | 52 | %files |
| 53 | +%license LICENSE.md | ||
| 54 | +%doc CHANGELOG.md | ||
| 55 | %{_bindir}/%{name} | 55 | %{_bindir}/%{name} |
| 56 | 56 | ||
| 57 | - | ||
| 58 | %changelog | 57 | %changelog |
| 58 | +* Fri Aug 28 2026 Funda Wang <fundawang@yeah.net> - 3.8.0-1 | ||
| 59 | +- update to 3.8.0 | ||
| 60 | + | ||
| 59 | * Sun Oct 19 2025 Funda Wang <fundawang@yeah.net> - 3.7.1-1 | 61 | * Sun Oct 19 2025 Funda Wang <fundawang@yeah.net> - 3.7.1-1 |
| 60 | - update to 3.7.1 | 62 | - update to 3.7.1 |
| 61 | 63 | ||
Binary files do not support preview