add the dependency required and update the package
This commit is contained in:
parent
161b5e9589
commit
07d0129a49
BIN
tig-2.5.1.tar.gz
Normal file
BIN
tig-2.5.1.tar.gz
Normal file
Binary file not shown.
40
tig.spec
40
tig.spec
@ -1,27 +1,32 @@
|
|||||||
Name: tig
|
Name: tig
|
||||||
Version:
|
Version: 2.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tig is an ncurses-based text-mode interface for git and it functions mainly as a Git repository browser
|
Summary: Tig is an ncurses-based text-mode interface for git and it functions mainly as a Git repository browser
|
||||||
License: Open Source GPL License
|
License: GPL v2
|
||||||
URL: https://github.com/jonas/tig
|
URL: https://github.com/jonas/tig
|
||||||
Source0: https://github.com/jonas/tig
|
Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildRequires: ncurses-devel, asciidoc
|
||||||
|
|
||||||
BuildRequires:
|
|
||||||
BuildRequires:
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tig is an ncurses-based text-mode interface for git and it functions mainly as a Git repository browser.
|
Tig is an ncurses-based text-mode interface for git and it functions mainly as a Git repository browser.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}/Unix
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
%configure
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
|
||||||
|
%{__make} %{_smp_mflags} \
|
||||||
|
prefix=%{_prefix} \
|
||||||
|
all %{!?_without_docs: doc-man doc-html}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR="%{buildroot}"
|
[ "$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
|
%pre
|
||||||
%preun
|
%preun
|
||||||
@ -31,12 +36,17 @@ make install DESTDIR="%{buildroot}"
|
|||||||
%check
|
%check
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS NEWS README
|
%{_bindir}/*
|
||||||
%{_bindir}/%{name}
|
%{_sysconfdir}/*
|
||||||
%{_mandir}/man1/%{name}.1*
|
%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}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Aug 23 2020 StrongTiger_001 <StrongTiger_001@isrc.iscas.ac.cn>
|
* Sun Oct 25 2020 StrongTiger_001 <StrongTiger_001@isrc.iscas.ac.cn>
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user