-
Notifications
You must be signed in to change notification settings - Fork 471
Expand file tree
/
Copy pathpaho-cpp.spec
More file actions
83 lines (64 loc) · 2.43 KB
/
Copy pathpaho-cpp.spec
File metadata and controls
83 lines (64 loc) · 2.43 KB
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
Summary: MQTT CPP Client
Name: paho-cpp
Version: 1.6.0
Release: 0%{?dist}
License: Eclipse Eclipse Public License 2.0 and Distribution License 1.0
Group: Development/Tools
Source: https://github.com/eclipse/paho.mqtt.cpp/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://eclipse.org/paho/clients/cpp/
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: doxygen
BuildRequires: openssl-devel
BuildRequires: paho-c-devel
Requires: openssl
Requires: paho-c >= 1.3.16
%description
The Paho MQTT CPP Client is a full MQTT client written in ANSI standard C++ 17.
%package devel
Summary: MQTT CPP Client development kit
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for the the Paho MQTT CPP Client.
%package devel-docs
Summary: MQTT CPP Client development kit documentation
BuildArch: noarch
%description devel-docs
Development documentation and code samples for the the Paho MQTT CPP Client.
%prep
%autosetup -n paho.mqtt.cpp-%{version}
sed -i'' 's|lib/cmake|%{_lib}/cmake|' cmake/CMakeLists.txt
%build
mkdir build.paho.cpp && cd build.paho.cpp
%cmake3 -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=TRUE -DPAHO_BUILD_EXAMPLES=TRUE ..
make %{?_smp_mflags}
%install
%cmake_install
mkdir -p %{buildroot}%{_docdir}/%{name}/samples/
# put the samples into the documentation directory
cp -a src/samples/*.cpp %{buildroot}%{_docdir}/%{name}/samples/
# Put paho html docs in a paho subdirectory
mv %{buildroot}%{_docdir}/html %{buildroot}%{_docdir}/%{name}/html
%files
%doc edl-v10 epl-v20
%{_libdir}/*
%files devel
%license edl-v10 epl-v10
%{_includedir}/mqtt
%{_libdir}/libpaho-mqttpp3.so
%{_libdir}/cmake/PahoMqttCpp
%files devel-docs
%license edl-v10 epl-v10
%doc CHANGELOG.md CONTRIBUTING.md README.md
%doc %{_docdir}/%{name}
%changelog
* Thu Jun 03 2021 Joshua Clayton <joshua.clayton@3deolidar.com> - 1.2.0
- Update for version 1.2.0
- Fix many details for inclusion in fedora
* Tue Dec 08 2020 Joshua Clayton <joshua.clayton@3deolidar.com> - 1.1
- Update and patch for 1.1
- Put the html documenation into an appropriate paho-cpp directory
- instead of compiling the samples, put the cpp files in with documentation
* Wed Oct 11 2017 Julien Courtat <julien.courtat@aqsacom.com> - 1.0.0
- Initial packaging