## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 Name: libipuz Version: 0.3.0 Release: %autorelease Summary: Library for parsing .ipuz puzzle files License: LGPL-2.1-or-later AND LGPL-3.0-or-later AND GPL-3.0-or-later URL: https://gitlab.gnome.org/jrb/libipuz Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gettext BuildRequires: meson BuildRequires: python3 BuildRequires: glib2-devel BuildRequires: json-glib-devel %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} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tests Summary: Tests for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description tests The %{name}-tests package contains tests for %{name}. %prep %autosetup %build %meson %meson_build %install %meson_install %check %meson_test %files %license COPYING %doc README.md TODO.md %{_libdir}/lib%{name}-0.1.so %files devel %doc docs/*.md %{_includedir}/* %{_libdir}/pkgconfig/%{name}-0.1.pc %files tests %dir %{_datadir}/installed-tests %{_datadir}/installed-tests/%{name}-1.0 %dir %{_libexecdir}/installed-tests %{_libexecdir}/installed-tests/%{name}-1.0 %changelog * Sun Nov 06 2022 Davide Cavalca 0.3.0-1 - Update to 0.3.0; Fixes: RHBZ#2140442 * Thu Oct 27 2022 Davide Cavalca 0.2.0-1 - Initial import; Fixes: RHBZ#2137748