[packages/dbus-c++] - new, based on fedora
baggins
baggins at pld-linux.org
Tue Jan 28 02:04:31 CET 2014
commit ea2f80572e4f9e117fa34f21a046a9146d01e534
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Jan 28 02:04:13 2014 +0100
- new, based on fedora
dbus-c++-gcc4.7.patch | 12 ++++++++
dbus-c++-linkfix.patch | 12 ++++++++
dbus-c++.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 101 insertions(+)
---
diff --git a/dbus-c++.spec b/dbus-c++.spec
new file mode 100644
index 0000000..543b1a1
--- /dev/null
+++ b/dbus-c++.spec
@@ -0,0 +1,77 @@
+Summary: Native C++ bindings for D-Bus
+Name: dbus-c++
+Version: 0.9.0
+Release: 0.1
+License: LGPL v2+
+Group: Libraries
+URL: http://sourceforge.net/projects/dbus-cplusplus/
+Source0: http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz
+Patch1: %{name}-gcc4.7.patch
+Patch2: %{name}-linkfix.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: dbus-devel
+BuildRequires: ecore-devel
+BuildRequires: expat-devel
+BuildRequires: glib2-devel
+BuildRequires: gtkmm-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+dbus-c++ attempts to provide a C++ API for D-Bus. The library has a
+glib/gtk and an Ecore mainloop integration.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+This package contains libraries and header files for developing
+applications that use %{name}.
+
+%prep
+%setup -q -n lib%{name}-%{version}
+%{__sed} -i 's/\r//' AUTHORS
+%patch1 -p1
+%patch2 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --disable-tests
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING AUTHORS
+%attr(755,root,root) %{_bindir}/dbusxx-introspect
+%attr(755,root,root) %{_bindir}/dbusxx-xml2cpp
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc TODO
+%{_includedir}/*
+%{_libdir}/*.so
+%{_pkgconfigdir}/*
diff --git a/dbus-c++-gcc4.7.patch b/dbus-c++-gcc4.7.patch
new file mode 100644
index 0000000..5cb8096
--- /dev/null
+++ b/dbus-c++-gcc4.7.patch
@@ -0,0 +1,12 @@
+diff --git a/include/dbus-c++/eventloop-integration.h b/include/dbus-c++/eventloop-integration.h
+index 1b0302e..3e44304 100644
+--- a/include/dbus-c++/eventloop-integration.h
++++ b/include/dbus-c++/eventloop-integration.h
+@@ -26,6 +26,7 @@
+ #define __DBUSXX_EVENTLOOP_INTEGRATION_H
+
+ #include <errno.h>
++#include <unistd.h>
+ #include "api.h"
+ #include "dispatcher.h"
+ #include "util.h"
diff --git a/dbus-c++-linkfix.patch b/dbus-c++-linkfix.patch
new file mode 100644
index 0000000..3672fe2
--- /dev/null
+++ b/dbus-c++-linkfix.patch
@@ -0,0 +1,12 @@
+diff -up libdbus-c++-0.9.0/src/Makefile.am.linkfix libdbus-c++-0.9.0/src/Makefile.am
+--- libdbus-c++-0.9.0/src/Makefile.am.linkfix 2013-12-17 16:07:22.326715886 +0100
++++ libdbus-c++-0.9.0/src/Makefile.am 2013-12-17 16:07:34.474542044 +0100
+@@ -29,7 +29,7 @@ libdbus_c___1_la_CXXFLAGS = \
+ -Wno-unused-parameter
+
+ libdbus_c___1_la_LIBADD = \
+- $(dbus_LIBS)
++ $(dbus_LIBS) $(xml_LIBS)
+
+ AM_CPPFLAGS = \
+ $(dbus_CFLAGS) \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dbus-c++.git/commitdiff/ea2f80572e4f9e117fa34f21a046a9146d01e534
More information about the pld-cvs-commit
mailing list