Name: liblcf Summary: Library to handle RPG Maker 2000/2003 game data # liblcf itself if MIT, but it uses some example code # from the BSD-licensed "inih" library, as well as # some header-only C++ libraries, which are subject # to the Boost License. # # BSD-licensed: # - src/ini.cpp (removed before build) # - src/ini.h (removed before build) # - src/inireader.cpp # - src/inireader.h # # Boost: # - src/lcf/span.h # - src/lcf/string_view.h # - src/lcf/third_party/span.h # - src/lcf/third_party/string_view.h License: MIT and BSD and Boost Version: 0.7.0 Release: 5%{?dist} URL: https://github.com/EasyRPG/liblcf Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: 0000-unbundle-inih.patch BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: make BuildRequires: expat-devel BuildRequires: inih-devel BuildRequires: libicu-devel %description %{name} is a library to handle RPG Maker 2000/2003 game data. It can read and write LCF and XML files. %{name} is part of the EasyRPG Project. %package devel Summary: Development files for %{name} Requires: %{name}%{?isa} = %{version}-%{release} Requires: inih-devel %description devel This package contains files required to develop applications using %{name}. %package tools Summary: Programs for handling RPG Maker 2000/2003 game data %description tools This package contains helper tools for working with RPG Maker 2000/2003 data files: - lcf2xml: converts RM2k data files to XML (and vice-versa) - lcfstrings: extracts all strings from an RM2k data file %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains documentation (in HTML format) for %{name}. %prep %setup -q %patch0 -p1 %build %cmake \ -DLIBLCF_UPDATE_MIMEDB=OFF \ -DCMAKE_BUILD_TYPE=Release %cmake_build %cmake_build --target liblcf_doc %install %cmake_install # liblcf bundles the "inih" library and exposes it as part of its API. # Symlink liblcf's "ini.h" file to the un-bundled library's version. ln -s %{_includedir}/ini.h %{buildroot}%{_includedir}/lcf/ini.h %check %cmake_build --target check %files %license COPYING %{_libdir}/%{name}.so.* %{_datadir}/mime/packages/%{name}*.xml %files devel %{_includedir}/lcf/ %{_libdir}/%{name}.so %{_libdir}/cmake/%{name}/ %{_libdir}/pkgconfig/%{name}.pc %files tools %{_bindir}/lcf2xml %{_bindir}/lcfstrings %files doc %license COPYING %doc doc/* %changelog * Mon Aug 01 2022 Frantisek Zatloukal - 0.7.0-5 - Rebuilt for ICU 71.1 * Fri Jul 22 2022 Artur Iwicki - 0.7.0-4 - Fix CMake-related FTBFS * Thu Jul 21 2022 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Nov 02 2021 Artur Iwicki - 0.7.0-1 - Update to v0.7.0 - Add the -tools subpackage - Drop Patch1 (fix SIGSTKSZ usage - issue fixed upsteam) * Thu Jul 29 2021 Artur Iwicki - 0.6.2-7 - Add Patch1: fix SIGSTKSZ usage (fixes rhbz#1987651) * Thu Jul 22 2021 Fedora Release Engineering - 0.6.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu May 20 2021 Pete Walter - 0.6.2-5 - Rebuild for ICU 69 * Tue Jan 26 2021 Fedora Release Engineering - 0.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 02 2020 Artur Iwicki - 0.6.2-3 - Build and install documentation (in -doc subpackage) - Build and run tests * Sat Aug 01 2020 Artur Iwicki - 0.6.2-2 - Unbundle the inih library - Disable the automatic mimedb update during install * Fri Jul 31 2020 Artur Iwicki - 0.6.2-1 - Initial packaging