add source packages and spec file
This commit is contained in:
parent
56e9aa0c16
commit
fe7a5cd5ed
BIN
dulwich-0.20.11.tar.gz
Executable file
BIN
dulwich-0.20.11.tar.gz
Executable file
Binary file not shown.
109
python-dulwich.spec
Executable file
109
python-dulwich.spec
Executable file
@ -0,0 +1,109 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-dulwich
|
||||
Version: 0.20.11
|
||||
Release: 1
|
||||
Summary: Python Git Library
|
||||
License: Apachev2 or later or GPLv2
|
||||
URL: https://www.dulwich.io/
|
||||
Source0: https://files.pythonhosted.org/packages/fc/86/4bf0caafc7700904844ad3f25f212d5d8aea5889c67dbdaa66dd213b7203/dulwich-0.20.11.tar.gz
|
||||
|
||||
Requires: python3-urllib3
|
||||
Requires: python3-certifi
|
||||
Requires: python3-fastimport
|
||||
Requires: python3-urllib3[secure]
|
||||
Requires: python3-gpg
|
||||
Requires: python3-pyinotify
|
||||
|
||||
%description
|
||||
By default, Dulwich' setup.py will attempt to build and install the optional C
|
||||
extensions. The reason for this is that they significantly improve the performance
|
||||
since some low-level operations that are executed often are much slower in CPython.
|
||||
If you don't want to install the C bindings, specify the --pure argument to setup.py::
|
||||
$ python setup.py --pure install
|
||||
or if you are installing from pip::
|
||||
$ pip install dulwich --global-option="--pure"
|
||||
Note that you can also specify --global-option in a
|
||||
`requirements.txt <https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers>`_
|
||||
file, e.g. like this::
|
||||
dulwich --global-option=--pure
|
||||
|
||||
%package -n python3-dulwich
|
||||
Summary: Python Git Library
|
||||
Provides: python-dulwich
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-cffi
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gdb
|
||||
%description -n python3-dulwich
|
||||
By default, Dulwich' setup.py will attempt to build and install the optional C
|
||||
extensions. The reason for this is that they significantly improve the performance
|
||||
since some low-level operations that are executed often are much slower in CPython.
|
||||
If you don't want to install the C bindings, specify the --pure argument to setup.py::
|
||||
$ python setup.py --pure install
|
||||
or if you are installing from pip::
|
||||
$ pip install dulwich --global-option="--pure"
|
||||
Note that you can also specify --global-option in a
|
||||
`requirements.txt <https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers>`_
|
||||
file, e.g. like this::
|
||||
dulwich --global-option=--pure
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for dulwich
|
||||
Provides: python3-dulwich-doc
|
||||
%description help
|
||||
By default, Dulwich' setup.py will attempt to build and install the optional C
|
||||
extensions. The reason for this is that they significantly improve the performance
|
||||
since some low-level operations that are executed often are much slower in CPython.
|
||||
If you don't want to install the C bindings, specify the --pure argument to setup.py::
|
||||
$ python setup.py --pure install
|
||||
or if you are installing from pip::
|
||||
$ pip install dulwich --global-option="--pure"
|
||||
Note that you can also specify --global-option in a
|
||||
`requirements.txt <https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers>`_
|
||||
file, e.g. like this::
|
||||
dulwich --global-option=--pure
|
||||
|
||||
%prep
|
||||
%autosetup -n dulwich-0.20.11
|
||||
|
||||
%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-dulwich -f filelist.lst
|
||||
%dir %{python3_sitearch}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
Loading…
x
Reference in New Issue
Block a user