diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:57:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:57:40 +0000 |
| commit | 8a4db8359e89de386c219dd9768a97a5303475d7 (patch) | |
| tree | f50cb09bed418744516e4397f2ac6e26f0bb879a /python-event-model.spec | |
| parent | 8cdaec04ca4ae8ca14330773f7d0f7787c1d645e (diff) | |
automatic import of python-event-modelopeneuler20.03
Diffstat (limited to 'python-event-model.spec')
| -rw-r--r-- | python-event-model.spec | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/python-event-model.spec b/python-event-model.spec new file mode 100644 index 0000000..dc759bd --- /dev/null +++ b/python-event-model.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-event-model +Version: 1.19.2 +Release: 1 +Summary: Data model used by the bluesky ecosystem +License: BSD (3-clause) +URL: https://github.com/NSLS-II/event-model +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/85/75/34c39e110380943e8e33af231087acd8982ca7b26378a4070cc97c2a436f/event-model-1.19.2.tar.gz +BuildArch: noarch + +Requires: python3-jsonschema +Requires: python3-numpy +Requires: python3-importlib-metadata + +%description +# Event Model + +[](https://github.com/bluesky/event-model/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster) + +[**Documentation**](https://blueskyproject.io/event-model/) + + +%package -n python3-event-model +Summary: Data model used by the bluesky ecosystem +Provides: python-event-model +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-event-model +# Event Model + +[](https://github.com/bluesky/event-model/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster) + +[**Documentation**](https://blueskyproject.io/event-model/) + + +%package help +Summary: Development documents and examples for event-model +Provides: python3-event-model-doc +%description help +# Event Model + +[](https://github.com/bluesky/event-model/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster) + +[**Documentation**](https://blueskyproject.io/event-model/) + + +%prep +%autosetup -n event-model-1.19.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-event-model -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.19.2-1 +- Package Spec generated |
