diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:13:03 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:13:03 +0000 |
| commit | 446a4d3ace5a7fae4fed1c952ce7a2393ecf02ef (patch) | |
| tree | 550a999ecded8400cfa58e5881bedea33a021f74 | |
| parent | 840b28b5db54f8a7acea894305b449893c6cd414 (diff) | |
automatic import of python-fatpack
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-fatpack.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/fatpack-0.7.3.tar.gz diff --git a/python-fatpack.spec b/python-fatpack.spec new file mode 100644 index 0000000..d556cf1 --- /dev/null +++ b/python-fatpack.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fatpack +Version: 0.7.3 +Release: 1 +Summary: Fatigue analysis in python +License: ISC +URL: https://github.com/gunnstein/fatpack +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ab/ea/88d35f261931e8e31a136af5555b906628675ea63f9c44f9096e6beb4f74/fatpack-0.7.3.tar.gz +BuildArch: noarch + +Requires: python3-numpy + +%description + + +%package -n python3-fatpack +Summary: Fatigue analysis in python +Provides: python-fatpack +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-fatpack + + +%package help +Summary: Development documents and examples for fatpack +Provides: python3-fatpack-doc +%description help + + +%prep +%autosetup -n fatpack-0.7.3 + +%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-fatpack -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.3-1 +- Package Spec generated @@ -0,0 +1 @@ +09726d822d76101d9d6ab2735d7a73b1 fatpack-0.7.3.tar.gz |
