!9 Update to 2.5.8 & 修正yaml文件

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-09-18 04:51:28 +00:00 committed by Gitee
commit 6386d10975
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 26 additions and 31 deletions

Binary file not shown.

BIN
tig-2.5.8.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,14 @@
Name: tig
Version: 2.5.1
Release: 2
Version: 2.5.8
Release: 1
Summary: Tig is a ncurses-based text-mode interface for git and it functions mainly as a Git repository browser
License: GPL v2
License: GPL-2.0-or-later
URL: https://github.com/jonas/tig
Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: ncurses-devel, asciidoc, git-core, xmlto
BuildRequires: ncurses-devel asciidoc git-core xmlto gcc make bash-completion
Requires: git-core
%description
Tig is a ncurses-based text-mode interface for git and it functions mainly as a Git repository browser.
@ -16,41 +18,34 @@ Tig is a ncurses-based text-mode interface for git and it functions mainly as a
%build
%configure
CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
%{__make} %{_smp_mflags} \
prefix=%{_prefix} \
all %{!?_without_docs: doc-man doc-html}
%make_build all doc-man doc-html
sed -i -e 's/\r//' *.html
sed -i '/^#!bash/,+1 d' contrib/%{name}-completion.bash
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
%{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
install %{!?_without_docs: install-doc-man}
%pre
%preun
%post
%postun
%check
%make_install install-doc-man
install -Dpm 644 contrib/%{name}-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
%files
%defattr(-,root,root)
%{_bindir}/*
%{_sysconfdir}/*
%doc README.adoc COPYING INSTALL.adoc NEWS.adoc contrib/tig-completion.bash contrib/tig-completion.zsh
%{!?_without_docs: %{_mandir}/man1/*.1*}
%{!?_without_docs: %{_mandir}/man5/*.5*}
%{!?_without_docs: %{_mandir}/man7/*.7*}
%{!?_without_docs: %doc doc/*.html}
%{?_without_docs: %doc doc/*.txt}
%license COPYING
%doc COPYING NEWS.adoc README.adoc *.html
%{_bindir}/tig
%{_datadir}/bash-completion/completions
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_mandir}/man1/tig.1*
%{_mandir}/man5/tigrc.5*
%{_mandir}/man7/tigmanual.7*
%changelog
* Sat Sep 16 2023 liyanan <thistleslyn@163.com> - 2.5.8-1
- Update to 2.5.8
* Wed Mar 31 2021 StrongTiger_001 <StrongTiger_001@isrc.iscas.ac.cn> - 2.5.1-2
- Fix the grammar mistake for the tool description.
* Wed Dec 28 2020 StrongTiger_001 <StrongTiger_001@isrc.iscas.ac.cn> - 2.5.1-1
- Supplement the BuildRequires.
* Sat Oct 03 2020 StrongTiger_001 <StrongTiger_001@isrc.iscas.ac.cn> - 2.5.1-0
- Add Package init and port tig to aarch64.

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: https://github.com/jonas/tig
tag_prefix:
src_repo: jonas/tig
tag_prefix: "^tig-"
separator: "."