init package
This commit is contained in:
parent
34c02661a1
commit
d4e2e79431
BIN
multidict-4.7.6.tar.gz
Normal file
BIN
multidict-4.7.6.tar.gz
Normal file
Binary file not shown.
75
python-multidict.spec
Normal file
75
python-multidict.spec
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-multidict
|
||||||
|
Version: 4.7.6
|
||||||
|
Release: 1
|
||||||
|
Summary: multidict implementation
|
||||||
|
License: Apache 2
|
||||||
|
URL: https://github.com/aio-libs/multidict
|
||||||
|
Source0: https://files.pythonhosted.org/packages/65/d4/fabdcc5ee4451c8a8e177e27ddfd131a53a82ecc5a3b68468b7e9f8d70b4/multidict-4.7.6.tar.gz
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Multidict is dict-like collection of key-value pairs where key might be occurred more than once in the container.
|
||||||
|
|
||||||
|
%package -n python3-multidict
|
||||||
|
Summary: multidict implementation
|
||||||
|
Provides: python-multidict
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-cffi
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gdb
|
||||||
|
%description -n python3-multidict
|
||||||
|
Multidict is dict-like collection of key-value pairs where key might be occurred more than once in the container.
|
||||||
|
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for multidict
|
||||||
|
Provides: python3-multidict-doc
|
||||||
|
%description help
|
||||||
|
Multidict is dict-like collection of key-value pairs where key might be occurred more than once in the container.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n multidict-4.7.6
|
||||||
|
|
||||||
|
%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-multidict -f filelist.lst
|
||||||
|
%dir %{python3_sitearch}/*
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 29 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||||
|
- Package Spec generated
|
||||||
Loading…
x
Reference in New Issue
Block a user