Blob Blame History Raw
Name:           fips
Version:        3.3.0
Release:        1%{?dist}
Summary:        OpenGL-based FITS image viewer
License:        LGPLv3+
Url:            https://github.com/matwey/fips3
Source:         https://github.com/matwey/fips3/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  cmake >= 3.0
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  qt5-devel >= 5.6
Requires:       hicolor-icon-theme

%description
FIPS is a cross-platform FITS viewer with responsive user interface. Unlike
other FITS viewers FIPS uses GPU hardware via OpenGL to provide usual
functionality such as zooming, panning and level adjustments. OpenGL 2.1 and
later is supported.

FIPS supports all 2D image formats except of 64-bit floating point numbers
(BITPIX=-64). FITS image extension has basic limited support.

%prep
%setup -q -n fips3-%{version}

%build
%cmake .
%make_build

%install
%make_install
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications ./space.fips.Fips.desktop

%check
ctest -V %{?_smp_mflags}

%files
%license LICENSE.txt
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/space.fips.Fips.desktop
%{_datadir}/icons/hicolor/*/apps/space.fips.Fips.*

%changelog
* Thu Sep  6 2018 Matwey V. Kornilov <matwey.kornilov@gmail.com> - 3.3.0-1
- Initial build