File nihstro.spec of Package nihstro
#
# spec file for package nihstro
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: nihstro
Version: 0
Release: 0
Summary: 3DS shader assembler and disassembler
License: BSD
URL: https://github.com/neobrain/nihstro
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: ninja
BuildRequires: c_compiler
BuildRequires: c++_compiler
BuildRequires: boost-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_test-devel
%define __builder %__ninja
%{lua: rpm.define("optflags " .. rpm.expand("%optflags"):gsub("%s*%-Werror=return%-type", "") )}
%description
%name is a collection of tools for 3DS shaders targeted at homebrew
development and/or reverse engineering. Currently, it supports
assembling 3DS shader binaries from assembly source code and
disassembling shaders from shbin files. It also provides C++
interfaces for analyzing and runtime-compiling shaders.
%package devel
Summary: %{summary}
BuildArch: noarch
Provides: %{name}-headers
%description devel
Development headers for %{name}
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -pv %{buildroot}%{_includedir}
mv include/%{name} %{buildroot}%{_includedir}
%files
%{_bindir}/*
%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%changelog