%global cmake_module_ver 2018.02 Name: servus Version: 1.5.2 Release: 4%{?dist} Summary: Zeroconf discovery in C++ # RSA license for the MD5 code which is based on the RSA licensed code # see ACKNOWLEDGEMENTS.txt for details License: LGPLv3 and RSA URL: https://github.com/HBPVIS/Servus Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # https://github.com/HBPVIS/Servus/issues/102 Source1: https://github.com/Eyescale/CMake/archive/refs/tags/%{cmake_module_ver}.tar.gz # https://github.com/HBPVIS/Servus/issues/106 Source2: https://www.gnu.org/licenses/gpl-3.0.txt Source3: https://www.gnu.org/licenses/lgpl-3.0.txt # https://github.com/HBPVIS/Servus/issues/107 Source4: %{name}.desktop BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: avahi-devel BuildRequires: qt5-qtbase-devel BuildRequires: desktop-file-utils Provides: bundled(eyescale-cmake-common) = %{cmake_module_ver} # https://github.com/HBPVIS/Servus/pull/100 Patch0: servus-1.5.2-stdexcept-fix.patch # https://github.com/HBPVIS/Servus/pull/96 Patch1: servus-1.5.2-copy-const-fix.patch # https://github.com/Eyescale/CMake/pull/599 Patch2: servus-1.5.2-libdir-fix.patch %description Servus is a small C++ network utility library that provides a zeroconf API, URI parsing and UUIDs. %package devel Summary: Development files for servus Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for servus. %prep %setup -q -a 1 -n Servus-%{version} mv CMake-%{cmake_module_ver}/* CMake/common/ rm -f CMake-%{cmake_module_ver}/.gitignore rmdir CMake-%{cmake_module_ver} %autopatch -p1 cp -a %{SOURCE2} COPYING cp -a %{SOURCE3} COPYING.LESSER %build %cmake %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE4} # fix the strange versioning, asked upstream, what's the right version # in the meantime I am going with the SONAME as the version pushd %{buildroot}%{_libdir} for f in libServus.so libServusQt.so; do rm -f $f $f.6 mv $f.1.6.0 $f.6.0.0 ln -s $f.6.0.0 $f.6 ln -s $f.6 $f done %check cd %{_vpath_builddir} make test %files %doc AUTHORS.txt LICENSE.txt README.md doc/Changelog.md # https://github.com/HBPVIS/Servus/issues/103 %license COPYING COPYING.LESSER ACKNOWLEDGEMENTS.txt %{_bindir}/servusBrowser %{_libdir}/libServus{,Qt}.so.6* %{_datadir}/applications/servus.desktop %files devel %{_includedir}/%{name} %{_libdir}/*.so %{_datadir}/Servus %changelog * Wed Jul 7 2021 Jaroslav Škarvada - 1.5.2-4 - Updated according to the review Related: rhbz#1972445 * Mon Jul 5 2021 Jaroslav Škarvada - 1.5.2-3 - Updated according to the review Related: rhbz#1972445 * Sun Jun 27 2021 Jaroslav Škarvada - 1.5.2-2 - Updated according to the review Related: rhbz#1972445 * Tue Jun 15 2021 Jaroslav Škarvada - 1.5.2-1 - Initial version