Colin Walters 0dc8783
%bcond_without ecore
Colin Walters 0dc8783
e3e0220
Name:          dbus-c++
e3e0220
Version:       0.9.0
3307486
Release:       32%{?dist}
e3e0220
Summary:       Native C++ bindings for D-Bus
a662d1d
e3e0220
License:       LGPLv2+
e3e0220
URL:           http://sourceforge.net/projects/dbus-cplusplus/
e3e0220
Source0:       http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz
a662d1d
a662d1d
Patch1: dbus-c++-gcc4.7.patch
a662d1d
Patch2: dbus-c++-linkfix.patch
6c4d603
# Fix collision between macro bind_property in dbus-c++/interface.h and method
6c4d603
# bind_property in glibmm/binding.h
6c4d603
Patch3: dbus-c++-macro_collision.patch
19fb36c
# Remove broken classes for multithreading support
19fb36c
# https://sourceforge.net/p/dbus-cplusplus/patches/18/
19fb36c
Patch4: dbus-c++-threading.patch
ce6494e
# https://sourceforge.net/p/dbus-cplusplus/patches/19/
ce6494e
Patch5: dbus-c++-writechar.patch
d3f0d8b
# Fix template/operator issues
d3f0d8b
# https://github.com/pkgw/dbus-cplusplus/commit/a0b9ef3b469ca23c6a3229d8abb967cbbddcee38
d3f0d8b
Patch6: dbus-c++-template-operators.patch
a662d1d
afc34ac
BuildRequires:  gcc
afc34ac
BuildRequires:  gcc-c++
a662d1d
BuildRequires: dbus-devel
a662d1d
BuildRequires: glib2-devel
a662d1d
BuildRequires: gtkmm24-devel
a662d1d
BuildRequires: autoconf automake libtool
a662d1d
BuildRequires: expat-devel
Colin Walters 0dc8783
%if %{with ecore}
a662d1d
BuildRequires: ecore-devel
Colin Walters 0dc8783
%endif
8cce49e
BuildRequires: make
5fddc33
5fddc33
%description
a662d1d
dbus-c++ attempts to provide a C++ API for D-Bus.
Colin Walters 0dc8783
Subpackages are provided with mainloop integration.
a662d1d
Colin Walters 0dc8783
%if %{with ecore}
e3e0220
%package       ecore
e3e0220
Summary:       Ecore library for %{name}
e3e0220
Requires:      %{name}%{?_isa} = %{version}-%{release}
e3e0220
%description   ecore
e3e0220
This package contains the ecore mainloop library for %{name}
Colin Walters 0dc8783
%endif
e3e0220
e3e0220
%package       glib
e3e0220
Summary:       GLib library for %{name}
e3e0220
Requires:      %{name}%{?_isa} = %{version}-%{release}
e3e0220
%description   glib
e3e0220
This package contains the GLib mainloop library for %{name}
e3e0220
e3e0220
%package       devel
e3e0220
Summary:       Development files for %{name}
e3e0220
Requires:      %{name}%{?_isa} = %{version}-%{release}
e3e0220
Requires:      pkgconfig
e3e0220
%description   devel
a662d1d
This package contains libraries and header files for
5fddc33
developing applications that use %{name}.
5fddc33
5fddc33
5fddc33
%prep
a662d1d
%setup -q -n lib%{name}-%{version}
e3e0220
sed -i 's/\r//' AUTHORS
e3e0220
sed -i 's/libtoolize --force --copy/libtoolize -if --copy/' bootstrap
a662d1d
%patch1 -p1 -b .gcc47
a662d1d
%patch2 -p1 -b .linkfix
6c4d603
%patch3 -p1 -b .collision
19fb36c
%patch4 -p1 -b .threading
ce6494e
%patch5 -p1 -b .writechar
d3f0d8b
%patch6 -p1 -b .template-operators
5fddc33
5fddc33
%build
Colin Walters 0dc8783
autoreconf -vfi
7fc19e5
export CPPFLAGS='%{optflags}' CXXFLAGS='--std=gnu++11 %{optflags}'
Colin Walters 0dc8783
%configure --disable-static --disable-tests \
Colin Walters 0dc8783
%if %{without ecore}
Colin Walters 0dc8783
           --disable-ecore
afc34ac
%else
afc34ac
  ;
