sdbus-cpp/sdbus-cpp.spec

80 lines
2.5 KiB
RPMSpec

Name: sdbus-cpp
Version: 1.5.0
Release: 1mamba
Summary: A high-level C++ D-Bus library for Linux designed to provide expressive, easy-to-use API in modern C++
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/Kistler-Group/sdbus-cpp
Source: https://github.com/Kistler-Group/sdbus-cpp.git/v%{version}/sdbus-cpp-%{version}.tar.bz2
License: LGPL-2.1
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libsystemd-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
sdbus-c++ is a high-level C++ D-Bus library for Linux designed to provide expressive, easy-to-use API in modern C++. It adds another layer of abstraction on top of sd-bus, a nice, fresh C D-Bus implementation by systemd.
%package -n lib%{name}
Group: System/Libraries
Summary: A high-level C++ D-Bus library for Linux designed to provide expressive, easy-to-use API in modern C++
%description -n lib%{name}
sdbus-c++ is a high-level C++ D-Bus library for Linux designed to provide expressive, easy-to-use API in modern C++. It adds another layer of abstraction on top of sd-bus, a nice, fresh C D-Bus implementation by systemd.
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
%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}/libsdbus-c++.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/sdbus-c++
%{_includedir}/sdbus-c++/*
%{_libdir}/libsdbus-c++.so
%dir %{_libdir}/cmake/sdbus-c++
%{_libdir}/cmake/sdbus-c++/sdbus-c++*.cmake
%{_libdir}/pkgconfig/sdbus-c++.pc
%dir %{_docdir}/sdbus-c++
%{_docdir}/sdbus-c++/*
%doc ChangeLog NEWS README README.md
%changelog
* Sat May 25 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1mamba
- package created using the webbuild interface