söndag 26 juni 2016

SleepyHead Fedora rpm package

Sleep apnea


It is not so bad getting a diagnosis for sleep apnea. Some people are not even aware of their condition. But it is important to get help, because your health could suffer. Some people might feel a little tired, but other could develop serious illnesses. For more information, see https://en.wikipedia.org/wiki/Sleep_apnea.

CPAP units


So I got this CPAP unit (almost for free because of our Nordic national health insurance). It is locked down, so I can't get any useful data directly out of it. But there is an SD card that is meant to be analyzed by my doctor. And there are free software on the Internet.

SleepyHead


Meet SleepyHead:

http://sleepyhead.jedimark.net

This is a very nice and free (GPL3) cross-platform program. Works in Windows, Mac and Linux.

It is able to import data from an SD card of the most common CPAP units. There is also support for a few pulse oximeters. Below is a screenshot of the welcome screen.


It is important to note that you use this software at your own risk. It is not official medical software and should only be for personal use. See more in the software's disclaimer in the Help menu, About.

Fedora rpm package


There is no rpm package available for Fedora, so I decided to try to build one. Install and use at your own risk. To be on the safe side, use the srpm to build your own package.


To install the software in Fedora 24, download one of the following rpm files:

Fedora 24 64-bit:
sleepyhead-1.0.0-0.3.20160703git0e04bd9.fc24.x86_64.rpm (built from git 2015-07-03 and listed as 1.0.0 Beta 2) - changed 2016-07-04

Fedora 24 32-bit:
sleepyhead-1.0.0-0.3.20160703git0e04bd9.fc24.i686.rpm - changed 2016-07-04

Update: Moved packages to Copr, see next blog post.

Be aware that downloading random rpm packages from the Internet is not a good idea from a security point of view, so you are doing it at your own risk.


To rebuild the package, use the following file:


sleepyhead-1.0.0-0.3.20160703git0e04bd9.fc24.src.rpm - changed 2016-07-04
Update: Moved to Copr, see next blog post.

Building it requires some dependencies, mainly QT5 development libraries and build tools. The spec file has most libraries listed.

I will try to improve the spec if possible and update the packages also. Comments are welcome, I don't have experience creating many rpm packages.


These rpm packages are based on the free and open-source software SleepyHead available from http://sleepyhead.jedimark.net, developed and copyright by Mark Watkins (C) 2011-2016.