summaryrefslogtreecommitdiff
path: root/python-django-fsm-admin.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 21:24:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 21:24:16 +0000
commit2de6738511d7723d3399fb6a2c6d1b597a5c2993 (patch)
tree7e3b8718aaf81fd9dddf34737e641b7efe4e6c2b /python-django-fsm-admin.spec
parent3eb7770d5155307274205f3ba505b2ef1a6f9a1f (diff)
automatic import of python-django-fsm-admin
Diffstat (limited to 'python-django-fsm-admin.spec')
-rw-r--r--python-django-fsm-admin.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/python-django-fsm-admin.spec b/python-django-fsm-admin.spec
new file mode 100644
index 0000000..3b1cc9d
--- /dev/null
+++ b/python-django-fsm-admin.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-fsm-admin
+Version: 1.2.5
+Release: 1
+Summary: Integrate django-fsm state transitions into the django admin
+License: MIT
+URL: https://github.com/gadventures/django-fsm-admin
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/07/f6/38128d4c6681e3b52789701dda71c992eba042c6bd21f11146e8ecfd4ac4/django-fsm-admin-1.2.5.tar.gz
+BuildArch: noarch
+
+
+%description
+Mixin and template tags to integrate django-fsm_ state transitions into the
+Django Admin.
+
+%package -n python3-django-fsm-admin
+Summary: Integrate django-fsm state transitions into the django admin
+Provides: python-django-fsm-admin
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-fsm-admin
+Mixin and template tags to integrate django-fsm_ state transitions into the
+Django Admin.
+
+%package help
+Summary: Development documents and examples for django-fsm-admin
+Provides: python3-django-fsm-admin-doc
+%description help
+Mixin and template tags to integrate django-fsm_ state transitions into the
+Django Admin.
+
+%prep
+%autosetup -n django-fsm-admin-1.2.5
+
+%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-fsm-admin -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.5-1
+- Package Spec generated