2012-03-11 14:16:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package libdbus-c++
|
|
|
|
#
|
2017-03-28 07:31:22 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-11 14:16:47 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-11 16:47:05 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%define _rev e3455d20fc0b6e00bce7668fbd9b165fdc8a7040
|
|
|
|
%define sover 1
|
|
|
|
|
2012-03-11 14:16:47 +00:00
|
|
|
Name: libdbus-c++
|
2017-03-28 14:05:13 +00:00
|
|
|
Version: 0.9.1+git20170322
|
2012-03-19 17:48:23 +00:00
|
|
|
Release: 0
|
2012-03-11 14:16:47 +00:00
|
|
|
Summary: C++ Interface for DBus
|
2012-03-19 17:48:23 +00:00
|
|
|
License: LGPL-2.1+
|
2016-10-18 18:41:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-03-19 17:48:23 +00:00
|
|
|
Url: http://dbus-cplusplus.sourceforge.net/index.html
|
2017-03-28 14:05:13 +00:00
|
|
|
#Source0: http://sourceforge.net/projects/dbus-cplusplus/files/dbus-c%%2B%%2B/%%{version}/%%{name}-%%{version}.tar.gz
|
|
|
|
Source0: https://github.com/andreas-volz/dbus-cplusplus/archive/%{_rev}.tar.gz#/%{name}-%{version}.tar.gz
|
2012-03-13 15:21:45 +00:00
|
|
|
Source1: baselibs.conf
|
2016-10-13 06:50:54 +00:00
|
|
|
# PATCH-FIX-UPSTREAM libdbus-c++-noreturn.patch davejplater@gmail.com -- Fix no return from function
|
2012-03-11 14:16:47 +00:00
|
|
|
Patch0: libdbus-c++-noreturn.patch
|
2016-10-13 06:50:54 +00:00
|
|
|
# PATCH-FIX-UPSTREAM libdbus-c++-pthread.patch davejplater@gmail.com -- Get ffado to build with libdbus-c++
|
2012-03-11 14:16:47 +00:00
|
|
|
Patch1: libdbus-c++-pthread.patch
|
2016-10-13 07:10:19 +00:00
|
|
|
# PATCH-FIX-OPENSUSE libdbus-c++-nodocdatetime.patch davejplater@gmail.com -- No current date / time allowed in docs?
|
2012-03-13 15:21:45 +00:00
|
|
|
Patch2: libdbus-c++-nodocdatetime.patch
|
2015-03-23 12:01:57 +00:00
|
|
|
# PATCH-FIX-UPSTREAM libdbus-c++-glibmm-2.43.patch dimstar@opensuse.org -- Fix build with glibmm2 2.43.x+
|
|
|
|
Patch4: libdbus-c++-glibmm-2.43.patch
|
2017-03-28 07:31:22 +00:00
|
|
|
# PATCH-FIX-UPSTREAM libdbus-c++-gcc7.patch davejplater@gmail.com -- Fix gcc7 build errors
|
|
|
|
Patch5: libdbus-c++-gcc7.patch
|
2017-03-28 14:05:13 +00:00
|
|
|
# PATCH_FIX_OPENSUSE libdbus-c++-sover.patch davejplater@gmail.com -- Prevent errors due to symbol incompatability.
|
|
|
|
Patch6: libdbus-c++-sover.patch
|
2012-03-13 15:21:45 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2017-03-28 07:31:22 +00:00
|
|
|
BuildRequires: graphviz-gnome
|
2012-03-13 15:21:45 +00:00
|
|
|
BuildRequires: gtkmm2-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
2012-03-11 14:16:47 +00:00
|
|
|
# ecore
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-10-18 18:41:37 +00:00
|
|
|
DBus-c++ provides a C++ API for D-BUS. The library has
|
2012-03-11 16:47:05 +00:00
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
|
|
|
optional own main loop.
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%package -n libdbus-c++-1-%{sover}
|
2016-10-18 18:41:37 +00:00
|
|
|
Summary: C++ Interface for D-Bus
|
2012-03-13 15:21:45 +00:00
|
|
|
Group: System/Libraries
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%description -n libdbus-c++-1-%{sover}
|
2016-10-18 18:41:37 +00:00
|
|
|
DBus-c++ provides a C++ API for D-BUS. The library has
|
2012-03-11 16:47:05 +00:00
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
|
|
|
optional own main loop. The libdbus-c++ library.
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%package -n libdbus-c++-glib-1-%{sover}
|
2016-10-18 18:41:37 +00:00
|
|
|
Summary: Glib integration for libdbus-c++
|
2012-03-13 15:21:45 +00:00
|
|
|
Group: System/Libraries
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%description -n libdbus-c++-glib-1-%{sover}
|
2016-10-18 18:41:37 +00:00
|
|
|
DBus-c++ provides a C++ API for D-BUS. The library has
|
2012-03-11 16:47:05 +00:00
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
2012-03-13 15:21:45 +00:00
|
|
|
optional own main loop. The glib libdbus-c++ library.
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%package devel
|
2012-03-11 16:47:05 +00:00
|
|
|
Summary: Development files for libdbus-c++
|
2012-03-13 15:21:45 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-03-28 14:05:13 +00:00
|
|
|
Requires: libdbus-c++-1-%{sover} = %{version}
|
|
|
|
Requires: libdbus-c++-glib-1-%{sover} = %{version}
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%description devel
|
2016-10-18 18:41:37 +00:00
|
|
|
DBus-c++ provides a C++ API for D-BUS. The library has
|
2012-03-11 16:47:05 +00:00
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
2016-10-18 18:41:37 +00:00
|
|
|
optional own main loop.
|
|
|
|
This subpackage contains the files needed for building against
|
|
|
|
libdbus-c++.
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%prep
|
2017-03-28 14:05:13 +00:00
|
|
|
%setup -q -n dbus-cplusplus-%{_rev}
|
|
|
|
#-n dbus-cplusplus-%%{_rev}
|
2012-03-11 14:16:47 +00:00
|
|
|
%patch0
|
|
|
|
%patch1
|
2012-03-13 15:21:45 +00:00
|
|
|
%patch2
|
2015-03-23 12:01:57 +00:00
|
|
|
%patch4 -p1
|
2017-03-28 07:31:22 +00:00
|
|
|
%patch5
|
2017-03-28 14:05:13 +00:00
|
|
|
%patch6
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-28 14:05:13 +00:00
|
|
|
export SOVER="%{sover}:0:0"
|
|
|
|
#%%{sover}
|
2017-03-28 07:31:22 +00:00
|
|
|
# --enable-doxygen-docs -fpermissive
|
2017-03-28 14:05:13 +00:00
|
|
|
./bootstrap
|
2012-03-11 14:16:47 +00:00
|
|
|
#./autogen.sh
|
2017-03-28 07:31:22 +00:00
|
|
|
%if 1 == 0
|
2017-04-12 10:47:57 +00:00
|
|
|
%define gcc_version 7
|
2017-03-28 07:31:22 +00:00
|
|
|
export CC=gcc-7
|
|
|
|
export CPP=cpp-7
|
|
|
|
export CXX=g++-7
|
|
|
|
%endif
|
2012-03-11 14:16:47 +00:00
|
|
|
export LDFLAGS="$LDFLAGS -lexpat -lpthread"
|
2017-04-12 10:47:57 +00:00
|
|
|
%if 0%{?gcc_version} > 5
|
|
|
|
export CXXFLAGS="%{optflags} --std=c++11 -fPIC -Werror=date-time"
|
|
|
|
%else
|
2017-03-28 07:31:22 +00:00
|
|
|
export CXXFLAGS="%{optflags} --std=c++11 -fPIC"
|
2017-04-12 10:47:57 +00:00
|
|
|
%endif
|
2017-03-28 07:31:22 +00:00
|
|
|
%configure --disable-ecore --enable-static=no \
|
2017-03-28 14:05:13 +00:00
|
|
|
--enable-doxygen-docs --enable-tests --enable-examples
|
2017-03-28 07:31:22 +00:00
|
|
|
make %{?_smp_mflags}
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%install
|
2012-03-13 15:21:45 +00:00
|
|
|
%make_install
|
2012-03-11 14:16:47 +00:00
|
|
|
dos2unix -k AUTHORS
|
2012-03-13 15:21:45 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%fdupes -s doc/
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%post -n libdbus-c++-glib-1-%{sover} -p /sbin/ldconfig
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%postun -n libdbus-c++-glib-1-%{sover} -p /sbin/ldconfig
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%post -n libdbus-c++-1-%{sover} -p /sbin/ldconfig
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%postun -n libdbus-c++-1-%{sover} -p /sbin/ldconfig
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%files -n libdbus-c++-1-%{sover}
|
2012-03-11 14:16:47 +00:00
|
|
|
%defattr(755,root,root)
|
2017-03-28 14:05:13 +00:00
|
|
|
%{_libdir}/libdbus-c++-1.so.%{sover}
|
|
|
|
%{_libdir}/libdbus-c++-1.so.%{sover}.0.0
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2017-03-28 14:05:13 +00:00
|
|
|
%files -n libdbus-c++-glib-1-%{sover}
|
2012-03-11 14:16:47 +00:00
|
|
|
%defattr(755,root,root)
|
2017-03-28 14:05:13 +00:00
|
|
|
%{_libdir}/libdbus-c++-glib-1.so.%{sover}
|
|
|
|
%{_libdir}/libdbus-c++-glib-1.so.%{sover}.0.0
|
2012-03-11 14:16:47 +00:00
|
|
|
|
2012-03-13 15:21:45 +00:00
|
|
|
# TODO: Separate the two lib's devel packages. There's only one set of headers though.
|
|
|
|
# FIXME: Every html file contains date and time, must be fixed before docs are included.
|
|
|
|
# FIXME: Add this to %%doc when fixed "doc/html doc/img" maybe a separate doc package.
|
2012-03-11 16:47:05 +00:00
|
|
|
|
2012-03-11 14:16:47 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-03-13 15:21:45 +00:00
|
|
|
%doc AUTHORS COPYING README TODO doc/html doc/img
|
2012-03-11 14:16:47 +00:00
|
|
|
%{_bindir}/dbusxx-xml2cpp
|
|
|
|
%{_bindir}/dbusxx-introspect
|
|
|
|
%{_libdir}/libdbus-c++-1.so
|
|
|
|
%{_libdir}/libdbus-c++-glib-1.so
|
|
|
|
%{_includedir}/dbus-c++-1
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2017-03-28 07:31:22 +00:00
|
|
|
# doc/html doc/img
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%changelog
|