diff --git a/3.1.11.tar.gz b/3.1.11.tar.gz deleted file mode 100644 index 7cfa99dcf04aa8d06742ffa01474e6fd3e249f44..0000000000000000000000000000000000000000 Binary files a/3.1.11.tar.gz and /dev/null differ diff --git a/GitPython-1.0.1.tar.gz b/GitPython-1.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..566513b553b52c1e7da4402a13a41968c479b09c Binary files /dev/null and b/GitPython-1.0.1.tar.gz differ diff --git a/python-GitPython.spec b/python-GitPython.spec index 6251fe34c1a52729169659e9fd7386d82032388a..c55dd8390f0411138fa677e04afd5a5f101777b3 100644 --- a/python-GitPython.spec +++ b/python-GitPython.spec @@ -1,52 +1,96 @@ -%global modname git -%global srcname GitPython -Name: python-%{srcname} -Version: 3.1.11 -Release: 1 -Summary: Python Git Library -License: BSD and MIT -URL: https://github.com/gitpython-developers/GitPython -Source0: https://github.com/gitpython-developers/GitPython/archive/3.1.11.tar.gz -BuildArch: noarch -%global _description \ -GitPython is a python library used to interact with git repositories,\ -high-level like git-porcelain, or low-level like git-plumbing.\ -\ -It provides abstractions of git objects for easy access of repository data,\ -and additionally allows you to access the git repository more directly using\ -either a pure python implementation, or the faster, but more resource\ -intensive git command implementation.\ -\ -The object database implementation is optimized for handling large quantities\ -of objects and large datasets, which is achieved by using\ -low-level structures and data streaming. -%description %{_description} - -%package -n python3-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -Requires: git-core -Requires: python3-gitdb >= 4.0.0 -%description -n python3-%{srcname} %{_description} -Python 3 version. +%global _empty_manifest_terminate_build 0 +Name: python-GitPython +Version: 1.0.1 +Release: 1 +Summary: Python Git Library +License: BSD +URL: https://github.com/gitpython-developers/GitPython +Source0: https://files.pythonhosted.org/packages/07/a6/87fc59935a67e26ad50cee5c731b6b133f1fb76d89028fe2d388f7349423/GitPython-1.0.1.tar.gz +BuildArch: noarch +%description +**GitPython*is a python library used to interact with Git repositories.GitPython +provides object model read and write access to your git repository. Access +repository information conveniently, alter the index directly, handle remotes, +or go down to low-level object database access with big-files support.With the +new object database abstraction added in 0.3, its even possible to implement +your own storage mechanisms, the currently available implementations are 'cgit' +and pure python, which is the default.Documentation The latest documentation can +be found here: As this version of GitPython depends on GitDB, which in turn +needs smmap to work, installation is a bit more involved if you do a manual +installation, instead of using pip. + +%package -n python2-GitPython +Summary: Python Git Library +Provides: python2-GitPython +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-GitPython +**GitPython*is a python library used to interact with Git repositories.GitPython +provides object model read and write access to your git repository. Access +repository information conveniently, alter the index directly, handle remotes, +or go down to low-level object database access with big-files support.With the +new object database abstraction added in 0.3, its even possible to implement +your own storage mechanisms, the currently available implementations are 'cgit' +and pure python, which is the default.Documentation The latest documentation can +be found here: As this version of GitPython depends on GitDB, which in turn +needs smmap to work, installation is a bit more involved if you do a manual +installation, instead of using pip. + +%package help +Summary: Development documents and examples for GitPython +Provides: python2-GitPython-doc +%description help +**GitPython*is a python library used to interact with Git repositories.GitPython +provides object model read and write access to your git repository. Access +repository information conveniently, alter the index directly, handle remotes, +or go down to low-level object database access with big-files support.With the +new object database abstraction added in 0.3, its even possible to implement +your own storage mechanisms, the currently available implementations are 'cgit' +and pure python, which is the default.Documentation The latest documentation can +be found here: As this version of GitPython depends on GitDB, which in turn +needs smmap to work, installation is a bit more involved if you do a manual +installation, instead of using pip. %prep -%autosetup -n %{srcname}-%{version} -p1 +%autosetup -n GitPython-1.0.1 %build -%py3_build +%py2_build %install -%py3_install +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python2-GitPython -f filelist.lst +%dir %{python2_sitelib}/* -%files -n python3-%{srcname} -%license LICENSE -%doc CHANGES AUTHORS -%{python3_sitelib}/%{srcname}-*.egg-info/ -%{python3_sitelib}/%{modname}/ +%files help -f doclist.lst +%{_docdir}/* %changelog -* Mon Oct 26 2020 Jiachen Fan - 3.1.11-1 -- package init +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated