summaryrefslogtreecommitdiff
path: root/python-superdupermetroid.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 09:24:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 09:24:14 +0000
commitfe33abba96c3212b385cf80a16b75a141ff64da6 (patch)
tree6ceb7181f5f1b25c5014af1f30e323954db70b18 /python-superdupermetroid.spec
parent10a4fcf0993aad38e6e9af83397a1803ead90d05 (diff)
automatic import of python-superdupermetroid
Diffstat (limited to 'python-superdupermetroid.spec')
-rw-r--r--python-superdupermetroid.spec158
1 files changed, 158 insertions, 0 deletions
diff --git a/python-superdupermetroid.spec b/python-superdupermetroid.spec
new file mode 100644
index 0000000..bd06b17
--- /dev/null
+++ b/python-superdupermetroid.spec
@@ -0,0 +1,158 @@
+%global _empty_manifest_terminate_build 0
+Name: python-SuperDuperMetroid
+Version: 2.3.0
+Release: 1
+Summary: A Super Metroid patching utility
+License: MIT License
+URL: https://github.com/SolventMercury/Super-Duper-Metroid
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cd/07/93bf8bd165329b50e887650cb7466d99636055652948e65b63cbab69d612/SuperDuperMetroid-2.3.0.tar.gz
+
+
+%description
+NOTE: This project has no relation to the romhack of the same name.
+
+# Super-Duper-Metroid
+Super Duper Metroid is a Super Metroid patcher and interface program, intended for use with randomizer programs. SDM is a **work in progress**, and is likely very broken in its current state. SDM requires an installation of Python 3 to work, although I haven't done any testing to determine which versions precisely work, and requires a Headerless ROM file to modify. Remember that video game piracy is a crime - only use legally obtained copies of the game Super Metroid with this program. Has been tested for NTSC.
+
+# Building
+Requires an adequate version of python
+Steps:
+1.) Clone this repository
+2.) Open a terminal in the repository's root
+3.) Create a virtual environment by running `py -3.9 -m venv venv`
+4.) Open virtual environment with `venv\scripts\activate`
+5.) Install requirements by running `python -m pip install -r requirements.txt`
+6.) Build Cython code by running `python setup.py`
+7.) Install as editable by running `py -3.9 -m pip install -e .`
+
+You can now run scripts from the project from terminal, using the virtual environment.
+
+# Credit
+Credit goes to Samuel Roy for writing most of this code.
+Kazuto wrote the More Efficient Item PLMs Hack, which is recreated in parts of this code.
+Metroid Construction and Kejardon provided a lot of documentation which I made use of.
+PHOSPHOTiDYL wrote the Skip Intro Saves hack, which is included in this program.
+Smiley and Flo wrote the Cheap Charge IPS patch.
+[n00btube](https://github.com/n00btube) wrote the Save Refill patch.
+Total, Fusda, and Leodox were responsible for most of the other IPS patches.
+
+
+
+
+%package -n python3-SuperDuperMetroid
+Summary: A Super Metroid patching utility
+Provides: python-SuperDuperMetroid
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-SuperDuperMetroid
+NOTE: This project has no relation to the romhack of the same name.
+
+# Super-Duper-Metroid
+Super Duper Metroid is a Super Metroid patcher and interface program, intended for use with randomizer programs. SDM is a **work in progress**, and is likely very broken in its current state. SDM requires an installation of Python 3 to work, although I haven't done any testing to determine which versions precisely work, and requires a Headerless ROM file to modify. Remember that video game piracy is a crime - only use legally obtained copies of the game Super Metroid with this program. Has been tested for NTSC.
+
+# Building
+Requires an adequate version of python
+Steps:
+1.) Clone this repository
+2.) Open a terminal in the repository's root
+3.) Create a virtual environment by running `py -3.9 -m venv venv`
+4.) Open virtual environment with `venv\scripts\activate`
+5.) Install requirements by running `python -m pip install -r requirements.txt`
+6.) Build Cython code by running `python setup.py`
+7.) Install as editable by running `py -3.9 -m pip install -e .`
+
+You can now run scripts from the project from terminal, using the virtual environment.
+
+# Credit
+Credit goes to Samuel Roy for writing most of this code.
+Kazuto wrote the More Efficient Item PLMs Hack, which is recreated in parts of this code.
+Metroid Construction and Kejardon provided a lot of documentation which I made use of.
+PHOSPHOTiDYL wrote the Skip Intro Saves hack, which is included in this program.
+Smiley and Flo wrote the Cheap Charge IPS patch.
+[n00btube](https://github.com/n00btube) wrote the Save Refill patch.
+Total, Fusda, and Leodox were responsible for most of the other IPS patches.
+
+
+
+
+%package help
+Summary: Development documents and examples for SuperDuperMetroid
+Provides: python3-SuperDuperMetroid-doc
+%description help
+NOTE: This project has no relation to the romhack of the same name.
+
+# Super-Duper-Metroid
+Super Duper Metroid is a Super Metroid patcher and interface program, intended for use with randomizer programs. SDM is a **work in progress**, and is likely very broken in its current state. SDM requires an installation of Python 3 to work, although I haven't done any testing to determine which versions precisely work, and requires a Headerless ROM file to modify. Remember that video game piracy is a crime - only use legally obtained copies of the game Super Metroid with this program. Has been tested for NTSC.
+
+# Building
+Requires an adequate version of python
+Steps:
+1.) Clone this repository
+2.) Open a terminal in the repository's root
+3.) Create a virtual environment by running `py -3.9 -m venv venv`
+4.) Open virtual environment with `venv\scripts\activate`
+5.) Install requirements by running `python -m pip install -r requirements.txt`
+6.) Build Cython code by running `python setup.py`
+7.) Install as editable by running `py -3.9 -m pip install -e .`
+
+You can now run scripts from the project from terminal, using the virtual environment.
+
+# Credit
+Credit goes to Samuel Roy for writing most of this code.
+Kazuto wrote the More Efficient Item PLMs Hack, which is recreated in parts of this code.
+Metroid Construction and Kejardon provided a lot of documentation which I made use of.
+PHOSPHOTiDYL wrote the Skip Intro Saves hack, which is included in this program.
+Smiley and Flo wrote the Cheap Charge IPS patch.
+[n00btube](https://github.com/n00btube) wrote the Save Refill patch.
+Total, Fusda, and Leodox were responsible for most of the other IPS patches.
+
+
+
+
+%prep
+%autosetup -n SuperDuperMetroid-2.3.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-SuperDuperMetroid -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
+- Package Spec generated