777972ab |
Summary: Fast distributed version control system
Name: git |
a70a2ce0 |
Version: 2.19.0 |
af96e9e3 |
Release: 2%{?dist} |
777972ab |
License: GPLv2
URL: http://git-scm.com/
Group: System Environment/Programming
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz |
a70a2ce0 |
%define sha1 git=17f92df56588c58d2ebaacc5a47f677c8d8e7c61 |
777972ab |
BuildRequires: curl-devel
BuildRequires: python2
Requires: openssl
Requires: curl
Requires: expat |
af96e9e3 |
Requires: perl |
777972ab |
Requires: perl-YAML
Requires: perl-DBI |
07fc10dd |
Requires: perl-CGI |
a70a2ce0 |
Requires: subversion-perl |
f4d17450 |
%description |
a70a2ce0 |
Git is a free and open source, distributed version control system |
f4d17450 |
designed to handle everything from small to very large projects with |
a70a2ce0 |
speed and efficiency. Every Git clone is a full-fledged repository
with complete history and full revision tracking capabilities, not
dependent on network access or a central server. Branching and |
f4d17450 |
merging are fast and easy to do. Git is used for version control of |
a70a2ce0 |
files, much like tools such as Mercurial, Bazaar, |
f4d17450 |
Subversion-1.7.8, CVS-1.11.23, Perforce, and Team Foundation Server.
%package lang
Summary: Additional language files for git
Group: System Environment/Programming
Requires: git >= 2.1.2
%description lang
These are the additional language files of git.
%prep
%setup -q
%build |
af96e9e3 |
%configure \ |
777972ab |
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
--libexec=%{_libexecdir} \
--with-gitconfig=/etc/gitconfig |
f4d17450 |
make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make DESTDIR=%{buildroot} install |
563695f0 |
install -vdm 755 %{buildroot}/usr/share/bash-completion/completions
install -m 0644 contrib/completion/git-completion.bash %{buildroot}/usr/share/bash-completion/completions/git |
f4d17450 |
%find_lang %{name}
%{_fixperms} %{buildroot}/* |
78547c01 |
|
f4d17450 |
%check |
ca873cb9 |
# git expect nonroot user to run tests
chmod g+w . -R
useradd test -G root -m
sudo -u test make %{?_smp_mflags} test |
f4d17450 |
%post |
4aa873d5 |
if [ $1 -eq 1 ];then |
d45b7400 |
# This is first installation.
git config --system http.sslCAPath /etc/ssl/certs
exit 0
fi
|
f4d17450 |
%clean
rm -rf %{buildroot}/*
%files
%defattr(-,root,root)
%{_bindir}/* |
a70a2ce0 |
%{_datarootdir}/perl5/* |
f4d17450 |
%{_libexecdir}/git-core/*
%{_datarootdir}/git-core/*
%{_datarootdir}/git-gui/*
%{_datarootdir}/gitk/*
%{_datarootdir}/gitweb/* |
563695f0 |
%{_datarootdir}/bash-completion/ |
f4d17450 |
#excluding git svn files
%exclude %{_libexecdir}/git-core/*svn*
%exclude %{perl_sitelib}/Git/SVN
%exclude %{perl_sitelib}/Git/SVN.pm |
af96e9e3 |
%exclude /usr/lib/perl5/*/*/perllocal.pod |
f4d17450 |
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog |
af96e9e3 |
* Thu Oct 04 2018 Dweep Advani <dadvani@vmware.com> 2.19.0-2
- Using %configure and changing for perl upgrade |
a70a2ce0 |
* Tue Oct 02 2018 Siju Maliakkal <smaliakkal@vmware.com> 2.19.0-1
- Update to latest version |
074c8017 |
* Tue Jul 31 2018 Ajay Kaher <akaher@vmware.com> 2.14.2-2
- Excluded the perllocal.pod for aarch64. |
83ff3cb9 |
* Thu Oct 12 2017 Anish Swaminathan <anishs@vmware.com> 2.14.2-1
- Updated to version 2.14.2, fix CVE-2017-14867 |
ca873cb9 |
* Mon Aug 21 2017 Rui Gu <ruig@vmware.com> 2.9.3-4
- Fix make check with non-root mode. |
c3c4f3f6 |
* Wed May 31 2017 Xiaolin Li <xiaolinl@vmware.com> 2.9.3-3
- Remove python2 from requires. |
a70a2ce0 |
* Mon Apr 17 2017 Robert Qi <qij@vmware.com> 2.9.3-2 |
78a75439 |
- Update since perl version got updated. |
4b5c5665 |
* Mon Apr 10 2017 Danut Moraru <dmoraru@vmware.com> 2.9.3-1
- Updated to version 2.9.3 |
777972ab |
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 2.8.1-7
- BuildRequires curl-devel. |
563695f0 |
* Fri Aug 19 2016 Alexey Makhalov <amakhalov@vmware.com> 2.8.1-6
- Add bash completion file |
b2e62a8a |
* Thu May 26 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.8.1-5 |
563695f0 |
- Excluded the perllocal.pod log.
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.8.1-4
- GA - Bump release of all rpms
* Wed May 18 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.8.1-3
- Fix if syntax
* Thu May 05 2016 Kumar Kaushik <kaushikk@vmware.com> 2.8.1-2
- Handling the upgrade scenario.
* Fri Apr 15 2016 Anish Swaminathan <anishs@vmware.com> 2.8.1-1
- Updated to version 2.8.1
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.7.1-1
- Updated to version 2.7.1
* Wed Jan 13 2016 Anish Swaminathan <anishs@vmware.com> 2.1.2-2
- Add requires for perl-CGI.
* Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 2.1.2-1
- Initial build. First version |