## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 nijigenerate_ver 0.7.1 %define nijigenerate_dist 1098 %define nijigenerate_short f2677e4 %define nijigenerate_suffix ^%{nijigenerate_dist}.git%{nijigenerate_short} Name: nijigenerate-devtest Version: %{nijigenerate_ver}%{?nijigenerate_suffix:} Release: %autorelease Summary: Tool to create and edit nijilive puppets # Bundled lib licenses ## bcaa licenses: BSL-1.0 ## bindbc-loader licenses: BSL-1.0 ## bindbc-sdl licenses: BSL-1.0 ## dcv licenses: BSL-1.0 ## ddbus licenses: MIT ## dportals licenses: BSD-2-Clause ## dunit licenses: MIT ## dxml licenses: BSL-1.0 ## 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 ## kra-d licenses: BSD-2-Clause ## mir-algorithm licenses: Apache-2.0 ## mir-core licenses: Apache-2.0 ## mir-linux-kernel licenses: BSL-1.0 ## mir-random licenses: Apache-2.0 ## nijilive licenses: BSD-2-Clause ## psd-d licenses: BSD-2-Clause ## silly licenses: ISC ## tinyfiledialogs licenses: Zlib License: BSD-2-Clause and Apache-2.0 and BSL-1.0 and ISC and MIT and Zlib URL: https://github.com/grillo-delmal/nijigenerate-devtest Source0: https://github.com/grillo-delmal/nijigenerate-devtest/releases/download/nightly/nijigenerate-source.zip Source1: nijigenerate-devtest.desktop Source2: nijigenerate-devtest.appdata.xml Source3: dub.selections.json # dlang BuildRequires: ldc BuildRequires: dub BuildRequires: jq BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: git #dportals reqs BuildRequires: dbus-devel #i2d-imgui reqs BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: freetype-devel BuildRequires: SDL2-devel Requires: hicolor-icon-theme #dportals deps Requires: dbus #i2d-imgui deps Requires: libstdc++ Requires: freetype Requires: SDL2 %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. nijigenerate is a tool that lets you create and edit nijilive puppets. %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}" # 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}%{_bindir} install -p ./out/nijigenerate ${RPM_BUILD_ROOT}%{_bindir}/nijigenerate-devtest install -d ${RPM_BUILD_ROOT}%{_datadir}/applications/ install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_datadir}/applications/nijigenerate-devtest.desktop desktop-file-validate \ ${RPM_BUILD_ROOT}%{_datadir}/applications/nijigenerate-devtest.desktop install -d ${RPM_BUILD_ROOT}%{_metainfodir}/ install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}%{_metainfodir}/nijigenerate-devtest.appdata.xml appstream-util validate-relax --nonet \ ${RPM_BUILD_ROOT}%{_metainfodir}/nijigenerate-devtest.appdata.xml install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/ install -p -m 644 ./res/logo_256.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/nijigenerate-devtest.png install -d ${RPM_BUILD_ROOT}%{_datadir}/nijigenerate-devtest/ install -p -m 644 %SOURCE3 ${RPM_BUILD_ROOT}%{_datadir}/nijigenerate-devtest/dub.selections.json %files %license LICENSE %{_bindir}/nijigenerate-devtest %{_metainfodir}/nijigenerate-devtest.appdata.xml %{_datadir}/applications/nijigenerate-devtest.desktop %{_datadir}/icons/hicolor/256x256/apps/nijigenerate-devtest.png %{_datadir}/nijigenerate-devtest/dub.selections.json %changelog ## START: Generated by rpmautospec * Sat Oct 19 2024 Sync Process - 0.7.1^1098.gitf2677e4-2 - RPM Update 202410190155 * Tue Oct 01 2024 Sync Process - 0.7.1^1098.gitf2677e4-1 - RPM Update 202410010205 * Thu Sep 26 2024 Sync Process - 0.7.1^1097.git6dc3c48-2 - RPM Update 202409260107 * Wed Sep 25 2024 Sync Process - 0.7.1^1097.git6dc3c48-1 - RPM Update 202409250157 * Fri Sep 20 2024 Sync Process - 0.7.1^1084.git8a7f753-2 - RPM Update 202409202136 * Thu Sep 19 2024 Sync Process - 0.7.1^1084.git8a7f753-1 - RPM Update 202409190154 * Mon Sep 16 2024 Sync Process - 0.7.1^1082.gitd566fda-1 - RPM Update 202409160158 * Thu Sep 12 2024 Sync Process - 0.7.1^1080.git59b3ef0-2 - RPM Update 202409121720 * Thu Sep 12 2024 Grillo del Mal - 0.7.1^1080.git59b3ef0-1 - Rename project to devtest ## END: Generated by rpmautospec