diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:27:16 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:27:16 +0000 |
commit | be3b9c5e20999018f8bcf952d5a1fd39b2ff7e5b (patch) | |
tree | ce30507f52f6d3fcf97d9945f02d6f1ebc57a96b | |
parent | 4bb38a33b4e2d65e4eef9ef9cf7fa55675452393 (diff) |
automatic import of python-ardi
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ardi.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/Ardi-1.4.1.tar.gz diff --git a/python-ardi.spec b/python-ardi.spec new file mode 100644 index 0000000..6959c73 --- /dev/null +++ b/python-ardi.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Ardi +Version: 1.4.1 +Release: 1 +Summary: A Python module created by Muhammad Ardi Putra. Currently working on machine learning and computer vision +License: MIT +URL: https://github.com/MuhammadArdiPutra +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/aa/13/c3734a0c0d89a66832244f38555e61a28334775eebc8caf0449dbe7e4b89/Ardi-1.4.1.tar.gz +BuildArch: noarch + + +%description +The documentation of this package can be seen in https://github.com/MuhammadArdiPutra/ModuleByArdi. The line-by-line code explanation is shown in the "Documentation" folder. + +%package -n python3-Ardi +Summary: A Python module created by Muhammad Ardi Putra. Currently working on machine learning and computer vision +Provides: python-Ardi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Ardi +The documentation of this package can be seen in https://github.com/MuhammadArdiPutra/ModuleByArdi. The line-by-line code explanation is shown in the "Documentation" folder. + +%package help +Summary: Development documents and examples for Ardi +Provides: python3-Ardi-doc +%description help +The documentation of this package can be seen in https://github.com/MuhammadArdiPutra/ModuleByArdi. The line-by-line code explanation is shown in the "Documentation" folder. + +%prep +%autosetup -n Ardi-1.4.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-Ardi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.1-1 +- Package Spec generated @@ -0,0 +1 @@ +f294898aa48cc02b4e240da034fc46d2 Ardi-1.4.1.tar.gz |