diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:41:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:41:25 +0000 |
| commit | 853523585618dd66a8b50926b6ac6cb48c00138e (patch) | |
| tree | dc79ec30fe9f80685fd1839b40d91a312e15d7a3 /python-milliman-sensi.spec | |
| parent | 04b038ae1f9eda54a67123a96ff058c93cf22b59 (diff) | |
automatic import of python-milliman-sensi
Diffstat (limited to 'python-milliman-sensi.spec')
| -rw-r--r-- | python-milliman-sensi.spec | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/python-milliman-sensi.spec b/python-milliman-sensi.spec new file mode 100644 index 0000000..77aac9e --- /dev/null +++ b/python-milliman-sensi.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-milliman-sensi +Version: 1.0.44 +Release: 1 +Summary: A parser and modifier of the configuration in Milliman-CHESS +License: MIT +URL: https://dev.azure.com/millimanparis/CHESS-Sensitivity-Manager +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1c/d0/a584b043cb7f49cf0677a7f7a58cdaac87e90f1156f592c7d245d0a49d65/milliman_sensi-1.0.44.tar.gz +BuildArch: noarch + + +%description +A parser and modifier of CHESS's configuration +To parse configuration files and apply them to create new sensitivity tables + + +%package -n python3-milliman-sensi +Summary: A parser and modifier of the configuration in Milliman-CHESS +Provides: python-milliman-sensi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-milliman-sensi +A parser and modifier of CHESS's configuration +To parse configuration files and apply them to create new sensitivity tables + + +%package help +Summary: Development documents and examples for milliman-sensi +Provides: python3-milliman-sensi-doc +%description help +A parser and modifier of CHESS's configuration +To parse configuration files and apply them to create new sensitivity tables + + +%prep +%autosetup -n milliman-sensi-1.0.44 + +%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-milliman-sensi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.44-1 +- Package Spec generated |
