diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-milliman-sensi.spec | 78 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/milliman_sensi-1.0.44.tar.gz 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 @@ -0,0 +1 @@ +9e41c82e2df84a4dcfe30b3b9a4232fb milliman_sensi-1.0.44.tar.gz |
