summaryrefslogtreecommitdiff
path: root/dbus-c++.spec
diff options
context:
space:
mode:
Diffstat (limited to 'dbus-c++.spec')
-rw-r--r--dbus-c++.spec71
1 files changed, 71 insertions, 0 deletions
diff --git a/dbus-c++.spec b/dbus-c++.spec
new file mode 100644
index 0000000..1c7517f
--- /dev/null
+++ b/dbus-c++.spec
@@ -0,0 +1,71 @@
+Name: dbus-c++
+Version: 0.9.0
+Release: 22
+Summary: Native C++ bindings for D-Bus
+License: LGPL-2.1-or-later
+URL: https://sourceforge.net/projects/dbus-cplusplus/
+Source0: https://downloads.sourceforge.net/dbus-cplusplus/libdbus-c++-%{version}.tar.gz
+
+Patch0001: dbus-c++-gcc4.7.patch
+Patch0002: dbus-c++-linkfix.patch
+Patch0003: dbus-c++-macro_collision.patch
+Patch0004: dbus-c++-threading.patch
+Patch0005: dbus-c++-writechar.patch
+Patch0006: dbus-c++-template-operators.patch
+Patch0007: libdbus-c++-0.9.0-link.patch
+
+BuildRequires: make gcc-c++
+BuildRequires: autoconf automake libtool
+BuildRequires: pkgconfig(dbus-1) >= 0.60
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: libexpat-devel
+Provides: %{name}-ecore = %{version}-%{release} %{name}-glib = %{version}-%{release}
+Obsoletes: %{name}-ecore < %{version}-%{release} %{name}-glib < %{version}-%{release}
+
+%description
+dbus-c++ attempts to provide a C++ API for D-BUS. The library has a glib/gtk and an Ecore mainloop
+integration.It also offers an optional own main loop.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains libraries and header files for developing applications that use %{name}.
+
+%prep
+%autosetup -n libdbus-c++-%{version} -p1
+sed -i 's/libtoolize --force --copy/libtoolize -if --copy/' bootstrap
+
+%build
+autoreconf -vfi
+#export CPPFLAGS='-pthread %{optflags}' CXXFLAGS='--std=gnu++11 -pthread %{optflags}'
+%configure --disable-static --enable-ecore --enable-glib
+%make_build
+
+%install
+%make_install
+%delete_la
+
+%files
+%license COPYING
+%doc AUTHORS
+%{_bindir}/dbusxx-*
+%{_libdir}/*.so.*
+
+%files devel
+%doc TODO
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Tue Sep 16 2025 Funda Wang <fundawang@yeah.net> - 0.9.0-22
+- fix build with glib feature
+
+* Thu Jul 13 2023 liyanan <thistleslyn@163.com> - 0.9.0-21
+- fix build error
+
+* Mon Dec 2 2019 lingsheng <lingsheng@huawei.com> - 0.9.0-20
+- Package init