%global forgeurl https://github.com/rlancaste/stellarsolver/ %global commit f3f1456c58ae6a5dd896b4c9b443f16d2f2162c1 %global major_soversion 1 %global minor_soversion 6 %forgemeta Name: stellarsolver Version: 1.6 Release: 0.1%{?dist} Summary: The Cross Platform Sextractor and Internal Astrometric Solver License: BSD and GPLv2+ and GPLv3+ and LGPLv2+ and LGPLv3+ # License breakdown # # Whole work according to LICENSE: GPLv3+ # # Below: Files with explicitly different license # # BSD 3-clause: # stellarsolver/astrometry/* EXCEPT files mentioned below, # check stellarsolver/astrometry/LICENSE # # GPLv2+: # stellarsolver/*.{cpp,h} # stellarsolver/astrometry/include/astrometry/*qfits*.h # stellarsolver/astrometry/qfits-an/* # stellarsolver/astrometry/util/{bt.c,md5.c} # tester/{dms,mainwindow,nan,stretch}.* # # LGPLv2+: # tester/bayer.* # # LGPLv3+: # stellarsolver/sep/* # URL: %{forgeurl} Source0: %{forgesource} # Buildtime tools BuildRequires: cmake BuildRequires: gcc-c++ # Libraries BuildRequires: cfitsio-devel BuildRequires: gsl-devel BuildRequires: qt5-qtbase-devel BuildRequires: wcslib-devel # We split shared libs into subpackage, thus we should require its exact # version here Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description StellarSolver is the Cross Platform Sextractor and Internal Astrometric Solver: * An Astrometric Plate Solver for Mac, Linux, and Windows, built on Astrometry.net and SEP (sextractor) * Meant to be an internal library for use in a program like KStars for internal plate solving on all supported operating systems %package libs Summary: Shared library of StellarSolver %description libs Shared library of Stellarsolver, meant to be an internal library for use in a program like KStars for internal plate solving on all supported operating systems. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %forgesetup # Fix FSF address, also filed PR upstream: https://github.com/rlancaste/stellarsolver/pull/78 grep -rl '59 Temple Place, Suite 330, Boston, MA 02111-1307 USA' * | xargs -i@ sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA./g' @ %build %cmake -DBUILD_TESTER=ON %cmake_build %install %cmake_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %{?ldconfig_scriptlets} %files %license LICENSE %doc README.md %{_bindir}/StellarSolverTester %files libs %license LICENSE %doc README.md %{_libdir}/*.so.%{major_soversion} %{_libdir}/*.so.%{major_soversion}.%{minor_soversion} %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/cmake/StellarSolver/ %{_libdir}/pkgconfig/stellarsolver.pc %changelog * Sat Mar 13 2021 Christian Dersch - 1.6-0.1.20210313gitf3f1456 - initial package