diff --git a/README.md b/README.md index de37586..e322612 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sdbus-cpp +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. + diff --git a/sdbus-cpp.spec b/sdbus-cpp.spec new file mode 100644 index 0000000..c7a1f5a --- /dev/null +++ b/sdbus-cpp.spec @@ -0,0 +1,79 @@ +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 +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 1.5.0-1mamba +- package created using the webbuild interface