## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %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: libXISF Version: 0.2.0 Release: %autorelease Summary: Library to load and write XISF format License: GPL-3.0-or-later URL: https://gitea.nouspiro.space/nou/libXISF Source0: %{url}/archive/%{name}-v%{version}.tar.gz Patch: libxisf-fix_pugixml_include.patch Patch: libxisf-fix_lz4_test.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(pugixml) BuildRequires: pkgconfig(zlib) %description LibXISF is C++ library to load and save images in XISF format that is native format PixInsight astronomical image processing program. It implements XISF 1.0 specifications. %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}. %prep %autosetup -p1 -n libxisf # remove bundled libraries for d in "lz4" "pugixml" "zlib" do rm -rf $d done %build %cmake \ -DUSE_BUNDLED_LIBS=OFF %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/%{name}.so.0 %{_libdir}/%{name}.so.%{version} %files devel %{_includedir}/%{name}_global.h %{_includedir}/libxisf.h %{_libdir}/%{name}.so %changelog * Mon Mar 13 2023 John Doe - 0.2.0-1 - Uncommitted changes