summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 19:52:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 19:52:21 +0000
commit5002c0036af732893c93f79bbfd46bb55a16749e (patch)
treea488c41f792ca9a2d235fccef8d271561a998647
parent135090650e216380798fdbe6f6fa1cc91935c7f6 (diff)
automatic import of python-django-gm2m
-rw-r--r--.gitignore1
-rw-r--r--python-django-gm2m.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..084a7da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-gm2m-1.1.1.tar.gz
diff --git a/python-django-gm2m.spec b/python-django-gm2m.spec
new file mode 100644
index 0000000..9443b2d
--- /dev/null
+++ b/python-django-gm2m.spec
@@ -0,0 +1,96 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-gm2m
+Version: 1.1.1
+Release: 1
+Summary: Django generic many-to-many field
+License: MIT License
+URL: https://github.com/tkhyn/django-gm2m
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/50/01/a2530312fb75bd874dbb470159ceff8060c0caabaf970bd456df7bab8d9b/django-gm2m-1.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+|copyright| 2014-2020 Thomas Khyn
+Django generic many-to-many field implementation.
+This django application exposes a ``GM2MField`` that combines
+the features of the standard Django ``ManyToManyField`` and
+``GenericForeighKey`` and that can be used exactly the same way.
+It has been tested with Django 2.2.*, 3.0.*, 3.1.* and their matching Python versions (3.5 to 3.8).
+If you like django-gm2m and find it useful, you may want to thank me and
+encourage future development by sending a few mBTC / mBCH / mBSV at this address:
+``1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9``.
+
+%package -n python3-django-gm2m
+Summary: Django generic many-to-many field
+Provides: python-django-gm2m
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-gm2m
+|copyright| 2014-2020 Thomas Khyn
+Django generic many-to-many field implementation.
+This django application exposes a ``GM2MField`` that combines
+the features of the standard Django ``ManyToManyField`` and
+``GenericForeighKey`` and that can be used exactly the same way.
+It has been tested with Django 2.2.*, 3.0.*, 3.1.* and their matching Python versions (3.5 to 3.8).
+If you like django-gm2m and find it useful, you may want to thank me and
+encourage future development by sending a few mBTC / mBCH / mBSV at this address:
+``1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9``.
+
+%package help
+Summary: Development documents and examples for django-gm2m
+Provides: python3-django-gm2m-doc
+%description help
+|copyright| 2014-2020 Thomas Khyn
+Django generic many-to-many field implementation.
+This django application exposes a ``GM2MField`` that combines
+the features of the standard Django ``ManyToManyField`` and
+``GenericForeighKey`` and that can be used exactly the same way.
+It has been tested with Django 2.2.*, 3.0.*, 3.1.* and their matching Python versions (3.5 to 3.8).
+If you like django-gm2m and find it useful, you may want to thank me and
+encourage future development by sending a few mBTC / mBCH / mBSV at this address:
+``1EwENyR8RV6tMc1hsLTkPURtn5wJgaBfG9``.
+
+%prep
+%autosetup -n django-gm2m-1.1.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 .
+
+%files -n python3-django-gm2m -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ee53f5a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0977a1ef3f5f86e9189ae939b4f5a11a django-gm2m-1.1.1.tar.gz