2005-11-11 09:10:29 +00:00
|
|
|
# Pass --without docs to rpmbuild if you don't want the documentation
|
2007-03-29 10:07:47 +00:00
|
|
|
|
|
|
|
%define python_path /usr/bin/python
|
|
|
|
|
2005-11-17 05:32:44 +00:00
|
|
|
Name: git
|
2005-07-07 20:09:50 +00:00
|
|
|
Version: @@VERSION@@
|
2005-09-16 20:38:49 +00:00
|
|
|
Release: 1%{?dist}
|
2005-07-07 20:09:50 +00: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 04:56:55 +00:00
|
|
|
BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
|
2005-09-16 20:38:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-04-04 18:32:33 +00:00
|
|
|
Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk, git-gui, git-p4, perl-Git
|
2005-07-07 20:09:50 +00:00
|
|
|
|
|
|
|
%description
|
2007-02-13 16:39:01 +00: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-07 20:09:50 +00:00
|
|
|
|
2005-11-17 05:32:44 +00:00
|
|
|
This is a dummy package which brings in all subpackages.
|
|
|
|
|
|
|
|
%package core
|
|
|
|
Summary: Core git tools
|
|
|
|
Group: Development/Tools
|
2006-12-12 23:01:41 +00:00
|
|
|
Requires: zlib >= 1.2, rsync, curl, less, openssh-clients, expat
|
2005-11-17 05:32:44 +00:00
|
|
|
%description core
|
2007-02-13 16:39:01 +00: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 05:32:44 +00:00
|
|
|
|
|
|
|
These are the core tools with minimal dependencies.
|
|
|
|
|
2005-11-05 19:38:02 +00:00
|
|
|
%package svn
|
2005-11-11 09:10:29 +00:00
|
|
|
Summary: Git tools for importing Subversion repositories
|
2005-11-05 19:38:02 +00:00
|
|
|
Group: Development/Tools
|
2005-11-11 09:10:29 +00:00
|
|
|
Requires: git-core = %{version}-%{release}, subversion
|
2005-11-05 19:38:02 +00:00
|
|
|
%description svn
|
|
|
|
Git tools for importing Subversion repositories.
|
|
|
|
|
|
|
|
%package cvs
|
2005-11-11 09:10:29 +00:00
|
|
|
Summary: Git tools for importing CVS repositories
|
2005-11-05 19:38:02 +00:00
|
|
|
Group: Development/Tools
|
2005-11-11 09:10:29 +00:00
|
|
|
Requires: git-core = %{version}-%{release}, cvs, cvsps
|
2005-11-05 19:38:02 +00:00
|
|
|
%description cvs
|
|
|
|
Git tools for importing CVS repositories.
|
|
|
|
|
2005-11-11 09:10:29 +00:00
|
|
|
%package arch
|
|
|
|
Summary: Git tools for importing Arch repositories
|
|
|
|
Group: Development/Tools
|
2005-11-11 17:31:38 +00:00
|
|
|
Requires: git-core = %{version}-%{release}, tla
|
2005-11-11 09:10:29 +00:00
|
|
|
%description arch
|
|
|
|
Git tools for importing Arch repositories.
|
|
|
|
|
2007-03-27 11:25:15 +00:00
|
|
|
%package p4
|
|
|
|
Summary: Git tools for importing Perforce repositories
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: git-core = %{version}-%{release}, python
|
|
|
|
%description p4
|
|
|
|
Git tools for importing Perforce repositories.
|
|
|
|
|
2005-11-05 19:38:02 +00:00
|
|
|
%package email
|
2005-11-11 09:10:29 +00:00
|
|
|
Summary: Git tools for sending email
|
2005-11-05 19:38:02 +00:00
|
|
|
Group: Development/Tools
|
2005-11-11 09:10:29 +00:00
|
|
|
Requires: git-core = %{version}-%{release}
|
2005-11-05 19:38:02 +00:00
|
|
|
%description email
|
|
|
|
Git tools for sending email.
|
|
|
|
|
2007-02-13 00:28:15 +00: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 05:32:44 +00:00
|
|
|
%package -n gitk
|
2005-11-13 04:58:02 +00:00
|
|
|
Summary: Git revision tree visualiser ('gitk')
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: git-core = %{version}-%{release}, tk >= 8.4
|
2005-11-17 05:32:44 +00:00
|
|
|
%description -n gitk
|
2005-11-13 04:58:02 +00:00
|
|
|
Git revision tree visualiser ('gitk')
|
|
|
|
|
2006-06-30 05:09:28 +00: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-07 20:09:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2007-03-27 16:03:43 +00:00
|
|
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_P4IMPORT=YesPlease \
|
2007-04-24 06:17:41 +00:00
|
|
|
ETC_GITCONFIG=/etc/gitconfig \
|
2007-03-29 10:07:47 +00:00
|
|
|
prefix=%{_prefix} PYTHON_PATH=%{python_path} all %{!?_without_docs: doc}
|
2005-07-07 20:09:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-02-06 19:08:55 +00:00
|
|
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
|
2007-03-27 16:03:43 +00:00
|
|
|
WITH_P4IMPORT=YesPlease prefix=%{_prefix} mandir=%{_mandir} \
|
2007-04-24 06:17:41 +00:00
|
|
|
ETC_GITCONFIG=/etc/gitconfig \
|
2007-03-29 10:07:47 +00:00
|
|
|
PYTHON_PATH=%{python_path} \
|
2007-03-27 16:03:43 +00:00
|
|
|
INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
|
2006-06-30 05:09:28 +00: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-07 20:09:50 +00:00
|
|
|
|
2007-03-27 11:25:15 +00:00
|
|
|
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "p4import|archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
2006-10-11 07:57:17 +00:00
|
|
|
(find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
|
2005-11-05 19:38:02 +00:00
|
|
|
%if %{!?_without_docs:1}0
|
2007-03-27 11:25:15 +00:00
|
|
|
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "p4import|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 05:09:26 +00:00
|
|
|
%else
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
2005-11-05 19:38:02 +00:00
|
|
|
%endif
|
|
|
|
|
2005-07-07 20:09:50 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-11-17 05:32:44 +00:00
|
|
|
%files
|
|
|
|
# These are no files in the root package
|
|
|
|
|
2005-11-05 19:38:02 +00:00
|
|
|
%files svn
|
2005-11-11 09:10:29 +00:00
|
|
|
%defattr(-,root,root)
|
2005-11-05 19:38:02 +00:00
|
|
|
%{_bindir}/*svn*
|
2005-11-11 09:10:29 +00:00
|
|
|
%doc Documentation/*svn*.txt
|
2005-11-05 19:38:02 +00:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*svn*.1*}
|
2005-11-11 09:10:29 +00:00
|
|
|
%{!?_without_docs: %doc Documentation/*svn*.html }
|
2005-11-05 19:38:02 +00:00
|
|
|
|
|
|
|
%files cvs
|
2005-11-11 09:10:29 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/*git-cvs*.txt
|
2005-11-05 19:38:02 +00:00
|
|
|
%{_bindir}/*cvs*
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
|
2005-11-11 09:10:29 +00:00
|
|
|
%{!?_without_docs: %doc Documentation/*git-cvs*.html }
|
|
|
|
|
|
|
|
%files arch
|
|
|
|
%defattr(-,root,root)
|
2006-10-25 06:55:46 +00: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 19:38:02 +00:00
|
|
|
|
2007-03-27 11:25:15 +00:00
|
|
|
%files p4
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/git-p4import.txt
|
|
|
|
%{_bindir}/git-p4import
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-p4import.1*}
|
|
|
|
%{!?_without_docs: %doc Documentation/git-p4import.html }
|
|
|
|
|
2005-11-05 19:38:02 +00:00
|
|
|
%files email
|
2005-11-11 09:10:29 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Documentation/*email*.txt
|
2005-11-05 19:38:02 +00:00
|
|
|
%{_bindir}/*email*
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
|
2005-11-11 09:10:29 +00:00
|
|
|
%{!?_without_docs: %doc Documentation/*email*.html }
|
2005-11-05 19:38:02 +00:00
|
|
|
|
2007-02-13 00:28:15 +00:00
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/git-gui
|
|
|
|
%{_bindir}/git-citool
|
|
|
|
# Not Yet...
|
|
|
|
# %{!?_without_docs: %{_mandir}/man1/git-gui.1}
|
|
|
|
# %{!?_without_docs: %doc Documentation/git-gui.html}
|
|
|
|
# %{!?_without_docs: %{_mandir}/man1/git-citool.1}
|
|
|
|
# %{!?_without_docs: %doc Documentation/git-citool.html}
|
|
|
|
|
2005-11-17 05:32:44 +00:00
|
|
|
%files -n gitk
|
2005-11-13 04:58:02 +00: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 05:09:28 +00:00
|
|
|
%files -n perl-Git -f perl-files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2005-11-17 05:32:44 +00:00
|
|
|
%files core -f bin-man-doc-files
|
2005-07-07 20:09:50 +00:00
|
|
|
%defattr(-,root,root)
|
2005-09-16 20:38:49 +00:00
|
|
|
%{_datadir}/git-core/
|
2005-07-15 01:24:23 +00:00
|
|
|
%doc README COPYING Documentation/*.txt
|
2007-05-08 14:19:41 +00:00
|
|
|
%{!?_without_docs: %doc Documentation/*.html Documentation/howto}
|
2005-07-07 20:09:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-05-08 14:19:41 +00:00
|
|
|
* Tue May 8 2007 Quy Tonthat <qtonthat@gmail.com>
|
|
|
|
- Added howto files
|
|
|
|
|
2007-03-27 11:25:15 +00:00
|
|
|
* Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru>
|
|
|
|
- Added the git-p4 package: Perforce import stuff.
|
|
|
|
|
2007-02-13 16:39:01 +00: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 00:28:15 +00:00
|
|
|
* Mon Feb 12 2007 Junio C Hamano <junkio@cox.net>
|
|
|
|
- Add git-gui and git-citool.
|
|
|
|
|
2005-11-17 05:32:44 +00: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 09:10:29 +00: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 19:38:02 +00: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 16:01:08 +00:00
|
|
|
* Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com>
|
|
|
|
- parallelize build
|
2005-09-27 16:02:24 +00:00
|
|
|
- COPTS -> CFLAGS
|
2005-09-27 16:01:08 +00:00
|
|
|
|
2005-09-16 20:38:49 +00:00
|
|
|
* Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1
|
|
|
|
- update to 0.99.6
|
|
|
|
|
2005-09-16 04:08:24 +00: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 00:00:49 +00:00
|
|
|
* Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
|
|
|
|
- Updated dependencies
|
|
|
|
- Don't assume manpages are gzipped
|
|
|
|
|
2005-09-16 20:38:49 +00: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 03:18:19 +00: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 01:24:23 +00:00
|
|
|
* Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
|
|
|
|
- Add the man pages, and the --without docs build option
|
2005-08-08 03:18:19 +00:00
|
|
|
|
2005-07-07 20:09:50 +00:00
|
|
|
* Wed Jul 7 2005 Chris Wright <chris@osdl.org>
|
|
|
|
- initial git spec file
|