2012-03-11 14:16:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package libdbus-c++
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2012-03-11 14:16:47 +00:00
|
|
|
Name: libdbus-c++
|
|
|
|
Version: 0.9.0
|
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+
|
2012-03-11 14:16:47 +00:00
|
|
|
Group: System/Libraries
|
2012-03-19 17:48:23 +00:00
|
|
|
Url: http://dbus-cplusplus.sourceforge.net/index.html
|
2012-03-11 14:16:47 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2012-03-13 15:21:45 +00:00
|
|
|
Source1: baselibs.conf
|
2012-03-11 14:16:47 +00:00
|
|
|
# Fix no return from function
|
|
|
|
Patch0: libdbus-c++-noreturn.patch
|
2012-03-13 15:21:45 +00:00
|
|
|
# Get ffado to build with libdbus-c++
|
2012-03-11 14:16:47 +00:00
|
|
|
Patch1: libdbus-c++-pthread.patch
|
2012-03-13 15:21:45 +00:00
|
|
|
# No current date / time allowed in docs?
|
|
|
|
Patch2: libdbus-c++-nodocdatetime.patch
|
2012-03-19 17:48:23 +00:00
|
|
|
# Fix gcc47 build errors
|
|
|
|
Patch3: libdbus-c++-gcc47.patch
|
2012-03-13 15:21:45 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: graphviz
|
|
|
|
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
|
|
|
|
%if 0%{?suse_version} >= 1030
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
%else
|
2012-03-11 16:47:05 +00:00
|
|
|
BuildRequires: expat
|
2012-03-11 14:16:47 +00:00
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2012-03-11 16:47:05 +00:00
|
|
|
DBus-c++ attempts to provide a C++ API for D-BUS. The library has
|
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
|
|
|
optional own main loop.
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%package -n libdbus-c++-1-0
|
2012-03-11 16:47:05 +00:00
|
|
|
Summary: The libdbus-c++ library
|
2012-03-13 15:21:45 +00:00
|
|
|
Group: System/Libraries
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%description -n libdbus-c++-1-0
|
2012-03-11 16:47:05 +00:00
|
|
|
DBus-c++ attempts to provide a C++ API for D-BUS. The library has
|
|
|
|
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
|
|
|
|
|
|
|
%package -n libdbus-c++-glib-1-0
|
|
|
|
Summary: Glib for libdbus-c++
|
2012-03-13 15:21:45 +00:00
|
|
|
Group: System/Libraries
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%description -n libdbus-c++-glib-1-0
|
2012-03-11 16:47:05 +00:00
|
|
|
DBus-c++ attempts to provide a C++ API for D-BUS. The library has
|
|
|
|
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++
|
2012-03-11 14:16:47 +00:00
|
|
|
Requires: libdbus-c++-1-0 = %{version}
|
2012-03-13 15:21:45 +00:00
|
|
|
Requires: libdbus-c++-glib-1-0 = %{version}
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%description devel
|
2012-03-11 16:47:05 +00:00
|
|
|
DBus-c++ attempts to provide a C++ API for D-BUS. The library has
|
|
|
|
a glib and an ecore mainloop integration. It also offers an
|
|
|
|
optional own main loop. Files for building against libdbus-c++
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch1
|
2012-03-13 15:21:45 +00:00
|
|
|
%patch2
|
2012-03-19 17:48:23 +00:00
|
|
|
%patch3
|
2012-03-11 14:16:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
#./autogen.sh
|
2012-03-11 16:47:05 +00:00
|
|
|
# FIXME: for some strange reason the 32 bit build needs -lpthread.
|
2012-03-11 14:16:47 +00:00
|
|
|
%ifarch x86_64
|
|
|
|
export LDFLAGS="$LDFLAGS -lexpat"
|
|
|
|
%else
|
|
|
|
export LDFLAGS="$LDFLAGS -lexpat -lpthread"
|
|
|
|
%endif
|
2012-03-13 15:21:45 +00:00
|
|
|
|
2012-03-11 14:16:47 +00:00
|
|
|
%configure --disable-ecore --enable-doxygen-docs --enable-static=no
|
|
|
|
make %{?_smp_flags}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%post -n libdbus-c++-glib-1-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdbus-c++-glib-1-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libdbus-c++-1-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdbus-c++-1-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libdbus-c++-1-0
|
|
|
|
%defattr(755,root,root)
|
|
|
|
%{_libdir}/libdbus-c++-1.so.0
|
|
|
|
%{_libdir}/libdbus-c++-1.so.0.0.0
|
|
|
|
|
|
|
|
%files -n libdbus-c++-glib-1-0
|
|
|
|
%defattr(755,root,root)
|
|
|
|
%{_libdir}/libdbus-c++-glib-1.so.0
|
|
|
|
%{_libdir}/libdbus-c++-glib-1.so.0.0.0
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%changelog
|