diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:23:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:23:02 +0000 |
commit | 63a30f17808c63a7e35f6ee1f17447e6ca2e6799 (patch) | |
tree | 879e3b9644144af8507899875c088fdc702b67c3 /python-menetools.spec | |
parent | c97f519bf697974943823a59a2ee80f8641b9061 (diff) |
automatic import of python-menetools
Diffstat (limited to 'python-menetools.spec')
-rw-r--r-- | python-menetools.spec | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/python-menetools.spec b/python-menetools.spec new file mode 100644 index 0000000..67e9b0e --- /dev/null +++ b/python-menetools.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-MeneTools +Version: 3.3.0 +Release: 1 +Summary: Metabolic Network Topology Analysis Tools +License: GPLv3+ +URL: https://github.com/cfrioux/MeneTools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a9/5a/75c719f75295dbb5a2a1a08695341cd7c2e636fa97e7d9f5c1090a84b4e6/MeneTools-3.3.0.tar.gz +BuildArch: noarch + +Requires: python3-clyngor-with-clingo + +%description +Python Metabolic Network Topology Tools. Analyze the topology of metabolic networks. Explore producibility, production paths and needed initiation sources. More information on usage and troubleshooting on Github: https://github.com/cfrioux/MeneTools + + + + +%package -n python3-MeneTools +Summary: Metabolic Network Topology Analysis Tools +Provides: python-MeneTools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-MeneTools +Python Metabolic Network Topology Tools. Analyze the topology of metabolic networks. Explore producibility, production paths and needed initiation sources. More information on usage and troubleshooting on Github: https://github.com/cfrioux/MeneTools + + + + +%package help +Summary: Development documents and examples for MeneTools +Provides: python3-MeneTools-doc +%description help +Python Metabolic Network Topology Tools. Analyze the topology of metabolic networks. Explore producibility, production paths and needed initiation sources. More information on usage and troubleshooting on Github: https://github.com/cfrioux/MeneTools + + + + +%prep +%autosetup -n MeneTools-3.3.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-MeneTools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 3.3.0-1 +- Package Spec generated |