diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:56:28 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:56:28 +0000 |
commit | e239df77b931d77072ff667676863189b72a9585 (patch) | |
tree | 72cd3dd0219c7b6194aeaa2e0af9b84d941f32fd | |
parent | 9c1345d371dd0b5e27822a17f719ef61d060bb4f (diff) |
automatic import of python-oarepo-fsm
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-oarepo-fsm.spec | 80 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/oarepo-fsm-2.0.4.tar.gz diff --git a/python-oarepo-fsm.spec b/python-oarepo-fsm.spec new file mode 100644 index 0000000..89016a8 --- /dev/null +++ b/python-oarepo-fsm.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oarepo-fsm +Version: 2.0.4 +Release: 1 +Summary: OArepo FSM library for record state transitions +License: MIT +URL: https://github.com/oarepo/oarepo-fsm +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5a/99/951be33f276f7f864eb89caf3ea96ffedc3200a1e8345ae634c96eb05115/oarepo-fsm-2.0.4.tar.gz +BuildArch: noarch + +Requires: python3-wrapt +Requires: python3-oarepo-model-builder +Requires: python3-oarepo[deploy] +Requires: python3-oarepo[tests] +Requires: python3-Werkzeug +Requires: python3-oarepo[tests] +Requires: python3-Werkzeug +Requires: python3-oarepo[tests-es7] + +%description + + +%package -n python3-oarepo-fsm +Summary: OArepo FSM library for record state transitions +Provides: python-oarepo-fsm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-oarepo-fsm + + +%package help +Summary: Development documents and examples for oarepo-fsm +Provides: python3-oarepo-fsm-doc +%description help + + +%prep +%autosetup -n oarepo-fsm-2.0.4 + +%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-oarepo-fsm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.4-1 +- Package Spec generated @@ -0,0 +1 @@ +a0e23c12961258e8b0c19524570ca382 oarepo-fsm-2.0.4.tar.gz |