%if %{?mkrel:0}%{?!mkrel:1} %define mkrel(c:) %{-c: 0.%{-c*}.}%{1}%{?subrel:.%subrel}%{?dist:%dist} %endif %if %{?mklibname:0}%{?!mklibname:1} %define mklibname(ds) %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel} %endif %global version_major 1 %global version_minor 3 %global version_micro 0 %global libname %mklibname sdbus-c++ %{version_major} %global devname %mklibname sdbus-c++ -d %global devdocname libsdbus-c++-devel-doc Name: sdbus-cpp Version: %{version_major}.%{version_minor}.%{version_micro} Release: %mkrel 2 Summary: High-level C++ D-Bus library Group: System/Libraries License: LGPL-2.1-only URL: https://github.com/Kistler-Group/sdbus-cpp Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake >= 3.12 BuildRequires: gcc-c++ BuildRequires: pkgconfig(libsystemd) >= 236 %description High-level C++ D-Bus library for Linux designed to provide easy-to-use yet powerful API in modern C++ %package -n %{libname} Summary: High-level C++ D-Bus library Group: System/Libraries %description -n %{libname} High-level C++ D-Bus library for Linux designed to provide easy-to-use yet powerful API in modern C++ %package -n %{devname} Summary: Development files for %{name} Group: Development/C++ Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-devel%{?_isa} = %{version}-%{release} Requires: %{libname}%{?_isa} = %{version}-%{release} %description -n %{devname} Development files for %{name}. %package -n %{devdocname} Summary: Developer documentation for %{name} Group: Development/C++ BuildArch: noarch BuildRequires: doxygen Provides: %{name}-devel-doc = %{version}-%{release} %description -n %{devdocname} Developer documentation for %{name} %package tools Summary: Stub code generator for sdbus-c++ Group: Development/C++ Provides: sdbus-c++-tools = %{version}-%{release} Provides: sdbus-c++-tools%{?_isa} = %{version}-%{release} Requires: %{libname}%{?_isa} = %{version}-%{release} BuildRequires: pkgconfig(expat) %description tools The stub code generator for generating the adapter and proxy interfaces out of the D-Bus IDL XML description. %prep %autosetup -p1 %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_CODE_GEN=ON \ -DBUILD_DOXYGEN_DOC=ON %cmake_build %cmake_build --target doc %install %cmake_install %files -n %{libname} %license %{_docdir}/sdbus-c++/COPYING %dir %{_docdir}/sdbus-c++ %{_libdir}/libsdbus-c++.so.%{version_major} %{_libdir}/libsdbus-c++.so.%{version} %files -n %{devname} %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}/pkgconfig/sdbus-c++.pc %{_libdir}/pkgconfig/sdbus-c++-tools.pc %{_libdir}/libsdbus-c++.so %{_libdir}/cmake/sdbus-c++/ %{_includedir}/* %files -n %{devdocname} %dir %{_docdir}/sdbus-c++ %doc %{_docdir}/sdbus-c++/* %files tools %{_bindir}/sdbus-c++-xml2cpp %{_libdir}/cmake/sdbus-c++-tools/ %changelog * Tue Sep 12 2023 Neal Gompa 1.3.0-2.mga10 + Revision: 1986353 - Adapt for Mageia - imported package sdbus-cpp * 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