diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-uproot3-methods.spec | 77 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/uproot3-methods-0.10.1.tar.gz diff --git a/python-uproot3-methods.spec b/python-uproot3-methods.spec new file mode 100644 index 0000000..04bf009 --- /dev/null +++ b/python-uproot3-methods.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-uproot3-methods +Version: 0.10.1 +Release: 1 +Summary: Pythonic mix-ins for ROOT classes. +License: BSD 3-clause +URL: https://github.com/scikit-hep/uproot3-methods +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/05/6f/8d7e8a5f4f9d3a8689bac0b0d382c02ae4f2145170ef5c7d8a671a59c37f/uproot3-methods-0.10.1.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-awkward0 + +%description +Install uproot3-methods like any other Python package: + pip install uproot3-methods # maybe with sudo or --user, or in virtualenv + +%package -n python3-uproot3-methods +Summary: Pythonic mix-ins for ROOT classes. +Provides: python-uproot3-methods +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-uproot3-methods +Install uproot3-methods like any other Python package: + pip install uproot3-methods # maybe with sudo or --user, or in virtualenv + +%package help +Summary: Development documents and examples for uproot3-methods +Provides: python3-uproot3-methods-doc +%description help +Install uproot3-methods like any other Python package: + pip install uproot3-methods # maybe with sudo or --user, or in virtualenv + +%prep +%autosetup -n uproot3-methods-0.10.1 + +%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-uproot3-methods -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.1-1 +- Package Spec generated @@ -0,0 +1 @@ +d99ff95ed7c95bde93c2badc730289fa uproot3-methods-0.10.1.tar.gz |
