-
Notifications
You must be signed in to change notification settings - Fork 3
/
streamdeckpp.spec.in
92 lines (73 loc) · 2.38 KB
/
streamdeckpp.spec.in
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Summary: C++ Library to interface with StreamDeck devices
Name: streamdeckpp
Version: @VERSION@
Release: 1
URL: https://github.com/drepper/streamdeckpp
Source: https://github.com/drepper/streamdeckpp/archive/streamdeckpp-@VERSION@.tar.xz
License: LGPLv2
%define abi @ABI@
Requires: libstdc++
Requires: hidapi
Requires: ImageMagick-c++
BuildRequires: pkgconf-pkg-config
BuildRequires: hidapi-devel
BuildRequires: ImageMagick-c++-devel
BuildRequires: gawk
BuildRequires: gcc-c++ >= 10.1
%description
This library provides a C++ interface to StreamDeck devices. It allows to
change the state of the device (including setting the images for the buttons)
and query the current state of the buttons.
%package devel
Summary: Files needed for development with streamdeckpp
License: LGPLv2
Requires: streamdeckpp = %{version}-%{release}
Requires: hidapi-devel
Requires: ImageMagick-c++-devel
%description devel
The streamdeckpp-devel package contains the files to develop code using the
library.
%package static
Summary: Static archive of streamdeckpp
License: LGPLv2
Requires: streamdeckpp-devel = %{version}-%{release}
%description static
The streamdeckpp-static package contains the static archive of the library.
%prep
%setup -q
%build
make OPTS="${RPM_OPT_FLAGS}"
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.md
%{_libdir}/libstreamdeckpp-%{version}.so
%{_libdir}/libstreamdeckpp.so.%{abi}
%files devel
%defattr(-,root,root)
%{_includedir}/streamdeckpp-%{version}
%{_includedir}/streamdeckpp-%{version}/streamdeckpp.hh
%{_libdir}/libstreamdeckpp.so
%{_libdir}/pkgconfig/streamdeckpp.pc
%files static
%defattr(-,root,root)
%{_libdir}/libstreamdeckpp.a
%changelog
* Fri Feb 26 2021 Ulrich Drepper <drepper@gmail.com> 1.8-1
- HID read can return empty
* Mon Feb 22 2021 Ulrich Drepper <drepper@gmail.com> 1.7-1
- add interfaces to register image and use them
* Fri Feb 12 2021 Ulrich Drepper <drepper@gmail.com> 1.5-1
- add set_key_image(key, const Magick::Image&) interface
* Sat Feb 6 2021 Ulrich Drepper <drepper@gmail.com> 1.4-3
- add interface to set key image for Magick::Image
- versioning of DSO interface
* Tue Sep 15 2020 Ulrich Drepper <drepper@gmail.com> 1.0-4
- remove parameter of context constructor
* Thu May 28 2020 Ulrich Drepper <drepper@gmail.com> 1.0-1
- First release