%undefine __cmake_in_source_build %global version_major 2 %global version_minor 0 %global version_micro 0 Name: sdbus-cpp Version: %{version_major}.%{version_minor}.%{version_micro} Release: 1.git.443.cb14559%{?dist} Summary: High-level C++ D-Bus library License: LGPL-2.1-only URL: https://github.com/Kistler-Group/sdbus-cpp Source0: sdbus-cpp-git-443.cb14559.tar.gz BuildRequires: cmake >= 3.12 BuildRequires: gcc-c++ BuildRequires: pkgconfig(libsystemd) >= 236 BuildRequires: pkgconfig(gmock) >= 1.10.0 %description High-level C++ D-Bus library for Linux designed to provide easy-to-use yet powerful API in modern C++ %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %package devel-doc Summary: Developer documentation for %{name} BuildArch: noarch BuildRequires: doxygen %description devel-doc Developer documentation for %{name} %package tools Summary: Stub code generator for sdbus-c++ Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: pkgconfig(expat) Obsoletes: %{name}-xml2cpp < %{version}-%{release} %description tools The stub code generator for generating the adapter and proxy interfaces out of the D-Bus IDL XML description. %prep %autosetup -p1 -n sdbus-cpp-git-443.cb14559 -p1 %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DSDBUSCPP_BUILD_DOCS=ON \ -DSDBUSCPP_BUILD_DOXYGEN_DOCS=ON \ -DSDBUSCPP_BUILD_CODEGEN=ON \ -DSDBUSCPP_BUILD_TESTS=ON %cmake_build %cmake_build --target doc %check %ctest -E "sdbus-c\+\+-integration-tests" %install %cmake_install %files %license %{_docdir}/sdbus-c++/COPYING %dir %{_docdir}/sdbus-c++ %doc %{_docdir}/sdbus-c++/AUTHORS %doc %{_docdir}/sdbus-c++/ChangeLog %doc %{_docdir}/sdbus-c++/NEWS %doc %{_docdir}/sdbus-c++/README %{_libdir}/libsdbus-c++.so.%{version_major} %{_libdir}/libsdbus-c++.so.%{version} # do not install test binaries and configuration %exclude %{_sysconfdir}/dbus-1/system.d/org.sdbuscpp.integrationtests.conf %exclude %{_prefix}/lib/debug/usr/tests/sdbus-c++ %exclude %{_prefix}/tests/sdbus-c++ %files devel %{_libdir}/pkgconfig/sdbus-c++.pc %{_libdir}/pkgconfig/sdbus-c++-tools.pc %{_libdir}/libsdbus-c++.so %{_includedir}/* %dir %{_libdir}/cmake/sdbus-c++ %{_libdir}/cmake/sdbus-c++/*.cmake %files devel-doc %dir %{_docdir}/sdbus-c++ %doc %{_docdir}/sdbus-c++/* %files tools %{_bindir}/sdbus-c++-xml2cpp %dir %{_libdir}/cmake/sdbus-c++-tools %{_libdir}/cmake/sdbus-c++-tools/*.cmake %changelog * Fri May 10 2024 Marek Blaha - 2.0.0-1 - Upgrade to release 2.0.0 * Tue Mar 12 2024 Marek Blaha - 1.5.0-2 - Invoke unit tests after the build * Mon Feb 26 2024 Marek Blaha - 1.5.0-1 - Update to release 1.5.0 * Sat Jan 27 2024 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Oct 11 2023 Marek Blaha - 1.4.0-1 - Update to release 1.4.0 * Tue Sep 12 2023 Neal Gompa - 1.3.0-2 - Move sdbus-c++ CMake module to devel package * Mon Aug 21 2023 Marek Blaha - 1.3.0-1 - Update to release 1.3.0 * Sat Jul 22 2023 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Mar 30 2023 Marek Blaha - 1.2.0-3 - migrated to SPDX license * Sat Jan 21 2023 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 10 2022 Marek Blaha - 1.2.0-1 - Update to release 1.2.0 * Sat Jul 23 2022 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 04 2022 Marek Blaha - 1.1.0-1 - Update to release 1.1.0 * Tue Oct 26 2021 Marek Blaha - 1.0.0-1 - Update to release 1.0.0 - Change source tarball name to -.tar.gz * Tue Oct 19 2021 Marek Blaha - 0.9.0-1 - Update to release 0.9.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 17 2020 Marek Blaha - 0.8.3-1 - Update to release 0.8.3 * Tue Oct 06 2020 Marek Blaha - 0.8.1-5 - Switch from make_build to cmake_build * Tue Sep 22 2020 Jeff Law - 0.8.1-4 - Use cmake_in_source_build to fix FTBFS due to recent cmake macro changes * Sat Aug 01 2020 Fedora Release Engineering - 0.8.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Feb 7 2020 Marek Blaha - 0.8.1-1 - Update to release 0.8.1 * Fri Jan 24 2020 Marek Blaha - 0.7.8-1 - Initial release 0.7.8