diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:31:17 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:31:17 +0000 |
| commit | 829f586826069646a5a82222e564b0ac97b3ee8f (patch) | |
| tree | afb779cbbb3f31be58623ee42a4f357de2493cc4 /python-jmbo.spec | |
| parent | 959b4542df42d527a3c44d2dcd938891ac3a835d (diff) | |
automatic import of python-jmboopeneuler20.03
Diffstat (limited to 'python-jmbo.spec')
| -rw-r--r-- | python-jmbo.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-jmbo.spec b/python-jmbo.spec new file mode 100644 index 0000000..6c2cb52 --- /dev/null +++ b/python-jmbo.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jmbo +Version: 3.0.5 +Release: 1 +Summary: The Jmbo base product introduces a content type and various tools required to build Jmbo products. +License: BSD +URL: http://www.jmbo.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/40/36aac11ab7d56797b78e3744cc342bdfaa3e7a2eaf9ac6ebad3d0c5a1af3/jmbo-3.0.5.tar.gz +BuildArch: noarch + + +%description +**The Jmbo base product introduces a content type and various tools required to build Jmbo products.** +Documentation at http://jmbo.readthedocs.org. + +%package -n python3-jmbo +Summary: The Jmbo base product introduces a content type and various tools required to build Jmbo products. +Provides: python-jmbo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-jmbo +**The Jmbo base product introduces a content type and various tools required to build Jmbo products.** +Documentation at http://jmbo.readthedocs.org. + +%package help +Summary: Development documents and examples for jmbo +Provides: python3-jmbo-doc +%description help +**The Jmbo base product introduces a content type and various tools required to build Jmbo products.** +Documentation at http://jmbo.readthedocs.org. + +%prep +%autosetup -n jmbo-3.0.5 + +%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-jmbo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.5-1 +- Package Spec generated |
