From 1754b59761b94b2d7170d4570a9b618dd21f8faf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 06:03:34 +0000 Subject: automatic import of python-addonenishka --- .gitignore | 1 + python-addonenishka.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 python-addonenishka.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..fe42a3a 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 0.3.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..7b7cf95 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +888dd007a1a0945f3f513a998d6415ea addonenishka-0.3.2.tar.gz -- cgit v1.2.3