%bcond docs 1 %bcond introspection 1 # The shared library version %global soversion 0.5 Name: libipuz Version: 0.5.7 Release: 1.20261121081643087468.main.80.g6e477ec%{?dist} Summary: Library for parsing .ipuz puzzle files # Licenses of Rust dependencies: # Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # LICENSE.dependencies contains a full license breakdown License: %{shrink: (LGPL-2.1-or-later OR MIT) AND MIT AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } URL: https://gitlab.gnome.org/jrb/libipuz Source: libipuz-0.5.7.tar.gz # https://gitlab.gnome.org/jrb/libipuz/-/merge_requests/126 BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cmake BuildRequires: gcc BuildRequires: gettext BuildRequires: meson BuildRequires: python3 BuildRequires: sed %if %{with docs} BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: python3dist(myst-parser) %endif BuildRequires: glib2-devel BuildRequires: json-glib-devel %if %{with introspection} BuildRequires: gi-docgen BuildRequires: gobject-introspection-devel %endif %description This is a library for parsing .ipuz puzzle files, for crossword puzzles, sudokus, etc. The library only handles crosswords for now. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %if %{with docs} Suggests: %{name}-doc = %{version}-%{release} %endif %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %if %{with docs} %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains additional documentation for %{name}. %endif %package tests Summary: Tests for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description tests The %{name}-tests package contains tests for %{name}. %prep %autosetup -p1 -n libipuz-0.5.7 %cargo_prep # Drop version locks rm libipuz/rust/Cargo.lock sed -i '/Cargo.lock/d' libipuz/rust/meson.build %generate_buildrequires cd libipuz/rust %cargo_generate_buildrequires %build %meson %meson_build pushd libipuz/rust >/dev/null %{cargo_license_summary} %{cargo_license} > ../../LICENSE.dependencies popd >/dev/null %if %{with docs} sphinx-build-3 docs html rm -rf html/.{doctrees,buildinfo} %endif %install %meson_install %find_lang %{name}-1.0 %check # allow riscv64 port to finish (slow builders) %meson_test --timeout-multiplier 10 %files -f %{name}-1.0.lang %license LICENSE COPYING.LGPL COPYING.MIT %license LICENSE.dependencies %doc README.md NEWS.md %{_libdir}/lib%{name}-%{soversion}.so %files devel %{_includedir}/* %if %{with introspection} %{_datadir}/gir-1.0/Ipuz-1.0.gir %{_libdir}/girepository-1.0/Ipuz-1.0.typelib %endif %{_libdir}/pkgconfig/%{name}-%{soversion}.pc %if %{with docs} %files doc %license LICENSE COPYING.LGPL COPYING.MIT %doc html %if %{with introspection} %doc %{_docdir}/%{name}-1.0/ %endif %endif %files tests %dir %{_datadir}/installed-tests %{_datadir}/installed-tests/%{name}-1.0 %dir %{_libexecdir}/installed-tests %{_libexecdir}/installed-tests/%{name}-1.0 %changelog * Sat Nov 21 2026 Packit - 0.5.7-1.20261121081643087468.main.80.g6e477ec - Update NEWS to capture new error handling (Jonathan Blandford) - Test the int/string dichotomy of ipuz ints (Jonathan Blandford) - Use _ipuz_json_get_int() (Jonathan Blandford) - New file/function: ipuz-json (Jonathan Blandford) - Bold/italic sections (Jonathan Blandford) - Clarify HAS_SOLUTION (Jonathan Blandford) - Add a link to errors.html from the enums (Jonathan Blandford) - Add an admonition (Jonathan Blandford) - Add a note describing the difference between puzzle flags (Jonathan Blandford) - Pull the error section out of parsing-strategy.md (Jonathan Blandford) - Add documentation for Puzzle Problems (Jonathan Blandford) - Test cluenum strings (Jonathan Blandford) - parse cluenum as an integer when it's a string (Jonathan Blandford) - Test CELL_WITHOUT_CLUE (Jonathan Blandford) - Calculate CELL_WITHOUT_CLUE (Jonathan Blandford) - Test EMPTY_CLUE_TEXT and CLUE_WITHOUT_CELLS (Jonathan Blandford) - Calculate EMPTY_CLUE_TEXT and CLUE_WITHOUT_CELLS (Jonathan Blandford) - Test NOTHING_TO_GUESS and NO_SOLUTION (Jonathan Blandford) - Calculate NOTHING_TO_GUESS and NO_SOLUTION (Jonathan Blandford) - Add IpuzPuzzleProblems to PuzzleInfo (Jonathan Blandford) - Avoid double-checking if named is NULL (Jonathan Blandford) - Finish ipuz-style docs (Jonathan Blandford) - Move docs from ipuz-style.c to ipuz-style-docs.c (Jonathan Blandford) - Remove style on blocks as an extension (Jonathan Blandford) - Skip load_flags from _equal() (Jonathan Blandford) - Add load_flags + test as property to PuzzleInfo (Jonathan Blandford) - Add some NEWS about the additional error handling work (Jonathan Blandford) - Minor update of parsing-strategy.nd (Jonathan Blandford) - test invalid colors (Jonathan Blandford) - Skip colors that aren't values (Jonathan Blandford) - test ipuz puzzles with clashing values and properties (Jonathan Blandford) - Don't blindly write values to properties with the same name (Jonathan Blandford) - Test improper types in json files (Jonathan Blandford) - switch to ipuz_puzzle_load_string (Jonathan Blandford) - Add _ipuz_puzzle_load_string (Jonathan Blandford) - Test kind ignored. (Jonathan Blandford) - Add LOAD_FLAG_KIND_IGNORED (Jonathan Blandford) - Test that cells are dropped when they don't fi (Jonathan Blandford) - Cull any clue coords that aren't in hte grid (Jonathan Blandford) - update the dropped data secion in parsing-strategy (Jonathan Blandford) - test LOAD_FLAGS_GRID_TRUNCATED (Jonathan Blandford) - Calculate LOAD_FLAG_GRID_TRUNCATED (Jonathan Blandford) - Add IPUZ_PUZZLE_LOAD_FLAGS (Jonathan Blandford) - Deep copy has-origin-bug flag (Jonathan Blandford) - Change ipuz_guesses_load errors to the IPUZ_GUESSES_ERROR domain (Jonathan Blandford) - fix guesses to call g_file_set_contents to atomically save the file (Jonathan Blandford) - Don't have new_from_stream cancel the cancellable on error (Jonathan Blandford) - Set an error and don't crash when hitting invalid json with guesses (Jonathan Blandford) - test max grid size (Jonathan Blandford) - Add ipuz-grid.c to POTFILES (Jonathan Blandford) - Fix error domans in docs for load/save functions (Jonathan Blandford) - json returns a guint64 for int (Jonathan Blandford) - Implement validate (Jonathan Blandford) - Enforce the new IPUZ_GRID_MAX_SIZE (Jonathan Blandford) - Set a max size for grids (Jonathan Blandford) - Update docs to reflect new validation/error handling approach (Jonathan Blandford) - Hook up validate finally and let it be fatal (Jonathan Blandford) - Test the new header error codes (Jonathan Blandford) - Add more error strings for IPUZ_PUZZLE_ERROR (Jonathan Blandford) - Convert JSON_PARSER_ERROR to IPUZ_PUZZLE_ERROR with a INVALID_JSON error code (Jonathan Blandford) - Add two more error codes to IPUZ_PUZZLE_ERROR (Jonathan Blandford) - Annotate data as a byte array (Jonathan Blandford) - Add difficulty to the list of converted properties (Jonathan Blandford) - Link the Windows synchronization library for Rust's standard library (Vinson Lee) - Add a NEWS item for the spec adherence (Jonathan Blandford) - Add a charset test to puzle_equal (Jonathan Blandford) - Save the charset as charset, not "charset-str" (Jonathan Blandford) - Fix strv leak in load_clues() (Vinson Lee) - Fix sign-compare warning in acrostic source length check (Vinson Lee) - Use & in the barred T and L style checks (Vinson Lee) - Use & to check the origin-bug flag in its test (Vinson Lee) - Fix deadlock in ipuz_guesses_equal(a, a) (Jonathan Blandford) - Link the Windows system libraries that Rust's standard library needs (Vinson Lee) - Post-release version bump (Jonathan Blandford)