77 lines
2.0 KiB
RPMSpec
77 lines
2.0 KiB
RPMSpec
Name: paho-mqtt-c
|
|
Version: 1.3.13
|
|
Release: 1mamba
|
|
Summary: An Eclipse Paho C client library for MQTT
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://eclipse.github.io/paho.mqtt.c/
|
|
Source: https://github.com/eclipse/paho.mqtt.c.git/v%{version}/paho.mqtt.c-%{version}.tar.bz2
|
|
License: EPL-2.0
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
An Eclipse Paho C client library for MQTT.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: An Eclipse Paho C client library for MQTT
|
|
|
|
%description -n lib%{name}
|
|
An Eclipse Paho C client library for MQTT.
|
|
This package contains shared libraries for %{name}.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n paho.mqtt.c-%{version}
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%cmake_install
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libpaho-mqtt3a.so.*
|
|
%{_libdir}/libpaho-mqtt3c.so.*
|
|
%doc LICENSE
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/MQTTVersion
|
|
%{_includedir}/MQTT*.h
|
|
%{_libdir}/libpaho-mqtt3a.so
|
|
%{_libdir}/libpaho-mqtt3c.so
|
|
%dir %{_docdir}/Eclipse*Paho*C
|
|
%{_docdir}/Eclipse*Paho*C/*
|
|
%dir %{_libdir}/cmake/eclipse-paho-mqtt-c
|
|
%{_libdir}/cmake/eclipse-paho-mqtt-c/eclipse-paho-mqtt*.cmake
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Sun Feb 25 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.13-1mamba
|
|
- package created using the webbuild interface
|