X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=git-core.spec;h=f3221f5e9317f08a6bd062aa290437c62d1cc6fa;hb=5639bae70b24edb643211225e14e3faf83918754;hp=b2ec1194621c6e0e12af9698ff974e05857b56f3;hpb=c44aee2528bbf8f6ba4cc4f6d359302d81d8651c;p=packages%2Fgit-core.git diff --git a/git-core.spec b/git-core.spec index b2ec119..f3221f5 100644 --- a/git-core.spec +++ b/git-core.spec @@ -2,19 +2,20 @@ # 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) +%bcond_without pcre # perl-compatible regexes support %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.7.12 -Release: 2 +Version: 1.8.5.2 +Release: 1 License: GPL v2 Group: Development/Tools Source0: http://git-core.googlecode.com/files/git-%{version}.tar.gz -# Source0-md5: ceb1a6b17a3e33bbc70eadf8fce5876c +# Source0-md5: df8519044f9880f3687d863d99245282 Source1: %{name}-gitweb.conf Source2: %{name}-gitweb-httpd.conf Source3: %{name}-gitweb-lighttpd.conf @@ -24,6 +25,8 @@ Source6: %{name}.init Patch0: %{name}-tests.patch Patch1: %{name}-key-bindings.patch Patch2: %{name}-sysconfdir.patch +Patch3: cherry-picked-commitlog.patch +Patch4: %{name}-svn-exit-errors.patch URL: http://git-scm.com/ BuildRequires: autoconf >= 2.59 BuildRequires: automake @@ -31,6 +34,7 @@ BuildRequires: curl-devel BuildRequires: expat-devel BuildRequires: gettext-devel BuildRequires: openssl-devel +%{?with_pcre:BuildRequires: pcre-devel} BuildRequires: perl-Error > 0.15 BuildRequires: perl-base BuildRequires: python-devel @@ -50,6 +54,7 @@ BuildRequires: xmlto 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 @@ -64,6 +69,7 @@ Suggests: git-core-cvs Suggests: git-core-svn Suggests: less Suggests: rsync +Obsoletes: python-Git BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # html docs have links to txt files @@ -73,6 +79,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define webappdir %{_sysconfdir}/webapps/%{webapp} %define appdir %{_datadir}/%{webapp} %define cgibindir %{_prefix}/lib/cgi-bin +%define bash_compdir %{_datadir}/bash-completion/completions %description "git" can mean anything, depending on your mood. @@ -161,16 +168,16 @@ udostępniania repozytoriów git. Ten pakiet dostarcza pliki potrzebne 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 @@ -204,6 +211,7 @@ Summary(pl.UTF-8): Frontend WWW do gita Group: Development/Tools Requires: %{name} = %{version}-%{release} Requires: webapps +Requires: webserver(access) Requires: webserver(alias) Requires: webserver(cgi) Suggests: webserver(setenv) @@ -317,7 +325,7 @@ Summary: bash-completion for git Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita Group: Applications/Shells Requires: %{name} = %{version}-%{release} -Requires: bash-completion +Requires: bash-completion >= 2.0 %description -n bash-completion-git This package provides bash-completion for git. @@ -345,20 +353,6 @@ dowolne polecenia Gita; w przyszłości interfejs udostępni także specjalne metody do łatwego wykonywania operacji nietrywialnych do wykonania przy użyciu ogólnego interfejsu poleceń. -%package -n python-Git -Summary: Python Git remote helpers for non-git repositories -Summary(pl.UTF-8): Pythonowe zdalne moduły pomocnicze dla repozytoriów niegitowych -Group: Development/Languages/Python -Requires: %{name} = %{version}-%{release} - -%description -n python-Git -This package contains Python git_repote_helpers package - Git remote -helpers for non-git repositories. - -%description -n python-Git -l pl.UTF-8 -Ten pakiet zawiera pakiet Pythona git_remote_helpers - zdalne moduły -pomocnicze Gita dla repozytoriów niegitowych. - %package -n vim-syntax-gitcommit Summary: Vim syntax: gitcommit Summary(pl.UTF-8): Składnia dla Vima: gitcommit @@ -378,12 +372,15 @@ Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita. %patch0 -p1 %patch1 -p0 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build %{__aclocal} %{__autoconf} %configure \ --sysconfdir=%{_sysconfdir}/git-core \ + %{?with_pcre:--with-libpcre} \ --with-openssl echo "BLK_SHA1=1" >> config.mak @@ -397,11 +394,15 @@ echo "BLK_SHA1=1" >> config.mak 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 @@ -434,12 +435,15 @@ cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/templates $RPM_BUILD_ROOT%{_sysconfdir} cp -p *.h $RPM_BUILD_ROOT%{_includedir}/%{name} cp -a compat $RPM_BUILD_ROOT%{_includedir}/%{name} cp -p xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff +install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1 +cp -p block-sha1/sha1.h $RPM_BUILD_ROOT%{_includedir}/%{name}/block-sha1 cp -p libgit.a $RPM_BUILD_ROOT%{_libdir} cp -p xdiff/lib.a $RPM_BUILD_ROOT%{_libdir}/libgit_xdiff.a +cp -p {Makefile,config.mak,config.mak.autogen,config.mak.uname} $RPM_BUILD_ROOT%{_includedir}/%{name} # bash completion -install -d $RPM_BUILD_ROOT/etc/bash_completion.d -cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d +install -d $RPM_BUILD_ROOT%{bash_compdir} +cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{bash_compdir}/git # vim syntax install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax @@ -545,9 +549,10 @@ fi %exclude %{_mandir}/man1/git-archimport.1* %exclude %{_mandir}/man1/git-svn.1* %exclude %{_mandir}/man1/git-cvs*.1* +%exclude %{_mandir}/man1/git-imap-send*.1* %exclude %{_mandir}/man1/*email*.1* -%exclude %{_mandir}/man1/git-remote-helpers.1* %{_mandir}/man1/git.1* +%{_mandir}/man1/gitremote-helpers.1* %{_mandir}/man5/gitattributes.5* %{_mandir}/man5/githooks.5* %{_mandir}/man5/gitignore.5* @@ -574,8 +579,9 @@ fi %exclude %{_libdir}/%{name}/git-svn %exclude %{_libdir}/%{name}/git-archimport %exclude %{_libdir}/%{name}/git-cvs* +%exclude %{_libdir}/%{name}/git-imap-send %exclude %{_libdir}/%{name}/git-instaweb -%exclude %{_libdir}/%{name}/git-remote-testgit +%exclude %{_libdir}/%{name}/git-remote-testsvn %exclude %{_libdir}/%{name}/*email* %{_datadir}/%{name} @@ -669,6 +675,7 @@ fi %files svn %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/git-svn +%attr(755,root,root) %{_libdir}/%{name}/git-remote-testsvn %{perl_vendorlib}/Git/SVN %{perl_vendorlib}/Git/SVN.pm %if %{with doc} @@ -693,14 +700,16 @@ fi %files email %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}/git-imap-send %attr(755,root,root) %{_libdir}/%{name}/*email* %if %{with doc} %{_mandir}/man1/*email*.1* +%{_mandir}/man1/*imap-send*.1* %endif %files -n bash-completion-git %defattr(644,root,root,755) -/etc/bash_completion.d/git-completion.bash +%{bash_compdir}/git %files -n perl-Git %defattr(644,root,root,755) @@ -710,20 +719,6 @@ fi %{perl_vendorlib}/Git/IndexInfo.pm %{_mandir}/man3/Git*.3pm* -%files -n python-Git -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/%{name}/git-remote-testgit -%dir %{py_sitescriptdir}/git_remote_helpers -%{py_sitescriptdir}/git_remote_helpers/*.py[co] -%dir %{py_sitescriptdir}/git_remote_helpers/git -%{py_sitescriptdir}/git_remote_helpers/git/*.py[co] -%if "%{py_ver}" > "2.4" -%{py_sitescriptdir}/git_remote_helpers*.egg-info -%endif -%if %{with doc} -%{_mandir}/man1/git-remote-helpers.1* -%endif - %files -n vim-syntax-gitcommit %defattr(644,root,root,755) %doc contrib/vim/README