diff --git a/mongoengine-0.23.1.tar.gz b/mongoengine-0.23.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b7450c99084d809c18a4fe1167b22284fe897f9e Binary files /dev/null and b/mongoengine-0.23.1.tar.gz differ diff --git a/python-mongoengine.spec b/python-mongoengine.spec new file mode 100644 index 0000000000000000000000000000000000000000..0c65190eb6ce3ab28ab50b8edb0b6e5ec9d73058 --- /dev/null +++ b/python-mongoengine.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mongoengine +Version: 0.23.1 +Release: 1 +Summary: MongoEngine is a Python Object-Document Mapper for working with MongoDB. +License: MIT +URL: http://mongoengine.org/ +Source0: https://files.pythonhosted.org/packages/ff/c7/856f7bb8f5f2c545d121800a50d7eb85a0af9db454d335b00f7a479863d2/mongoengine-0.23.1.tar.gz +BuildArch: noarch + +Requires: python3-pymongo + +%description + + +%package -n python3-mongoengine +Summary: MongoEngine is a Python Object-Document Mapper for working with MongoDB. +Provides: python-mongoengine +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-mongoengine + + +%package help +Summary: Development documents and examples for mongoengine +Provides: python3-mongoengine-doc +%description help + + +%prep +%autosetup -n mongoengine-0.23.1 + +%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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-mongoengine -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Dec 10 2021 yinzehao - 0.23.1-1 +- Package Spec generated