File tree Expand file tree Collapse file tree 2 files changed +75
-0
lines changed
Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change 1+ VERSION =1.0.0
2+
3+ check :
4+ rpmlint -i dist/paho-cpp.spec
5+
6+ rpm-prep :
7+ mkdir -p ${HOME} /rpmbuild/SOURCES/
8+ tar --transform=" s/\./paho-cpp-${VERSION} /" -cf ${HOME} /rpmbuild/SOURCES/v${VERSION} .tar.gz --exclude=./build.paho.cpp --exclude=.git --exclude=* .bz ./ --gzip
9+
10+ rpm : rpm-prep
11+ rpmbuild -ba dist/paho-cpp.spec
Original file line number Diff line number Diff line change 1+ Summary: MQTT CPP Client
2+ Name: paho-cpp
3+ Version: 1.0.0
4+ Release: 0%{?dist }
5+ License: Eclipse Distribution License 1.0 and Eclipse Public License 1.0
6+ Group: Development/Tools
7+ Source: https://github.com/eclipse/paho.mqtt.cpp/archive/v%{version }.tar.gz
8+ URL: https://eclipse.org/paho/clients/cpp/
9+ BuildRequires: cmake3
10+ BuildRequires: gcc
11+ BuildRequires: graphviz
12+ BuildRequires: doxygen
13+ BuildRequires: openssl-devel
14+ BuildRequires: paho-c-devel
15+ Requires: openssl
16+ Requires: paho-c
17+
18+
19+ %description
20+ The Paho MQTT CPP Client is a fully fledged MQTT client written in ANSI standard C++ 11.
21+
22+
23+ %package devel
24+ Summary: MQTT CPP Client development kit
25+ Group: Development/Libraries
26+ Requires: paho-cpp
27+
28+ %description devel
29+ Development files and samples for the the Paho MQTT CPP Client.
30+
31+
32+ %package devel-docs
33+ Summary: MQTT CPP Client development kit documentation
34+ Group: Development/Libraries
35+
36+ %description devel-docs
37+ Development documentation files for the the Paho MQTT CPP Client.
38+
39+ %prep
40+ %autosetup -n paho-cpp-%{version }
41+
42+ %build
43+ mkdir build.paho.cpp && cd build.paho.cpp
44+ %cmake3 -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=TRUE -DPAHO_BUILD_SAMPLES=TRUE ..
45+ make %{?_smp_mflags }
46+
47+ %install
48+ cd build.paho.cpp
49+ make install DESTDIR=%{buildroot }
50+
51+ %files
52+ %doc edl-v10 epl-v10
53+ %{_libdir }/*
54+
55+ %files devel
56+ %{_bindir }/*
57+ %{_includedir }/*
58+
59+ %files devel-docs
60+ %{_datadir }/*
61+
62+ %changelog
63+ *
Wed Oct 11 2017 Julien Courtat <[email protected] > -
1.0.0 64+ - Initial packaging
You can’t perform that action at this time.
0 commit comments