# Conditional build:
%bcond_without tests # don't perform make test
%bcond_with tests_cvs # perform tests which use CVS
-%bcond_with tests_svn # perform tests which use subversion
+%bcond_without tests_svn # perform tests which use subversion
%bcond_without doc # skip building/packaging docs/manuals (takes some time)
-%define _rc rc0
-
%include /usr/lib/rpm/macros.perl
Summary: Distributed version control system focused on speed, effectivity and usability
Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności
Name: git-core
-Version: 1.8.0
-Release: 0.%{_rc}.1
+Version: 1.8.1.4
+Release: 1
License: GPL v2
Group: Development/Tools
-Source0: http://git-core.googlecode.com/files/git-%{version}.%{_rc}.tar.gz
-# Source0-md5: c0c1eb2d8ffcf77c89b12f210c147322
+Source0: http://git-core.googlecode.com/files/git-%{version}.tar.gz
+# Source0-md5: 60f32ef4a6b3fa2143b81a28704333ed
Source1: %{name}-gitweb.conf
Source2: %{name}-gitweb-httpd.conf
Source3: %{name}-gitweb-lighttpd.conf
Patch0: %{name}-tests.patch
Patch1: %{name}-key-bindings.patch
Patch2: %{name}-sysconfdir.patch
+Patch3: cherry-picked-commitlog.patch
URL: http://git-scm.com/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
BuildRequires: cvs-gnu-client < 1.13
BuildRequires: cvs-gnu-client >= 1.12
%endif
+%{?with_tests_svn:BuildRequires: subversion}
Conflicts: pdksh < 5.2.14-46
%endif
Requires: coreutils
do uruchomienia git-daemona w trybie usługi samodzielnej.
%package devel
-Summary: Header files for git-core
-Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
+Summary: Git library with header files
+Summary(pl.UTF-8): Biblioteka Gita oraz pliki nagłówkowe
Group: Development/Libraries
Requires: zlib-devel
%description devel
-Header files for git-core.
+Git library with header files.
%description devel -l pl.UTF-8
-Pliki nagłówkowe dla git-core.
+Biblioteka Gita oraz pliki nagłówkowe.
%package gitk
Summary: Tcl/Tk interface to the Git version control system
Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
%prep
-%setup -q -n git-%{version}.%{_rc}
+%setup -q -n git-%{version}
%patch0 -p1
%patch1 -p0
%patch2 -p1
+%patch3 -p1
%build
%{__aclocal}
GITWEB_FAVICON="/gitweb/git-favicon.png" \
V=1
-%{?with_doc:%{__make} -C Documentation V=1}
+%if %{with doc}
+%{__make} -C Documentation \
+ MAN_BASE_URL=file://%{_docdir}/%{name}-doc-%{version}/ \
+ V=1
+%endif
%if %{with tests}
%if %{without tests_cvs}
-rm t/t*cvs*.sh || :
+%{__rm} t/t*cvs*.sh || :
%endif
%{!?with_tests_svn:GIT_SKIP_TESTS='t91??'} %{__make} test
%endif