diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:30:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 11:30:32 +0000 |
commit | da9b64e2d5b493f3cab09948ce54c71fca431ab2 (patch) | |
tree | 6ea888e49f2227921534c1f537593bece0b7c53a /python-gitdb.spec | |
parent | a0c7f4baf1bded7e7400bc81cdb1dac4d394707b (diff) |
automatic import of python-gitdb
Diffstat (limited to 'python-gitdb.spec')
-rw-r--r-- | python-gitdb.spec | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/python-gitdb.spec b/python-gitdb.spec new file mode 100644 index 0000000..910460b --- /dev/null +++ b/python-gitdb.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gitdb +Version: 4.0.10 +Release: 1 +Summary: Git Object Database +License: BSD License +URL: https://github.com/gitpython-developers/gitdb +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/47/dc98f3d5d48aa815770e31490893b92c5f1cd6c6cf28dd3a8ae0efffac14/gitdb-4.0.10.tar.gz +BuildArch: noarch + +Requires: python3-smmap + +%description +GitDB is a pure-Python git object database + + + +%package -n python3-gitdb +Summary: Git Object Database +Provides: python-gitdb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gitdb +GitDB is a pure-Python git object database + + + +%package help +Summary: Development documents and examples for gitdb +Provides: python3-gitdb-doc +%description help +GitDB is a pure-Python git object database + + + +%prep +%autosetup -n gitdb-4.0.10 + +%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 . + +%files -n python3-gitdb -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.10-1 +- Package Spec generated |