Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

libmosquitto-dcdb-1.5.5.spec 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Name: libmosquitto-dcdb
Summary: Mosquitto library patched for DCDB
Group: System Environment/Libraries
Version: 1.5.5
Release: 1

License: BSD
URL: http://mosquitto.org/
Source: http://mosquitto.org/files/source/mosquitto-%{version}.tar.gz
Patch: mosquitto-%{version}.patch
Packager: DCDB project <info@dcdb.it>

Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc-c++
BuildRequires: openssl-devel
16 17
Conflicts: mosquitto
Conflicts: mosquitto-devel
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

%description
Mosquitto is an open source implementation of the MQ Telemetry Transport 
protocol version 3.1 and 3.1.1. MQTT provides a lightweight method of carrying 
out messaging using a publish/subscribe model. This package provides 
libmosquitto.so but patched the original sources for better integration with
DataCenter DataBase (DCDB).

The original sources can be found at 
 http://mosquitto.org/
For more information on the DCDB project visit 
 https://dcdb.it

%prep
%setup -q -n mosquitto-%{version}
# Set the install prefix to $RPM_BUILD_ROOT
sed -i "s|prefix?=/usr/local|prefix?=/usr|" config.mk
%patch -p1

%build
cd lib/
%if 0%{?rhel} == 7
export CFLAGS="%{optflags} -std=gnu99"
%else
export CFLAGS="%{optflags}"
%endif
export LDFLAGS="%{optflags} %{__global_ldflags} -Wl,--as-needed"
make all %{?_smp_mflags} WITH_SHARED_LIBRARIES=yes WITH_STATIC_LIBRARIES=no WITH_STRIP=no

%install
rm -rf $RPM_BUILD_ROOT
%if "%{_lib}" == "lib64"
export LIB_SUFFIX=64
%endif
cd lib/
%make_install

%post -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/*.pc

%changelog
* Thu Jul 04 2019 Micha Mueller <micha.mueller@lrz.de> 1.5.5-1
- Initial release