Blame stellarsolver.spec

7b604a7
%global major_soversion 2
b99faf3
%global minor_soversion 4
af19823
af19823
Name:           stellarsolver
b99faf3
Version:        2.4
14235f9
Release:        %autorelease
af19823
Summary:        The Cross Platform Sextractor and Internal Astrometric Solver
83a643d
License:        BSD-3-Clause and GPL-2.0-or-later and GPL-3.0-or-later and LGPL-2.0-or-later and LGPL-3.0-or-later and MIT
af19823
# License breakdown
af19823
#
af19823
# Whole work according to LICENSE: GPLv3+
af19823
#
af19823
# Below: Files with explicitly different license
af19823
#
af19823
# BSD 3-clause:
af19823
#   stellarsolver/astrometry/* EXCEPT files mentioned below,
af19823
#          check stellarsolver/astrometry/LICENSE
af19823
#
af19823
# GPLv2+:
af19823
#   stellarsolver/*.{cpp,h}
af19823
#   stellarsolver/astrometry/include/astrometry/*qfits*.h
af19823
#   stellarsolver/astrometry/qfits-an/*
7b604a7
#   stellarsolver/astrometry/util/md5.c
7b604a7
#   tester/{mainwindow,nan}.*
7b604a7
#   testerutils/{dms,stretch}.*
af19823
#
af19823
# LGPLv2+:
7b604a7
#   testerutils/bayer.*
af19823
#
af19823
# LGPLv3+ and BSD and MIT:
af19823
#   stellarsolver/sep/*
af19823
#          check stellarsolver/sep/README.md for details
af19823
#
af19823
# MIT:
af19823
#   stellarsolver/astrometry/blind/windirent.h
af19823
#   
7b604a7
URL:            https://github.com/rlancaste/%{name}/
7b604a7
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
af19823
af19823
af19823
# Buildtime tools
af19823
BuildRequires:  cmake
af19823
BuildRequires:  gcc-c++
8e4e764
BuildRequires:  desktop-file-utils
af19823
# Libraries
af19823
BuildRequires:  cfitsio-devel
af19823
BuildRequires:  gsl-devel
af19823
BuildRequires:  qt5-qtbase-devel
af19823
BuildRequires:  wcslib-devel
af19823
af19823
# The source code bundles modified code from astrometry.net and SEP
af19823
Provides:       bundled(astrometry) = 0.89
af19823
Provides:       bundled(sep) = 1.2.0
af19823
af19823
# We split shared libs into subpackage, thus we should require its exact
af19823
# version here
af19823
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
af19823
af19823
%description
af19823
StellarSolver is the Cross Platform Sextractor and Internal Astrometric Solver:
af19823
* An Astrometric Plate Solver for Mac, Linux, and Windows, built on
af19823
  Astrometry.net and SEP (sextractor)
af19823
* Meant to be an internal library for use in a program like KStars for internal
af19823
  plate solving on all supported operating systems
af19823
af19823
%package        libs
af19823
Summary:        Shared library of StellarSolver
af19823
af19823
%description    libs
af19823
Shared library of Stellarsolver, meant to be an internal library for use in
af19823
a program like KStars for internal plate solving on all supported operating
af19823
systems.
af19823
af19823
%package        devel
af19823
Summary:        Development files for %{name}
af19823
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
af19823
af19823
%description    devel
af19823
The %{name}-devel package contains libraries and header files for
af19823
developing applications that use %{name}.
af19823
af19823
af19823
%prep
af19823
%forgesetup
af19823
af19823
af19823
%build
9f72e15
%cmake -DBUILD_TESTER=ON \
9f72e15
       -DBUILD_BATCH_SOLVER=ON
af19823
%cmake_build
af19823
af19823
af19823
%install
af19823
%cmake_install
7b604a7
7b604a7
7b604a7
%check
7b604a7
desktop-file-validate %{buildroot}%{_datadir}/applications/com.github.rlancaste.%{name}.desktop
9f72e15
desktop-file-validate %{buildroot}%{_datadir}/applications/com.github.rlancaste.stellarbatchsolver.desktop
af19823
af19823
af19823
%files
af19823
%license LICENSE
af19823
%doc README.md
af19823
%{_bindir}/StellarSolverTester
9f72e15
%{_bindir}/StellarBatchSolver
af19823
%{_datadir}/applications/com.github.rlancaste.stellarsolver.desktop
9f72e15
%{_datadir}/applications/com.github.rlancaste.stellarbatchsolver.desktop
7b604a7
%{_datadir}/icons/*/*/*/StellarSolverIcon.png
9f72e15
%{_datadir}/icons/*/*/*/StellarBatchSolverIcon.png
af19823
af19823
%files libs
af19823
%license LICENSE
af19823
%doc README.md
af19823
%{_libdir}/*.so.%{major_soversion}
af19823
%{_libdir}/*.so.%{major_soversion}.%{minor_soversion}
af19823
af19823
%files devel
af19823
%{_includedir}/*
af19823
%{_libdir}/*.so
af19823
%{_libdir}/cmake/StellarSolver/
af19823
%{_libdir}/pkgconfig/stellarsolver.pc
af19823
af19823
af19823
%changelog
14235f9
%autochangelog