X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=tig.spec;h=67206436bd8d779f44b90c06f58e93027cff7f56;hb=a3ddc5d;hp=84001f7ce066fb807736c7d44136e93134f4a94f;hpb=c657d90935d8b6750b96cbe3ee9d895013c506fb;p=packages%2Ftig.git diff --git a/tig.spec b/tig.spec index 84001f7..6720643 100644 --- a/tig.spec +++ b/tig.spec @@ -1,13 +1,13 @@ Summary: Text-mode interface for git-core Summary(pl.UTF-8): Tekstowy interfejs do git-core Name: tig -Version: 0.17 +Version: 2.2.1 Release: 1 License: GPL v2+ Group: Development/Tools -Source0: http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz -# Source0-md5: f373343199422c59518776db448dec0e -URL: http://jonas.nitro.dk/tig/ +Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz +# Source0-md5: c93217874652d5c970e23d188df62a7c +URL: https://jonas.github.io/tig/ BuildRequires: ncurses-devel Requires: git-core BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,6 +37,9 @@ Summary: bash-completion for tig Summary(pl.UTF-8): bashowe uzupełnianie nazw dla tiga Group: Applications/Shells Requires: bash-completion +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif %description -n bash-completion-tig This package provides bash-completion for tig. @@ -48,10 +51,10 @@ Pakiet ten dostarcza bashowe uzupełnianie nazw dla tiga. %setup -q %build -%{__make} \ - CC="%{__cc}" \ - CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw" \ - LDLIBS=-lncursesw +CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw" +export CFLAGS +LIBS=-ltinfow %configure +%{__make} V=1 %install rm -rf $RPM_BUILD_ROOT @@ -61,6 +64,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d DESTDIR=$RPM_BUILD_ROOT \ mandir=%{_mandir} \ prefix=%{_prefix} + sysconfdir=%{_sysconfdir} # bash completion cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d @@ -70,9 +74,10 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc BUGS README TODO *.html contrib/tigrc +%doc *.html +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigrc %attr(755,root,root) %{_bindir}/tig -%attr(755,root,root) %{_bindir}/test-graph +#%attr(755,root,root) %{_bindir}/test-graph %{_mandir}/man1/tig.1* %{_mandir}/man5/tigrc.5* %{_mandir}/man7/tigmanual.7*