summaryrefslogtreecommitdiff
path: root/dbus-c++.spec
blob: 09daf391fe096b932f3a8ea46b78c09d37bf5a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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:  expat-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