diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:03:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:03:34 +0000 |
commit | 1754b59761b94b2d7170d4570a9b618dd21f8faf (patch) | |
tree | 633a7b12a22d9f0cb110b82d9f2fe433a03b0b9f | |
parent | b83b4ff8018990693aea1509c9744cd9c3e3ef6e (diff) |
automatic import of python-addonenishka
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-addonenishka.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/addonenishka-0.3.2.tar.gz diff --git a/python-addonenishka.spec b/python-addonenishka.spec new file mode 100644 index 0000000..918575b --- /dev/null +++ b/python-addonenishka.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-addonenishka +Version: 0.3.2 +Release: 1 +Summary: Add one example package. +License: MIT License +URL: https://github.com/NishkaArora/packagingtutorial +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/73/a018446c5086553699265abe0387eb7094a0c5ddc3a6c429b11d82450c1f/addonenishka-0.3.2.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-numpy +Requires: python3-tabulate + +%description +# Example Package + +This is a simple example package that adds one to input number. + + + +%package -n python3-addonenishka +Summary: Add one example package. +Provides: python-addonenishka +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-addonenishka +# Example Package + +This is a simple example package that adds one to input number. + + + +%package help +Summary: Development documents and examples for addonenishka +Provides: python3-addonenishka-doc +%description help +# Example Package + +This is a simple example package that adds one to input number. + + + +%prep +%autosetup -n addonenishka-0.3.2 + +%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-addonenishka -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1 +- Package Spec generated @@ -0,0 +1 @@ +888dd007a1a0945f3f513a998d6415ea addonenishka-0.3.2.tar.gz |