Files
monocoque/tools/distro/fedora/rpm/fedora.spec
T

49 lines
1.6 KiB
RPMSpec
Raw Normal View History

#dnf install pulseaudio-libs-devel argtable-devel libconfig-devel hidapi-devel libserialport-devel lua-devel libuv-devel libxdg-basedir-devel libxml2-devel procps-ng-devel
2026-01-12 11:47:43 -05:00
Summary: A device manager for racing sims
Name: monocoque
Version: 0.0.5
Release: 1
License: GPL
Group: Applications/Sound
Source: https://github.com/monocoque
URL: https://spacefreak18.github.io/simapi
Distribution: Fedora Linux
Vendor: spacefreak18
Packager: Paul Jones <paul@spacefreak18.xyz>
2026-08-21 15:45:43 -04:00
Requires: pulseaudio-libs argtable libconfig hidapi libserialport libuv libxdg-basedir lua-libs libxml2 procps-ng gtk3 libcurl mesa-libGL
2026-01-12 11:47:43 -05:00
%description
A device manager for Racing sims
# Builds whatever tree has been staged at %{_sourcedir}/monocoque, cloning it
# from upstream master only if nothing is staged. The unconditional clone this
# replaced meant an rpm's contents tracked master rather than the tag being
# built -- so a fix on the branch being released was absent from its own
# release. CI stages the checked-out tree; a bare `rpmbuild -ba` on a
# workstation still works exactly as before.
2026-01-12 11:47:43 -05:00
%prep
rm -rf $RPM_BUILD_DIR/monocoque
if [ ! -d $RPM_SOURCE_DIR/monocoque ]; then
cd $RPM_SOURCE_DIR
git clone https://github.com/spacefreak18/monocoque
cd monocoque
git submodule update --init --recursive
cd ..
fi
2026-01-12 11:47:43 -05:00
cp -r $RPM_SOURCE_DIR/monocoque $RPM_BUILD_DIR/
%build
cd $RPM_BUILD_DIR/monocoque
2026-08-21 14:49:13 -04:00
cmake -B build -DBUILD_GUI=on
2026-01-12 11:47:43 -05:00
cd build
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
cp $RPM_BUILD_DIR/monocoque/build/monocoque $RPM_BUILD_ROOT/usr/bin/monocoque
2026-08-21 14:49:13 -04:00
cp $RPM_BUILD_DIR/monocoque/build/gmonocoque $RPM_BUILD_ROOT/usr/bin/gmonocoque
2026-01-12 11:47:43 -05:00
%files
/usr/bin/monocoque
2026-08-21 14:49:13 -04:00
/usr/bin/gmonocoque