- Created on: [2025-11-15 Sat]
- Last Updated: [2025-11-26 Wed 23:39]
This repo contains rpm package-related config files necessary to package
the open-source melonDS Nintendo DS emulator build from C/CPP source.
The resulting rpm packages are also built by the Fedora COPR build
system for Fedora user-submitted packages in the following project:
https://copr.fedorainfracloud.org/coprs/archjun/melonDS/
First you need to install packages necessary for rpmbuild. Assuming you
are on Fedora:
sudo dnf install fedora-packager \
fedora-review \
mock \
rpmdevtools \
rpmlintThen add your user to the mock group:
sudo usermod -a -G mock $USERFinally, install the build dependencies for melonDS itself:
sudo dnf install SDL2-devel \
enet-devel \
extra-cmake-modules \
libarchive-devel \
qt6-qtbase-devel \
qt6-qtbase-private-devel \
qt6-qtmultimedia-devel \
qt6-qtsvg-devel \
wayland-develNow from the project root, run make build which will generate the
rpmbuild folder structure:
$ tree -d
.
├── BUILD
├── RPMS
├── SOURCES
├── SPECS
└── SRPMSThe make build recipe will also read SPECS/melonDS.spec for how to
build from C/CPP source using cmake.
Note that default upstream https://github.com/melonDS-emu/melonDS strips
out debug info when building from source with cmake. However, in this
repo, the melonDS.spec specifies that debug headers not be stripped
with the following cmake options:
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_DO_STRIP=OFF \Once the build is complete, the .rpm build artifacts can be found in
RPMS/{aarch64,x86_64}/ and the source rpm’s can be found in
SRPMS/.
