From cbdef9226175bc3c0df07c02d6bb14603f5e1bc6afac959e4abb75f1768cce59 Mon Sep 17 00:00:00 2001 From: Wolfgang Frisch Date: Thu, 13 Feb 2025 16:09:25 +0000 Subject: [PATCH] - Initial package OBS-URL: https://build.opensuse.org/package/show/home:wfrisch:openvpn3/gdbuspp?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + doc_path.patch | 11 ++++++++ gdbuspp-3.tar.gz | 3 +++ gdbuspp.changes | 4 +++ gdbuspp.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 112 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 doc_path.patch create mode 100644 gdbuspp-3.tar.gz create mode 100644 gdbuspp.changes create mode 100644 gdbuspp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/doc_path.patch b/doc_path.patch new file mode 100644 index 0000000..4e12a26 --- /dev/null +++ b/doc_path.patch @@ -0,0 +1,11 @@ +--- gdbuspp-3/meson.build 2024-11-19 21:16:24.000000000 +0100 ++++ gdbuspp-3-patched/meson.build 2025-02-13 16:22:50.023533047 +0100 +@@ -156,7 +156,7 @@ + # + install_data( + 'README.md', +- install_dir: get_option('datadir') / 'doc/gdbuspp', ++ install_dir: get_option('datadir') / 'doc/packages/gdbuspp-devel', + install_mode: 'rw-r--r--', + sources: [ + 'docs/dbus-primer.md', diff --git a/gdbuspp-3.tar.gz b/gdbuspp-3.tar.gz new file mode 100644 index 0000000..6f7ee85 --- /dev/null +++ b/gdbuspp-3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b6398ce0a5256d9a1ca321cae8f0126e0f2cc53f0ee02200103e2495398b09c +size 160611 diff --git a/gdbuspp.changes b/gdbuspp.changes new file mode 100644 index 0000000..9bdbae7 --- /dev/null +++ b/gdbuspp.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Feb 13 15:33:04 UTC 2025 - Wolfgang Frisch + +- Initial package diff --git a/gdbuspp.spec b/gdbuspp.spec new file mode 100644 index 0000000..e741782 --- /dev/null +++ b/gdbuspp.spec @@ -0,0 +1,70 @@ +# +# spec file for package gdbuspp +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: gdbuspp +Version: 3 +Release: 0 +Summary: Glib2 D-Bus wrapper for C++ +License: AGPL-3.0-only +URL: https://codeberg.org/OpenVPN/gdbuspp +Source0: %{name}-%{version}.tar.gz +Patch0: doc_path.patch +BuildRequires: gcc-c++ +BuildRequires: meson +BuildRequires: cmake +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(glib-2.0) + +%description +This library provides a simpler C++ based interface to implement D-Bus into +applications in a more C++ approach, based on the C++17 standard. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install +find %{buildroot} -name "*.a" -print +find %{buildroot} -name "*.a" -print -delete + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%{_libdir}/*.so.* + +%files devel +%doc README.md dbus-primer.md example-proxy.cpp example-proxy2.cpp example-service.cpp +%{_libdir}/pkgconfig/%{name}.pc + +%{_includedir}/* +%{_libdir}/*.so + +%changelog