diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:50:46 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:50:46 +0000 |
| commit | a5e66537144825474c53c7cb1d836d242a2ac242 (patch) | |
| tree | 698918217b2bdef3420c236251f13133ef6d2c1a | |
| parent | 5ab5e2fcb96c88b17e446c4ebb7df15bbda0f1ad (diff) | |
automatic import of python-pato-man
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pato-man.spec | 151 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 153 insertions, 0 deletions
@@ -0,0 +1 @@ +/Pato-man-1.0.tar.gz 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 @@ -0,0 +1 @@ +f4127740995220de310da37dac3873f0 Pato-man-1.0.tar.gz |
