diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:06:47 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:06:47 +0000 |
| commit | 111b010c9423ca78859cbfdb9c591a5d6cfdd335 (patch) | |
| tree | 40a1d1f9332a3868bb517a2a982dbee377e485f1 | |
| parent | 18e9367972b6b7fe7f5a95fea538ef45bfbe2886 (diff) | |
automatic import of python-ocs-sample-library-previewopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-ocs-sample-library-preview.spec | 85 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 87 insertions, 0 deletions
@@ -0,0 +1 @@ +/ocs_sample_library_preview-0.7.1rc0.tar.gz diff --git a/python-ocs-sample-library-preview.spec b/python-ocs-sample-library-preview.spec new file mode 100644 index 0000000..57d86f4 --- /dev/null +++ b/python-ocs-sample-library-preview.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ocs-sample-library-preview +Version: 0.7.1rc0 +Release: 1 +Summary: A preview of an OCS (OSIsoft Cloud Services) client library. Note: This library has been deprecated in favor of the AVEVA Data Hub library at https://pypi.org/project/adh-sample-library-preview/ +License: Apache 2.0 +URL: https://github.com/osisoft/sample-ocs-sample_libraries-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6a/71/377ffb0f73683b51a101f3e964ab11fc10b498beef7e79e9ee0404d83aa1/ocs_sample_library_preview-0.7.1rc0.tar.gz +BuildArch: noarch + +Requires: python3-adh-sample-library-preview + +%description +Developed using Python 3.9.5. +[AVEVA Samples](https://github.com/osisoft/OSI-samples) are licensed under the Apache 2 license. +For the main ADH sample libraries page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS/blob/main/docs/SAMPLE_LIBRARIES.md) +For the main ADH samples page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS) +For the main AVEVA samples page [ReadMe](https://github.com/osisoft/OSI-Samples) + +%package -n python3-ocs-sample-library-preview +Summary: A preview of an OCS (OSIsoft Cloud Services) client library. Note: This library has been deprecated in favor of the AVEVA Data Hub library at https://pypi.org/project/adh-sample-library-preview/ +Provides: python-ocs-sample-library-preview +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ocs-sample-library-preview +Developed using Python 3.9.5. +[AVEVA Samples](https://github.com/osisoft/OSI-samples) are licensed under the Apache 2 license. +For the main ADH sample libraries page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS/blob/main/docs/SAMPLE_LIBRARIES.md) +For the main ADH samples page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS) +For the main AVEVA samples page [ReadMe](https://github.com/osisoft/OSI-Samples) + +%package help +Summary: Development documents and examples for ocs-sample-library-preview +Provides: python3-ocs-sample-library-preview-doc +%description help +Developed using Python 3.9.5. +[AVEVA Samples](https://github.com/osisoft/OSI-samples) are licensed under the Apache 2 license. +For the main ADH sample libraries page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS/blob/main/docs/SAMPLE_LIBRARIES.md) +For the main ADH samples page [ReadMe](https://github.com/osisoft/OSI-Samples-OCS) +For the main AVEVA samples page [ReadMe](https://github.com/osisoft/OSI-Samples) + +%prep +%autosetup -n ocs-sample-library-preview-0.7.1rc0 + +%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-ocs-sample-library-preview -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.1rc0-1 +- Package Spec generated @@ -0,0 +1 @@ +d3dcf2a53239b371b545a756f17d659d ocs_sample_library_preview-0.7.1rc0.tar.gz |
