diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:54:32 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:54:32 +0000 |
| commit | 2548aff81e2deb2fc0efea1411e62c589ced4479 (patch) | |
| tree | f16548d8f4afd587ac3ee301bf8c54883d270f25 | |
| parent | 1d5655702d6ae3cd2d2cae7895cd07892de773d1 (diff) | |
automatic import of python-openfermionpsi4
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-openfermionpsi4.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/openfermionpsi4-0.5.tar.gz diff --git a/python-openfermionpsi4.spec b/python-openfermionpsi4.spec new file mode 100644 index 0000000..d8a4202 --- /dev/null +++ b/python-openfermionpsi4.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-openfermionpsi4 +Version: 0.5 +Release: 1 +Summary: A plugin allowing OpenFermion to interface with Psi4. +License: GNU Lesser General Public License (LGPL), Version 3 or any later version +URL: https://www.openfermion.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/db/7d/f210360789266f98ec7e4a38e7be380c3a04e281211934383f56b98181d2/openfermionpsi4-0.5.tar.gz +BuildArch: noarch + +Requires: python3-openfermion + +%description + + +%package -n python3-openfermionpsi4 +Summary: A plugin allowing OpenFermion to interface with Psi4. +Provides: python-openfermionpsi4 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-openfermionpsi4 + + +%package help +Summary: Development documents and examples for openfermionpsi4 +Provides: python3-openfermionpsi4-doc +%description help + + +%prep +%autosetup -n openfermionpsi4-0.5 + +%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-openfermionpsi4 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5-1 +- Package Spec generated @@ -0,0 +1 @@ +43cf77152f4803248dac18870ada43d2 openfermionpsi4-0.5.tar.gz |
