From 109a245bdcbf5b2aac25a93341e621418c057813 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 04:08:45 +0000 Subject: automatic import of python-soprano --- python-soprano.spec | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 python-soprano.spec (limited to 'python-soprano.spec') diff --git a/python-soprano.spec b/python-soprano.spec new file mode 100644 index 0000000..16f9a29 --- /dev/null +++ b/python-soprano.spec @@ -0,0 +1,108 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Soprano +Version: 0.8.13 +Release: 1 +Summary: A Python library to crack crystals +License: LGPL +URL: https://ccp-nc.github.io/soprano/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/0a/34aecc18fc93f50a279c1200398e50bdb900969d4230b5ed6dfa25240115/Soprano-0.8.13.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-ase + +%description + +Soprano is a Python library developed and maintained by the CCP for NMR +Crystallography as a tool to help scientists working with crystallography and +simulations to generate, manipulate, run calculations on and analyse large +data sets of crystal structures, with a particular attention to the output of +ab-initio random structure searching, +or AIRSS. (https://www.mtg.msm.cam.ac.uk/Codes/AIRSS) + +It provides a number of functionalities to help automate many common tasks +in computational crystallography. + + + +%package -n python3-Soprano +Summary: A Python library to crack crystals +Provides: python-Soprano +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Soprano + +Soprano is a Python library developed and maintained by the CCP for NMR +Crystallography as a tool to help scientists working with crystallography and +simulations to generate, manipulate, run calculations on and analyse large +data sets of crystal structures, with a particular attention to the output of +ab-initio random structure searching, +or AIRSS. (https://www.mtg.msm.cam.ac.uk/Codes/AIRSS) + +It provides a number of functionalities to help automate many common tasks +in computational crystallography. + + + +%package help +Summary: Development documents and examples for Soprano +Provides: python3-Soprano-doc +%description help + +Soprano is a Python library developed and maintained by the CCP for NMR +Crystallography as a tool to help scientists working with crystallography and +simulations to generate, manipulate, run calculations on and analyse large +data sets of crystal structures, with a particular attention to the output of +ab-initio random structure searching, +or AIRSS. (https://www.mtg.msm.cam.ac.uk/Codes/AIRSS) + +It provides a number of functionalities to help automate many common tasks +in computational crystallography. + + + +%prep +%autosetup -n Soprano-0.8.13 + +%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-Soprano -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 0.8.13-1 +- Package Spec generated -- cgit v1.2.3