- Bump to version 1.6.0 - Moving to new Gitlab repository. OBS-URL: https://build.opensuse.org/request/show/1230668 OBS-URL: https://build.opensuse.org/package/show/science/OSCAR?expand=0&rev=20
100 lines
3.4 KiB
RPMSpec
100 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package OSCAR
|
|
#
|
|
# Copyright (c) 2023 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: OSCAR
|
|
Version: 1.6.0
|
|
Release: 0
|
|
Summary: The Open Source CPAP Analysis Reporter
|
|
License: GPL-3.0-only
|
|
Group: Productivity/Scientific/Other
|
|
URL: https://sleepfiles.com/OSCAR
|
|
Source0: https://gitlab.com/CrimsonNape/OSCAR-code/-/archive/v%{version}/%{name}-code-v%{version}.tar.bz2
|
|
Source1: com.sleepfiles.OSCAR.metainfo.xml
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
BuildRequires: pkgconfig(Qt5SerialPort)
|
|
BuildRequires: pkgconfig(zlib)
|
|
BuildRequires: desktop-file-utils
|
|
|
|
%if 0%{?suse_version}
|
|
BuildRequires: libqt5-linguist
|
|
BuildRequires: update-desktop-files
|
|
%else
|
|
BuildRequires: qt5-linguist
|
|
%global debug_package %{nil}
|
|
%endif
|
|
|
|
%description
|
|
|
|
OSCAR is PC software developed for reviewing and exploring data produced by CPAP and related
|
|
machines used in the treatment of sleep apnea.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-code-v%{version}
|
|
|
|
%build
|
|
mkdir build_OSCAR
|
|
cd build_OSCAR
|
|
%if 0%{?suse_version}
|
|
%_libqt5_qmake ../OSCAR_QT.pro
|
|
%else
|
|
qmake-qt5 ../OSCAR_QT.pro
|
|
%endif
|
|
make
|
|
|
|
%install
|
|
# the generated makefiles do not support make install(?)
|
|
mkdir -p %{buildroot}/%{_datadir}/%{name}
|
|
install -D -m 755 build_OSCAR/oscar/OSCAR %{buildroot}/%{_bindir}/OSCAR
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,scalable}/apps/ %{buildroot}/%{_datadir}/pixmaps/
|
|
install -D -m 644 Building/Linux/OSCAR.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/com.sleepfiles.OSCAR.png
|
|
install -D -m 644 Building/Linux/OSCAR.png %{buildroot}/%{_datadir}/pixmaps/com.sleepfiles.OSCAR.png
|
|
install -D -m 644 Building/Linux/OSCAR.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/com.sleepfiles.OSCAR.svg
|
|
|
|
cp -dpR build_OSCAR/oscar/{Translations,Html} %{buildroot}%{_datadir}/%{name}/
|
|
|
|
install -D -m 644 Building/Linux/OSCAR.desktop %{buildroot}%{_datadir}/applications/com.sleepfiles.OSCAR.desktop
|
|
desktop-file-edit --set-icon=com.sleepfiles.OSCAR --set-key=Categories --set-value='X-SuSE-Core-Science;Science;MedicalSoftware;' %{buildroot}%{_datadir}/applications/com.sleepfiles.OSCAR.desktop
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/metainfo/
|
|
install -m 644 %{S:1} %{buildroot}/%{_datadir}/metainfo/
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%license COPYING
|
|
%dir %{_datadir}/icons/hicolor/48x48/apps
|
|
%dir %{_datadir}/icons/hicolor/scalable/apps
|
|
%dir %{_datadir}/icons/hicolor/48x48
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/applications/*
|
|
%dir %{_datadir}/metainfo
|
|
%{_datadir}/metainfo/*
|
|
%{_datadir}/%{name}
|
|
%{_bindir}/*
|
|
|
|
%changelog
|