libdbus-c__/libdbus-c++.spec

136 lines
3.9 KiB
RPMSpec

#
# 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/
#
Name: libdbus-c++
Version: 0.9.0
Release: 1
Summary: C++ Interface for DBus
Url: http://dbus-cplusplus.sourceforge.net/index.html
License: LGPL-2.1+
Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2
# Fix no return from function
Patch0: libdbus-c++-noreturn.patch
# Get ffado to build
Patch1: libdbus-c++-pthread.patch
BuildRequires: dbus-1-devel gcc-c++ pkgconfig
BuildRequires: autoconf automake libtool
BuildRequires: dbus-1-glib-devel libexpat-devel
BuildRequires: dos2unix doxygen gtkmm2-devel
# ecore
%if 0%{?suse_version} >= 1030
BuildRequires: libexpat-devel
%else
BuildRequires: expat
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%package -n libdbus-c++-1-0
Group: System/Libraries
Summary: The libdbus-c++ library
%description -n libdbus-c++-1-0
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.
%package -n libdbus-c++-glib-1-0
Group: System/Libraries
Summary: Glib for libdbus-c++
%description -n libdbus-c++-glib-1-0
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 glib libdbus-c++ library.
%package devel
Group: Development/Libraries/C and C++
Summary: Development files for libdbus-c++
Requires: libdbus-c++-glib-1-0 = %{version}
Requires: libdbus-c++-1-0 = %{version}
%description devel
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++
%prep
%setup -q
%patch0
%patch1
%build
#./autogen.sh
# FIXME: for some strange reason the 32 bit build needs -lpthread.
%ifarch x86_64
export LDFLAGS="$LDFLAGS -lexpat"
%else
export LDFLAGS="$LDFLAGS -lexpat -lpthread"
%endif
# FIXME: The documentation doesn't build do a manual build if need be.
%configure --disable-ecore --enable-doxygen-docs --enable-static=no
make %{?_smp_flags}
%install
%makeinstall
dos2unix -k AUTHORS
%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
# TODO: Separate the two lib's devel packages. There's only one set of headers.
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%{_bindir}/dbusxx-xml2cpp
%{_bindir}/dbusxx-introspect
%{_libdir}/libdbus-c++-1.so
%{_libdir}/libdbus-c++-1.la
%{_libdir}/libdbus-c++-glib-1.la
%{_libdir}/libdbus-c++-glib-1.so
%{_includedir}/dbus-c++-1
%{_libdir}/pkgconfig/*.pc
%changelog