summaryrefslogtreecommitdiff
path: root/posixsignalmanager.spec
blob: c5f8c7dd9e2e38feef49b200afa32f93b992b1c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%global forgeurl https://github.com/textshell/posixsignalmanager
%global commit e9eb57330d6a9dd921e351f44790cdda38f7d15b
%forgemeta

Name: posixsignalmanager
Version: 0.3
Release: %autorelease
Summary: POSIX signal handling for Qt

License: BSL-1.0
URL: %{forgeurl}
Source0: %{forgesource}

BuildRequires: meson
BuildRequires: gcc-c++
BuildRequires: pkgconfig(catch2)
BuildRequires: pkgconfig(Qt5Core)


%description
Library safe, synchronous and asynchronous handling of POSIX signals for Qt
applications and libraries.


%package devel
Summary: Header files for the PosixSignalManager library
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
%{summary}.


%prep
%forgeautosetup -p1
rm -f tests/catch.hpp


%build
%meson -Dsystem-catch2=enabled
%meson_build


%install
%meson_install


%check
%meson_test


%files
%doc README.md
%license COPYING
%{_libdir}/libposixsignalmanager.so.0a

%files devel
%{_libdir}/libposixsignalmanager.so
%{_libdir}/pkgconfig/PosixSignalManager.pc
%{_includedir}/PosixSignalManager.h


%changelog
%autochangelog