Colin Walters 0dc8783
%endif
afc34ac
%make_build
5fddc33
5fddc33
%install
afc34ac
%make_install
afc34ac
find $RPM_BUILD_ROOT -name '*.la' -print -delete
5fddc33
afc34ac
%ldconfig_scriptlets
5fddc33
5fddc33
5fddc33
%files
e3e0220
%license COPYING
e3e0220
%doc AUTHORS
5fddc33
%{_bindir}/dbusxx-introspect
5fddc33
%{_bindir}/dbusxx-xml2cpp
e3e0220
%{_libdir}/libdbus-c++-1.so.0*
e3e0220
Colin Walters 0dc8783
%if %{with ecore}
e3e0220
%files ecore
e3e0220
%{_libdir}/libdbus-c++-ecore-1.so.0*
Colin Walters 0dc8783
%endif
e3e0220
e3e0220
%files glib
e3e0220
%{_libdir}/libdbus-c++-glib-1.so.0*
5fddc33
5fddc33
%files devel
5fddc33
%doc TODO
5fddc33
%{_includedir}/*
5fddc33
%{_libdir}/*.so
5fddc33
%{_libdir}/pkgconfig/*
5fddc33
5fddc33
%changelog
3307486
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-32
3307486
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3307486
dddf289
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-31
dddf289
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
dddf289
8b35ec8
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-30
8b35ec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8b35ec8
9f515ac
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-29
9f515ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
9f515ac
b8a6038
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-28
b8a6038
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b8a6038
d3f0d8b
* Wed Mar 23 2022 Nils Philippsen <nils@tiptoe.de> - 0.9.0-27
d3f0d8b
- Fix FTBFS on Fedora >= 36 (#2045301)
d3f0d8b
1da8786
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-26
1da8786
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1da8786
adf6ef5
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-25
adf6ef5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
adf6ef5
4060e1b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-24
4060e1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4060e1b
936001f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-23
936001f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
936001f
4a216a0
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-22
4a216a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4a216a0
a97de66
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-21
a97de66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a97de66
6cd2330
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-20
6cd2330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6cd2330
2408eb7
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.9.0-19
2408eb7
- Rebuild with fixed binutils
2408eb7
d558e01
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-18
d558e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d558e01
Colin Walters a8c9921
* Thu Mar 15 2018 Colin Walters <walters@verbum.org> - 0.9.0-17
Colin Walters a8c9921
- Add a bcond for ecore, some downstream distributions may not want it
Colin Walters a8c9921
e0c4744
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-16
e0c4744
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e0c4744
9875e20
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-15
9875e20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9875e20
071a1a7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-14
071a1a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
071a1a7
19fb36c
* Thu Feb 16 2017 Jonathan Wakely <jwakely@redhat.com> - 0.9.0-13
19fb36c
- Remove broken multi-threading support that doesn't build with GCC 7
19fb36c
57cb103
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-12
57cb103
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
57cb103
5a0269e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-11
5a0269e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5a0269e
7fc19e5
* Thu Jan 14 2016 Lubomir Rintel <lkundrak@v3.sk> - 0.9.0-10
7fc19e5
- Fix FTBFS
7fc19e5
cc3c96b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-9
cc3c96b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cc3c96b
e3e0220
* Thu May  7 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.0-8
e3e0220
- Split ecore/glib mainloop out to subpackage to reduce deps
e3e0220
- Use %%license
e3e0220
affde9d
* Sun Apr 19 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.0-7
affde9d
- Rebuilt with gcc5 once again
affde9d
6c4d603
* Thu Mar 05 2015 Sandro Mani <manisandro@gmail.com> - 0.9.0-6
6c4d603
- Add patch to fix macro macro collision (#1187045)
6c4d603
0da7d92
* Fri Feb 27 2015 Adel Gadllah <adel.gadllah@gmail.com> - 0.9.0-5
0da7d92
- Rebuilt with gcc5
0da7d92
452bcec
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
452bcec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
452bcec
12739fa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
12739fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
12739fa
b1f6660
* Wed Feb 26 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9.0-2
b1f6660
- fix bootstrap script for ppc64le (#1070306)
b1f6660
a662d1d
* Tue Dec 17 2013 Jiri Popelka <jpopelka@redhat.com> - 0.9.0-1
a662d1d
- 0.9.0
a662d1d
daff7f0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.17.20090203git13281b3
daff7f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
daff7f0
83cf840
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.16.20090203git13281b3
83cf840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
83cf840
30cafcd
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.15.20090203git13281b3
30cafcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30cafcd
66ef952
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.14.20090203git13281b3
66ef952
- Rebuilt for c++ ABI breakage
66ef952
0b6e481
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.13.20090203git13281b3
0b6e481
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0b6e481
16f5e9a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.12.20090203git13281b3
16f5e9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
16f5e9a
ebae2fa
* Sat Feb 13 2010 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.11.20090203git13281b3
ebae2fa
- Fix FTBS (RH #565052)
ebae2fa
aae0227
* Fri Jul 31 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.10.20090203git13281b3
aae0227
- Fix build
aae0227
608d5b5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.9.20090203git13281b3
608d5b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
608d5b5
b09f0fe
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.8.20090203git13281b3
b09f0fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b09f0fe
8a7e37d
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.7.20090203git13281b3
8a7e37d
- bump..
8a7e37d
c3843b8
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.6.20090203git13281b3
c3843b8
- Fix build with new gcc
c3843b8
3ec9f2e
* Wed Feb 18 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.5.20090203git13281b3
3ec9f2e
- Add the ability to get the senders unix userid (Patch by Jiri Moskovcak)
3ec9f2e
f7ea85d
* Tue Feb 03 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.4.20090203git13281b3
f7ea85d
- Update to new git snapshot
f7ea85d
- Should fix RH #483418
f7ea85d
5fddc33
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.3.20080716git1337c65
5fddc33
- Generate tarball with git-archive
5fddc33
- Fix cflags
5fddc33
5fddc33
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.2.20080716git1337c65
5fddc33
- Add commit id to version
5fddc33
5fddc33
* Wed Jul 16 2008 Adel Gadllah <adel.gadllah@gmail.com> - 0.5.0-0.1.20080716git
5fddc33
- Initial package