From 853523585618dd66a8b50926b6ac6cb48c00138e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 11:41:25 +0000 Subject: automatic import of python-milliman-sensi --- python-milliman-sensi.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 python-milliman-sensi.spec (limited to 'python-milliman-sensi.spec') 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 - 1.0.44-1 +- Package Spec generated -- cgit v1.2.3