## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %define nijiexpose_ver 0.0.0 %define nijiexpose_dist 284 %define nijiexpose_short 302760a %define nijiexpose_suffix ^%{nijiexpose_dist}.git%{nijiexpose_short} Name: nijiexpose-devtest Version: %{nijiexpose_ver}%{?nijiexpose_suffix:} Release: %autorelease Summary: Tool to use nijilive puppets # Bundled lib licenses ## bindbc-loader licenses: BSL-1.0 ## bindbc-lua licenses: BSL-1.0 ## bindbc-sdl licenses: BSL-1.0 ## ddbus licenses: MIT ## diet-ng licenses: MIT ## dportals licenses: BSD-2-Clause ## dunit licenses: MIT ## eventcore licenses: MIT ## facetrack-d licenses: BSD-2-Clause ## fghj licenses: BSL-1.0 ## i18n-d licenses: BSD-2-Clause ## i2d-imgui licenses: BSL-1.0 and MIT ## i2d-opengl licenses: BSL-1.0 ## imagefmt licenses: BSD-2-Clause ## inmath licenses: BSD-2-Clause ## lumars licenses: MIT ## mir-algorithm licenses: Apache-2.0 ## mir-core licenses: Apache-2.0 ## mir-linux-kernel licenses: BSL-1.0 ## nijilive licenses: BSD-2-Clause ## nijiui licenses: BSD-2-Clause ## openssl licenses: OpenSSL ## silly licenses: ISC ## stdx-allocator licenses: BSD-2-Clause ## taggedalgebraic licenses: BSD-2-Clause ## tinyfiledialogs licenses: Zlib ## vibe-container licenses: MIT ## vibe-core licenses: MIT ## vibe-d licenses: MIT ## vmc-d licenses: BSD-2-Clause License: BSD-2-Clause and Apache-2.0 and BSL-1.0 and ISC and MIT and OpenSSL and Zlib URL: https://github.com/grillo-delmal/nijiexpose-devtest Source0: https://github.com/grillo-delmal/nijiexpose-devtest/releases/download/nightly/nijiexpose-source.zip Source1: nijiexpose-devtest.desktop Source2: nijiexpose-devtest.appdata.xml Source3: dub.selections.json # dlang BuildRequires: ldc BuildRequires: dub BuildRequires: jq BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: git #bindbc-lua reqs BuildRequires: luajit-devel #dportals reqs BuildRequires: dbus-devel #i2d-imgui reqs BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: freetype-devel BuildRequires: SDL2-devel #openssl reqs BuildRequires: openssl-devel Requires: hicolor-icon-theme #bindbc-lua deps Requires: luajit #dportals deps Requires: dbus #i2d-imgui deps Requires: libstdc++ Requires: freetype Requires: SDL2 #openssl deps Requires: openssl %description This is a development test version of the software maintained by Grillo del Mal, use at your own risk. nijilive is a framework for realtime 2D puppet animation which can be used for VTubing, game development and digital animation. nijiexpose is a tool that lets you use your nijilive models for live streaming. %prep %setup -c jq "map(.path = ([\"$(pwd)\"] + (.path | split(\"/\"))[-4:] | join(\"/\")) )" <<<$(<.dub/packages/local-packages.json) > .dub/packages/local-packages.linux.json rm .dub/packages/local-packages.json mv .dub/packages/local-packages.linux.json .dub/packages/local-packages.json dub add-local .flatpak-dub/semver/*/semver dub add-local .flatpak-dub/gitver/*/gitver %build export DFLAGS="%{_d_optflags} -L-rpath=%{_libdir}/nijiexpose/" # Build metadata dub build --skip-registry=all --compiler=ldc2 --config=meta # Build the project, with its main file included, without unittests dub build --skip-registry=all --compiler=ldc2 --config=linux-nightly --build=debug %install install -d ${RPM_BUILD_ROOT}%{_libdir}/nijiexpose-devtest install -p ./out/cimgui.so ${RPM_BUILD_ROOT}%{_libdir}/nijiexpose-devtest/cimgui.so install -d ${RPM_BUILD_ROOT}%{_bindir} install -p ./out/nijiexpose ${RPM_BUILD_ROOT}%{_bindir}/nijiexpose-devtest install -d ${RPM_BUILD_ROOT}%{_datadir}/applications/ install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_datadir}/applications/nijiexpose-devtest.desktop desktop-file-validate \ ${RPM_BUILD_ROOT}%{_datadir}/applications/nijiexpose-devtest.desktop install -d ${RPM_BUILD_ROOT}%{_metainfodir}/ install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}%{_metainfodir}/nijiexpose-devtest.appdata.xml appstream-util validate-relax --nonet \ ${RPM_BUILD_ROOT}%{_metainfodir}/nijiexpose-devtest.appdata.xml install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/ install -p -m 644 ./res/icon_x256.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/nijiexpose-devtest.png install -d ${RPM_BUILD_ROOT}%{_datadir}/nijiexpose-devtest/ install -p -m 644 %SOURCE3 ${RPM_BUILD_ROOT}%{_datadir}/nijiexpose-devtest/dub.selections.json %files %license LICENSE %{_bindir}/nijiexpose-devtest %{_libdir}/nijiexpose-devtest/* %{_metainfodir}/nijiexpose-devtest.appdata.xml %{_datadir}/applications/nijiexpose-devtest.desktop %{_datadir}/icons/hicolor/256x256/apps/nijiexpose-devtest.png %{_datadir}/nijiexpose-devtest/dub.selections.json %changelog ## START: Generated by rpmautospec * Sat Oct 19 2024 Sync Process - 0.0.0^284.git302760a-3 - RPM Update 202410190114 * Fri Oct 04 2024 Sync Process - 0.0.0^284.git302760a-2 - RPM Update 202410040114 * Thu Oct 03 2024 Sync Process - 0.0.0^284.git302760a-1 - RPM Update 202410030114 * Sat Sep 28 2024 Sync Process - 0.0.0^283.gitf6a2eb7-3 - RPM Update 202409280114 * Thu Sep 26 2024 Sync Process - 0.0.0^283.gitf6a2eb7-2 - RPM Update 202409260106 * Wed Sep 25 2024 Sync Process - 0.0.0^283.gitf6a2eb7-1 - RPM Update 202409250115 * Fri Sep 20 2024 Sync Process - 0.0.0^282.gitec1ed49-6 - RPM Update 202409202137 * Tue Sep 17 2024 Sync Process - 0.0.0^282.gitec1ed49-5 - RPM Update 202409170103 * Mon Sep 16 2024 Sync Process - 0.0.0^282.gitec1ed49-4 - RPM Update 202409160116 * Sat Sep 14 2024 Sync Process - 0.0.0^282.gitec1ed49-3 - RPM Update 202409140110 * Thu Sep 12 2024 Sync Process - 0.0.0^282.gitec1ed49-2 - RPM Update 202409121720 * Thu Sep 12 2024 Grillo del Mal - 0.0.0^282.gitec1ed49-1 - Rename project to devtest ## END: Generated by rpmautospec