diff --git a/gitdb-4.0.1.tar.gz b/gitdb-4.0.5.tar.gz similarity index 53% rename from gitdb-4.0.1.tar.gz rename to gitdb-4.0.5.tar.gz index ba0627c..f540f9a 100644 Binary files a/gitdb-4.0.1.tar.gz and b/gitdb-4.0.5.tar.gz differ diff --git a/python-gitdb.spec b/python-gitdb.spec index 292a668..0e300d3 100644 --- a/python-gitdb.spec +++ b/python-gitdb.spec @@ -1,49 +1,85 @@ -%global modname gitdb -Name: python-%{modname} -Version: 4.0.1 -Release: 1 -Summary: Git Object Database -License: BSD and MIT -URL: https://github.com/gitpython-developers/gitdb -Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz -BuildArch: noarch -BuildRequires: git-core -%global _description \ +%global _empty_manifest_terminate_build 0 +Name: python-gitdb +Version: 4.0.5 +Release: 1 +Summary: Git Object Database +License: BSD +URL: https://github.com/gitpython-developers/gitdb +Source0: https://files.pythonhosted.org/packages/d1/05/eaf2ac564344030d8b3ce870b116d7bb559020163e80d9aa4a3d75f3e820/gitdb-4.0.5.tar.gz +BuildArch: noarch +%description +GitDB allows you to access bare git repositories for reading and writing.\ +It aims at allowing full access to loose objects as well as packs with\ +performance and scalability in mind. It operates exclusively on streams,\ +allowing to handle large objects with a small memory footprint. + + +%package -n python3-gitdb +Summary: Git Object Database +Provides: python-gitdb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3-smmap +%description -n python3-gitdb +GitDB allows you to access bare git repositories for reading and writing.\ +It aims at allowing full access to loose objects as well as packs with\ +performance and scalability in mind. It operates exclusively on streams,\ +allowing to handle large objects with a small memory footprint. + + +%package help +Summary: Development documents and examples for gitdb +Provides: python3-gitdb-doc +%description help GitDB allows you to access bare git repositories for reading and writing.\ It aims at allowing full access to loose objects as well as packs with\ performance and scalability in mind. It operates exclusively on streams,\ allowing to handle large objects with a small memory footprint. -%description %{_description} -%package -n python3-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-nose -BuildRequires: python3-smmap >= 3.0.1 -Requires: python3-smmap >= 3.0.1 -%description -n python3-%{modname} %{_description} -Python 3 version. %prep -%autosetup -n %{modname}-%{version} -Sgit +%autosetup -n gitdb-4.0.5 %build %py3_build %install %py3_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 . -%check -%{__python3} -m nose -v --exclude=test_pack_writing +%files -n python3-gitdb -f filelist.lst +%dir %{python3_sitelib}/* -%files -n python3-%{modname} -%license LICENSE -%doc AUTHORS -%{python3_sitelib}/%{modname}-*.egg-info/ -%{python3_sitelib}/%{modname}/ +%files help -f doclist.lst +%{_docdir}/* %changelog +* Fri Jul 09 2021 openstack-sig +- Update to 4.0.5 + * Mon Oct 26 2020 Jiachen Fan - 4.0.1-1 - package init