From 5002c0036af732893c93f79bbfd46bb55a16749e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 19:52:21 +0000 Subject: automatic import of python-django-gm2m --- python-django-gm2m.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 python-django-gm2m.spec (limited to 'python-django-gm2m.spec') 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 - 1.1.1-1 +- Package Spec generated -- cgit v1.2.3