diff --git a/tig-2.5.1.tar.gz b/tig-2.5.1.tar.gz deleted file mode 100644 index b213abb..0000000 Binary files a/tig-2.5.1.tar.gz and /dev/null differ diff --git a/tig-2.5.8.tar.gz b/tig-2.5.8.tar.gz new file mode 100644 index 0000000..86366ed Binary files /dev/null and b/tig-2.5.8.tar.gz differ diff --git a/tig.spec b/tig.spec index 0423a97..f00fe2e 100644 --- a/tig.spec +++ b/tig.spec @@ -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 - 2.5.8-1 +- Update to 2.5.8 + * Wed Mar 31 2021 StrongTiger_001 - 2.5.1-2 - Fix the grammar mistake for the tool description. + * Wed Dec 28 2020 StrongTiger_001 - 2.5.1-1 - Supplement the BuildRequires. + * Sat Oct 03 2020 StrongTiger_001 - 2.5.1-0 - Add Package init and port tig to aarch64. diff --git a/tig.yaml b/tig.yaml index 1fac2fb..70336ef 100644 --- a/tig.yaml +++ b/tig.yaml @@ -1,4 +1,4 @@ version_control: github -src_repo: https://github.com/jonas/tig -tag_prefix: +src_repo: jonas/tig +tag_prefix: "^tig-" separator: "."