summaryrefslogtreecommitdiff
path: root/python-pato-man.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-pato-man.spec')
-rw-r--r--python-pato-man.spec151
1 files changed, 151 insertions, 0 deletions
diff --git a/python-pato-man.spec b/python-pato-man.spec
new file mode 100644
index 0000000..bedba14
--- /dev/null
+++ b/python-pato-man.spec
@@ -0,0 +1,151 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Pato-man
+Version: 1.0
+Release: 1
+Summary: Pac-man with ducks
+License: MIT License
+URL: https://github.com/AbraaoCF/Pato-man
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/df/b7/d811fbc7330c30dabd103d39edc1d4086887bf95fa61c9c55b731a05b9c8/Pato-man-1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pygame
+
+%description
+## Pato-man
+
+Play your favorite arcade game, but as a duck!
+
+## Installation
+
+To install Pato-man, you'll need to have [Python 3](https://www.python.org/downloads/) (>= 3.6) and [pip](https://pip.pypa.io/en/stable/installing/) already installed on your computer. With those packages available, run:
+
+```bash
+pip install Pato-man
+```
+
+or
+
+```bash
+pip3 install Pato-man
+```
+
+## How to use
+
+To start the game type:
+```bash
+patoman
+```
+
+
+
+
+%package -n python3-Pato-man
+Summary: Pac-man with ducks
+Provides: python-Pato-man
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Pato-man
+## Pato-man
+
+Play your favorite arcade game, but as a duck!
+
+## Installation
+
+To install Pato-man, you'll need to have [Python 3](https://www.python.org/downloads/) (>= 3.6) and [pip](https://pip.pypa.io/en/stable/installing/) already installed on your computer. With those packages available, run:
+
+```bash
+pip install Pato-man
+```
+
+or
+
+```bash
+pip3 install Pato-man
+```
+
+## How to use
+
+To start the game type:
+```bash
+patoman
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for Pato-man
+Provides: python3-Pato-man-doc
+%description help
+## Pato-man
+
+Play your favorite arcade game, but as a duck!
+
+## Installation
+
+To install Pato-man, you'll need to have [Python 3](https://www.python.org/downloads/) (>= 3.6) and [pip](https://pip.pypa.io/en/stable/installing/) already installed on your computer. With those packages available, run:
+
+```bash
+pip install Pato-man
+```
+
+or
+
+```bash
+pip3 install Pato-man
+```
+
+## How to use
+
+To start the game type:
+```bash
+patoman
+```
+
+
+
+
+%prep
+%autosetup -n Pato-man-1.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-Pato-man -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0-1
+- Package Spec generated