diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:41:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:41:05 +0000 |
commit | 584ccdd7d96a14f98af89b14ca9ad25ecde36915 (patch) | |
tree | cb3a1b0abf9e292024b3107972a52f0570f1d83a | |
parent | e2b7a661b9cb36113714ddd9a8a090d87e98ae18 (diff) |
automatic import of python-guan
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-guan.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/guan-0.0.168.tar.gz diff --git a/python-guan.spec b/python-guan.spec new file mode 100644 index 0000000..89c93d7 --- /dev/null +++ b/python-guan.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-guan +Version: 0.0.168 +Release: 1 +Summary: An open source python package +License: GNU General Public License v3 (GPLv3) +URL: https://py.guanjihuan.com +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/a5/c00fd66ea27b4618e57d4c8614d74b2df932c98c566f3e1affbaee5b4150/guan-0.0.168.tar.gz +BuildArch: noarch + + +%description +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
+ + +%package -n python3-guan +Summary: An open source python package +Provides: python-guan +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-guan +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
+ + +%package help +Summary: Development documents and examples for guan +Provides: python3-guan-doc +%description help +Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about. The primary location of this package is on website https://py.guanjihuan.com. With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
+ + +%prep +%autosetup -n guan-0.0.168 + +%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-guan -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.168-1 +- Package Spec generated @@ -0,0 +1 @@ +451f3cb23bfd2847c3ab9a2be0f3fa1e guan-0.0.168.tar.gz |