siril/siril.spec
2021-05-18 13:41:21 +00:00

98 lines
3.5 KiB
RPMSpec

#
# spec file for package siril
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: siril
Version: 0.99.8.1
Release: 0
Summary: An astronomical image processing software for Linux. (IRIS clone)
License: GPL-3.0-only
Group: Productivity/Scientific/Physics
URL: https://www.siril.org/
Source: https://gitlab.com/free-astro/siril/-/archive/%{version}/siril-%{version}.tar.bz2
#PATCH-FIX-UPSTREAM https://gitlab.com/free-astro/siril/-/commit/d319fceca5b00f156e1c5e3512d3ac1f41beb16a
Patch0: fix_glib_2_68_error.patch
BuildRequires: gcc-c++
# Remove git build dep when fixed upstream: https://gitlab.com/free-astro/siril/-/issues/583
BuildRequires: git
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(ffms2)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.17.0
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil) >= 55.20
BuildRequires: pkgconfig(libconfig++) >= 1.4
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng16)
BuildRequires: pkgconfig(libraw)
BuildRequires: pkgconfig(libswresample)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(opencv)
BuildRequires: pkgconfig(rtprocess)
BuildRequires: pkgconfig(shared-mime-info)
%description
Siril is meant to be Iris for Linux (sirI-L). It is an astronomical image
processing tool, able to convert, pre-process images, help aligning them
automatically or manually, stack them and enhance final images.
%prep
%setup -q
%patch0 -p1
%build
# override build directory, the default "build" is a regular source directory
%define _vpath_builddir builddir
%meson \
-Drelocatable-bundle=no \
%{nil}
%meson_build
%install
%meson_install
rm %{buildroot}/%{_datadir}/doc/siril/*
%find_lang %{name}
install -m 0644 -D platform-specific/linux/org.free_astro.siril.desktop %{buildroot}%{_datadir}/applications/org.free_astro.siril.desktop
install -m 0644 -D platform-specific/linux/siril.xml %{buildroot}%{_datadir}/mime/packages/siril.xml
# remove duplicate file
rm -f %{buildroot}%{_datadir}/siril/pixmaps/siril.svg
%files -f %{name}.lang
%doc ChangeLog NEWS README.md AUTHORS
%license LICENSE.md
%{_bindir}/siril
%{_bindir}/siril-cli
%{_mandir}/man1/siril.1%{?ext_man}
%{_mandir}/man1/siril-cli.1%{?ext_man}
%{_datadir}/siril/
%{_datadir}/metainfo/org.free_astro.siril.appdata.xml
%{_datadir}/applications/org.free_astro.siril.desktop
%{_datadir}/mime/packages/siril.xml
%{_datadir}/icons/hicolor/scalable/mimetypes/text-x-seq.svg
%{_datadir}/icons/hicolor/scalable/apps/org.free_astro.siril.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.free_astro.siril-symbolic.svg
%changelog