diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-mixer.spec | 101 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 103 insertions, 0 deletions
@@ -0,0 +1 @@ +/mixer-7.2.2.tar.gz diff --git a/python-mixer.spec b/python-mixer.spec new file mode 100644 index 0000000..0cbad4a --- /dev/null +++ b/python-mixer.spec @@ -0,0 +1,101 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mixer +Version: 7.2.2 +Release: 1 +Summary: Mixer -- Is a fixtures replacement. Supported Django ORM, SqlAlchemy ORM, Mongoengine ODM and custom python objects. +License: BSD +URL: https://github.com/klen/mixer +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/dd/7b/95e5ee5d6e5d9764b57bb0ec7aa823896740954c5a048568780943052770/mixer-7.2.2.tar.gz +BuildArch: noarch + +Requires: python3-Faker +Requires: python3-Django +Requires: python3-Flask +Requires: python3-Marshmallow +Requires: python3-SQLAlchemy +Requires: python3-flask-sqlalchemy +Requires: python3-mongoengine +Requires: python3-peewee +Requires: python3-pony +Requires: python3-psycopg2-binary +Requires: python3-pytest + +%description +- Python 3.7+ +- Django (3.0, 3.1) for Django ORM support; +- Flask-SQLALchemy for SQLAlchemy ORM support and integration as Flask application; +- Faker >= 0.7.3 +- Mongoengine for Mongoengine ODM support; +- SQLAlchemy for SQLAlchemy ORM support; +- Peewee ORM support; + +%package -n python3-mixer +Summary: Mixer -- Is a fixtures replacement. Supported Django ORM, SqlAlchemy ORM, Mongoengine ODM and custom python objects. +Provides: python-mixer +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mixer +- Python 3.7+ +- Django (3.0, 3.1) for Django ORM support; +- Flask-SQLALchemy for SQLAlchemy ORM support and integration as Flask application; +- Faker >= 0.7.3 +- Mongoengine for Mongoengine ODM support; +- SQLAlchemy for SQLAlchemy ORM support; +- Peewee ORM support; + +%package help +Summary: Development documents and examples for mixer +Provides: python3-mixer-doc +%description help +- Python 3.7+ +- Django (3.0, 3.1) for Django ORM support; +- Flask-SQLALchemy for SQLAlchemy ORM support and integration as Flask application; +- Faker >= 0.7.3 +- Mongoengine for Mongoengine ODM support; +- SQLAlchemy for SQLAlchemy ORM support; +- Peewee ORM support; + +%prep +%autosetup -n mixer-7.2.2 + +%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-mixer -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 7.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +0960f5164e58914667a7bde3b98aeaa3 mixer-7.2.2.tar.gz |
