2005-11-11 12:10:29 +03:00
|
|
|
# Pass --without docs to rpmbuild if you don't want the documentation
|
2007-03-29 14:07:47 +04:00
|
|
|
|
|
|
|
%define python_path /usr/bin/python
|
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
Name: git
|
2005-07-08 00:09:50 +04:00
|
|
|
Version: @@VERSION@@
|
2005-09-17 00:38:49 +04:00
|
|
|
Release: 1%{?dist}
|
2005-07-08 00:09:50 +04:00
|
|
|
Summary: Git core and tools
|
|
|
|
License: GPL
|
|
|
|
Group: Development/Tools
|
|
|
|
URL: http://kernel.org/pub/software/scm/git/
|
|
|
|
Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
|
2005-11-13 07:56:55 +03:00
|
|
|
BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
|
2005-09-17 00:38:49 +04:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-07-15 23:51:01 +04:00
|
|
|
Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk, git-gui, perl-Git
|
2005-07-08 00:09:50 +04:00
|
|
|
|
|
|
|
%description
|
2007-02-13 19:39:01 +03:00
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations
|
|
|
|
and full access to internals.
|
2005-07-08 00:09:50 +04:00
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
This is a dummy package which brings in all subpackages.
|
|
|
|
|
|
|
|
%package core
|
|
|
|
Summary: Core git tools
|
|
|
|
Group: Development/Tools
|
2006-12-13 02:01:41 +03:00
|
|
|
Requires: zlib >= 1.2, rsync, curl, less, openssh-clients, expat
|
2007-09-03 02:16:44 +04:00
|
|
|
Obsoletes: git-p4
|
2005-11-17 08:32:44 +03:00
|
|
|
%description core
|
2007-02-13 19:39:01 +03:00
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations
|
|
|
|
and full access to internals.
|
2005-11-17 08:32:44 +03:00
|
|
|
|
|
|
|
These are the core tools with minimal dependencies.
|
|
|
|
|
2005-11-05 22:38:02 +03:00
|
|
|
%package svn
|
2005-11-11 12:10:29 +03:00
|
|
|
Summary: Git tools for importing Subversion repositories
|
2005-11-05 22:38:02 +03:00
|
|
|
Group: Development/Tools
|
2005-11-11 12:10:29 +03:00
|
|
|
Requires: git-core = %{version}-%{release}, subversion
|
2005-11-05 22:38:02 +03:00
|
|
|
%description svn
|
|
|
|
Git tools for importing Subversion repositories.
|
|
|
|
|
|
|
|
%package cvs
|
2005-11-11 12:10:29 +03:00
|
|
|
Summary: Git tools for importing CVS repositories
|
2005-11-05 22:38:02 +03:00
|
|
|
Group: Development/Tools
|
2005-11-11 12:10:29 +03:00
|
|
|
Requires: git-core = %{version}-%{release}, cvs, cvsps
|
2005-11-05 22:38:02 +03:00
|
|
|
%description cvs
|
|
|
|
Git tools for importing CVS repositories.
|
|
|
|
|
2005-11-11 12:10:29 +03:00
|
|
|
%package arch
|
|
|
|
Summary: Git tools for importing Arch repositories
|
|
|
|
Group: Development/Tools
|
2005-11-11 20:31:38 +03:00
|
|
|
Requires: git-core = %{version}-%{release}, tla
|
2005-11-11 12:10:29 +03:00
|
|
|
%description arch
|
|
|
|
Git tools for importing Arch repositories.
|
|
|
|
|
2005-11-05 22:38:02 +03:00
|
|
|
%package email
|
2005-11-11 12:10:29 +03:00
|
|
|
Summary: Git tools for sending email
|
2005-11-05 22:38:02 +03:00
|
|
|
Group: Development/Tools
|
2007-06-07 11:04:01 +04:00
|
|
|
Requires: git-core = %{version}-%{release}
|
2005-11-05 22:38:02 +03:00
|
|
|
%description email
|
|
|
|
Git tools for sending email.
|
|
|
|
|
2007-02-13 03:28:15 +03:00
|
|
|
%package gui
|
|
|
|
Summary: Git GUI tool
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: git-core = %{version}-%{release}, tk >= 8.4
|
|
|
|
%description gui
|
|
|
|
Git GUI tool
|
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
%package -n gitk
|
2005-11-13 07:58:02 +03:00
|
|
|
Summary: Git revision tree visualiser ('gitk')
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: git-core = %{version}-%{release}, tk >= 8.4
|
2005-11-17 08:32:44 +03:00
|
|
|
%description -n gitk
|
2005-11-13 07:58:02 +03:00
|
|
|
Git revision tree visualiser ('gitk')
|
|
|
|
|
2006-06-30 09:09:28 +04:00
|
|
|
%package -n perl-Git
|
|
|
|
Summary: Perl interface to Git
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: git-core = %{version}-%{release}
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
BuildRequires: perl(Error)
|
|
|
|
|
|
|
|
%description -n perl-Git
|
|
|
|
Perl interface to Git
|
|
|
|
|
2005-07-08 00:09:50 +04:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2007-07-15 23:51:01 +04:00
|
|
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
|
2007-04-24 10:17:41 +04:00
|
|
|
ETC_GITCONFIG=/etc/gitconfig \
|
2007-07-15 23:51:01 +04:00
|
|
|
prefix=%{_prefix} all %{!?_without_docs: doc}
|
2005-07-08 00:09:50 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-02-06 22:08:55 +03:00
|
|
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
|
2007-07-15 23:51:01 +04:00
|
|
|
prefix=%{_prefix} mandir=%{_mandir} \
|
2007-04-24 10:17:41 +04:00
|
|
|
ETC_GITCONFIG=/etc/gitconfig \
|
2007-03-29 14:07:47 +04:00
|
|
|
PYTHON_PATH=%{python_path} \
|
2007-03-27 20:03:43 +04:00
|
|
|
INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
|
2006-06-30 09:09:28 +04:00
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
|
2005-07-08 00:09:50 +04:00
|
|
|
|
2007-07-15 23:51:01 +04:00
|
|
|
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
2006-10-11 11:57:17 +04:00
|
|
|
(find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
|
2005-11-05 22:38:02 +03:00
|
|
|
%if %{!?_without_docs:1}0
|
2007-07-15 23:51:01 +04:00
|
|
|
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
|
2006-06-30 09:09:26 +04:00
|
|
|
%else
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
2005-11-05 22:38:02 +03:00
|
|
|
%endif
|
|
|
|
|
2005-07-08 00:09:50 +04:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
%files
|
|
|
|
# These are no files in the root package
|
|
|
|
|
2005-11-05 22:38:02 +03:00
|
|
|
%files svn
|
2005-11-11 12:10:29 +03:00
|
|
|
%defattr(-,root,root)
|
2005-11-05 22:38:02 +03:00
|
|
|
%{_bindir}/*svn*
|
2005-11-11 12:10:29 +03:00
|
|
|
%doc Documentation/*svn*.txt
|
2005-11-05 22:38:02 +03:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*svn*.1*}
|
2005-11-11 12:10:29 +03:00
|
|
|
%{!?_without_docs: %doc Documentation/*svn*.html }
|
2005-11-05 22:38:02 +03:00
|
|
|
|
|
|
|
%files cvs
|
2005-11-11 12:10:29 +03:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/*git-cvs*.txt
|
2005-11-05 22:38:02 +03:00
|
|
|
%{_bindir}/*cvs*
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
|
2005-11-11 12:10:29 +03:00
|
|
|
%{!?_without_docs: %doc Documentation/*git-cvs*.html }
|
|
|
|
|
|
|
|
%files arch
|
|
|
|
%defattr(-,root,root)
|
2006-10-25 10:55:46 +04:00
|
|
|
%doc Documentation/git-archimport.txt
|
|
|
|
%{_bindir}/git-archimport
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
|
|
|
|
%{!?_without_docs: %doc Documentation/git-archimport.html }
|
2005-11-05 22:38:02 +03:00
|
|
|
|
|
|
|
%files email
|
2005-11-11 12:10:29 +03:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/*email*.txt
|
2005-11-05 22:38:02 +03:00
|
|
|
%{_bindir}/*email*
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
|
2005-11-11 12:10:29 +03:00
|
|
|
%{!?_without_docs: %doc Documentation/*email*.html }
|
2005-11-05 22:38:02 +03:00
|
|
|
|
2007-02-13 03:28:15 +03:00
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/git-gui
|
|
|
|
%{_bindir}/git-citool
|
2007-05-10 11:03:15 +04:00
|
|
|
%{_datadir}/git-gui/
|
2007-06-26 19:39:07 +04:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-gui.1*}
|
2007-06-21 08:51:00 +04:00
|
|
|
%{!?_without_docs: %doc Documentation/git-gui.html}
|
2007-06-26 19:39:07 +04:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-citool.1*}
|
2007-06-21 08:51:00 +04:00
|
|
|
%{!?_without_docs: %doc Documentation/git-citool.html}
|
2007-02-13 03:28:15 +03:00
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
%files -n gitk
|
2005-11-13 07:58:02 +03:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/*gitk*.txt
|
|
|
|
%{_bindir}/*gitk*
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
|
|
|
|
%{!?_without_docs: %doc Documentation/*gitk*.html }
|
|
|
|
|
2006-06-30 09:09:28 +04:00
|
|
|
%files -n perl-Git -f perl-files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
%files core -f bin-man-doc-files
|
2005-07-08 00:09:50 +04:00
|
|
|
%defattr(-,root,root)
|
2005-09-17 00:38:49 +04:00
|
|
|
%{_datadir}/git-core/
|
2005-07-15 05:24:23 +04:00
|
|
|
%doc README COPYING Documentation/*.txt
|
2007-05-08 18:19:41 +04:00
|
|
|
%{!?_without_docs: %doc Documentation/*.html Documentation/howto}
|
2007-05-13 15:41:45 +04:00
|
|
|
%{!?_without_docs: %doc Documentation/technical}
|
2005-07-08 00:09:50 +04:00
|
|
|
|
|
|
|
%changelog
|
2007-07-15 23:51:01 +04:00
|
|
|
* Sun Jul 15 2007 Sean Estabrooks <seanlkml@sympatico.ca>
|
|
|
|
- Removed p4import.
|
|
|
|
|
2007-06-26 19:39:07 +04:00
|
|
|
* Tue Jun 26 2007 Quy Tonthat <qtonthat@gmail.com>
|
|
|
|
- Fixed problems looking for wrong manpages.
|
|
|
|
|
2007-06-21 08:51:00 +04:00
|
|
|
* Thu Jun 21 2007 Shawn O. Pearce <spearce@spearce.org>
|
|
|
|
- Added documentation files for git-gui
|
|
|
|
|
2007-05-13 15:41:45 +04:00
|
|
|
* Tue May 13 2007 Quy Tonthat <qtonthat@gmail.com>
|
|
|
|
- Added lib files for git-gui
|
|
|
|
- Added Documentation/technical (As needed by Git Users Manual)
|
|
|
|
|
2007-05-08 18:19:41 +04:00
|
|
|
* Tue May 8 2007 Quy Tonthat <qtonthat@gmail.com>
|
|
|
|
- Added howto files
|
|
|
|
|
2007-03-27 15:25:15 +04:00
|
|
|
* Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru>
|
|
|
|
- Added the git-p4 package: Perforce import stuff.
|
|
|
|
|
2007-02-13 19:39:01 +03:00
|
|
|
* Mon Feb 13 2007 Nicolas Pitre <nico@cam.org>
|
|
|
|
- Update core package description (Git isn't as stupid as it used to be)
|
|
|
|
|
2007-02-13 03:28:15 +03:00
|
|
|
* Mon Feb 12 2007 Junio C Hamano <junkio@cox.net>
|
|
|
|
- Add git-gui and git-citool.
|
|
|
|
|
2005-11-17 08:32:44 +03:00
|
|
|
* Mon Nov 14 2005 H. Peter Anvin <hpa@zytor.com> 0.99.9j-1
|
|
|
|
- Change subpackage names to git-<name> instead of git-core-<name>
|
|
|
|
- Create empty root package which brings in all subpackages
|
|
|
|
- Rename git-tk -> gitk
|
|
|
|
|
2005-11-11 12:10:29 +03:00
|
|
|
* Thu Nov 10 2005 Chris Wright <chrisw@osdl.org> 0.99.9g-1
|
|
|
|
- zlib dependency fix
|
|
|
|
- Minor cleanups from split
|
|
|
|
- Move arch import to separate package as well
|
|
|
|
|
2005-11-05 22:38:02 +03:00
|
|
|
* Tue Sep 27 2005 Jim Radford <radford@blackbean.org>
|
|
|
|
- Move programs with non-standard dependencies (svn, cvs, email)
|
|
|
|
into separate packages
|
|
|
|
|
2005-09-27 20:01:08 +04:00
|
|
|
* Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com>
|
|
|
|
- parallelize build
|
2005-09-27 20:02:24 +04:00
|
|
|
- COPTS -> CFLAGS
|
2005-09-27 20:01:08 +04:00
|
|
|
|
2005-09-17 00:38:49 +04:00
|
|
|
* Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1
|
|
|
|
- update to 0.99.6
|
|
|
|
|
2005-09-16 08:08:24 +04:00
|
|
|
* Fri Sep 16 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
|
|
|
|
- Linus noticed that less is required, added to the dependencies
|
|
|
|
|
2005-09-12 04:00:49 +04:00
|
|
|
* Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
|
|
|
|
- Updated dependencies
|
|
|
|
- Don't assume manpages are gzipped
|
|
|
|
|
2005-09-17 00:38:49 +04:00
|
|
|
* Thu Aug 18 2005 Chris Wright <chrisw@osdl.org> 0.99.4-4
|
|
|
|
- drop sh_utils, sh-utils, diffutils, mktemp, and openssl Requires
|
|
|
|
- use RPM_OPT_FLAGS in spec file, drop patch0
|
|
|
|
|
|
|
|
* Wed Aug 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.99.4-3
|
|
|
|
- use dist tag to differentiate between branches
|
|
|
|
- use rpm optflags by default (patch0)
|
|
|
|
- own %{_datadir}/git-core/
|
|
|
|
|
|
|
|
* Mon Aug 15 2005 Chris Wright <chrisw@osdl.org>
|
|
|
|
- update spec file to fix Buildroot, Requires, and drop Vendor
|
|
|
|
|
2005-08-08 07:18:19 +04:00
|
|
|
* Sun Aug 07 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
|
|
|
|
- Redid the description
|
|
|
|
- Cut overlong make line, loosened changelog a bit
|
|
|
|
- I think Junio (or perhaps OSDL?) should be vendor...
|
|
|
|
|
2005-07-15 05:24:23 +04:00
|
|
|
* Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
|
|
|
|
- Add the man pages, and the --without docs build option
|
2005-08-08 07:18:19 +04:00
|
|
|
|
2005-07-08 00:09:50 +04:00
|
|
|
* Wed Jul 7 2005 Chris Wright <chris@osdl.org>
|
|
|
|
- initial git spec file
|