]> git.pld-linux.org Git - packages/dbus-c++.git/commitdiff
- new, based on fedora
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Jan 2014 01:04:13 +0000 (02:04 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Jan 2014 01:04:13 +0000 (02:04 +0100)
dbus-c++-gcc4.7.patch [new file with mode: 0644]
dbus-c++-linkfix.patch [new file with mode: 0644]
dbus-c++.spec [new file with mode: 0644]

diff --git a/dbus-c++-gcc4.7.patch b/dbus-c++-gcc4.7.patch
new file mode 100644 (file)
index 0000000..5cb8096
--- /dev/null
@@ -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 (file)
index 0000000..3672fe2
--- /dev/null
@@ -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) \
diff --git a/dbus-c++.spec b/dbus-c++.spec
new file mode 100644 (file)
index 0000000..543b1a1
--- /dev/null
@@ -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}/*
This page took 0.095643 seconds and 4 git commands to generate.