File Astree.spec of Package Astree

#
# spec file for package Astree
#
# 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:           Astree
Version:        1.24
Release:        0
Summary:        Optical ray tracing and design software
License:        LGPL-3.0-or-later
Group:          Productivity/Scientific/Astronomy
URL:            http://edeforas.free.fr/
Source0:        https://github.com/edeforas/Astree/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Astree-qmake_install.patch gh#edeforas/Astree#47 aloisio@gmx.com -- have the qmake script support install
Patch0:         Astree-qmake_install.patch
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)

%description
Astree is an optical ray tracing and design software.
This software computes and shows the ray-tracing analysis of optical devices,
having conical or polynomial surfaces,having reflections, transmissions,
stops, analysis of the image quality.

%prep
%autosetup -p1

%build
%qmake5
%make_jobs

%install
%qmake5_install
%suse_update_desktop_file -r astree "Science;Astronomy;"

%files
%license LICENSE.txt
%doc README.md samples
%{_bindir}/astree
%{_datadir}/appdata/astree.appdata.xml
%{_datadir}/applications/astree.desktop
%{_datadir}/pixmaps/astree.png

%changelog
openSUSE Build Service is sponsored by