summaryrefslogtreecommitdiff
path: root/python-castep-dispersion.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 08:26:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 08:26:44 +0000
commit1ba837fd01b54ef4dafb42ccd9a8a2bf7db19bee (patch)
tree38fc3f74157b871d8cb84c96f0da8c44cb6b8fbd /python-castep-dispersion.spec
parentd1d2cf6400d271830505f989597dcf715ea25f01 (diff)
automatic import of python-castep-dispersion
Diffstat (limited to 'python-castep-dispersion.spec')
-rw-r--r--python-castep-dispersion.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/python-castep-dispersion.spec b/python-castep-dispersion.spec
new file mode 100644
index 0000000..8d4a417
--- /dev/null
+++ b/python-castep-dispersion.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-CASTEP-dispersion
+Version: 1.0.16
+Release: 1
+Summary: CASTEP utility for plotting band structures and phonon dispersions.
+License: MIT
+URL: https://github.com/zachary-hawk/dispersion.py.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/c8/bdf478b373aa077df1369b6512379db9ba635c844fcc5ff6dd3b46671b35/CASTEP-dispersion-1.0.16.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-matplotlib
+Requires: python3-ase
+Requires: python3-argparse
+
+%description
+
+
+%package -n python3-CASTEP-dispersion
+Summary: CASTEP utility for plotting band structures and phonon dispersions.
+Provides: python-CASTEP-dispersion
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-CASTEP-dispersion
+
+
+%package help
+Summary: Development documents and examples for CASTEP-dispersion
+Provides: python3-CASTEP-dispersion-doc
+%description help
+
+
+%prep
+%autosetup -n CASTEP-dispersion-1.0.16
+
+%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-CASTEP-dispersion -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.16-1
+- Package Spec generated