diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:59:24 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:59:24 +0000 |
| commit | 790fa2b9f844f86757fabca0552ca39fcb2966d2 (patch) | |
| tree | 8bfb24c5892967d0e75bdb02a24b9830dc376f07 /python-pennylane-lightning.spec | |
| parent | 1adaa619cf88e732eaefa653699422ae395644db (diff) | |
automatic import of python-pennylane-lightning
Diffstat (limited to 'python-pennylane-lightning.spec')
| -rw-r--r-- | python-pennylane-lightning.spec | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/python-pennylane-lightning.spec b/python-pennylane-lightning.spec new file mode 100644 index 0000000..22dff05 --- /dev/null +++ b/python-pennylane-lightning.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-PennyLane-Lightning +Version: 0.29.0 +Release: 1 +Summary: PennyLane-Lightning plugin +License: Apache License 2.0 +URL: https://github.com/XanaduAI/pennylane-lightning +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/4b/4ba11d66fa3ac57655d6fd7b6cd0c0d9cab6ae9e077f0da62af11162ad49/PennyLane-Lightning-0.29.0.tar.gz + +Requires: python3-pennylane +Requires: python3-pennylane-lightning-gpu + +%description +* Combine PennyLane-Lightning's high performance simulator with PennyLane's + automatic differentiation and optimization. + +%package -n python3-PennyLane-Lightning +Summary: PennyLane-Lightning plugin +Provides: python-PennyLane-Lightning +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-PennyLane-Lightning +* Combine PennyLane-Lightning's high performance simulator with PennyLane's + automatic differentiation and optimization. + +%package help +Summary: Development documents and examples for PennyLane-Lightning +Provides: python3-PennyLane-Lightning-doc +%description help +* Combine PennyLane-Lightning's high performance simulator with PennyLane's + automatic differentiation and optimization. + +%prep +%autosetup -n PennyLane-Lightning-0.29.0 + +%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-PennyLane-Lightning -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.29.0-1 +- Package Spec generated |
