]>
Commit | Line | Data |
---|---|---|
ea2f8057 JR |
1 | Summary: Native C++ bindings for D-Bus |
2 | Name: dbus-c++ | |
3 | Version: 0.9.0 | |
4 | Release: 0.1 | |
5 | License: LGPL v2+ | |
6 | Group: Libraries | |
7 | URL: http://sourceforge.net/projects/dbus-cplusplus/ | |
8 | Source0: http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz | |
9 | Patch1: %{name}-gcc4.7.patch | |
10 | Patch2: %{name}-linkfix.patch | |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: libtool | |
14 | BuildRequires: dbus-devel | |
15 | BuildRequires: ecore-devel | |
16 | BuildRequires: expat-devel | |
17 | BuildRequires: glib2-devel | |
18 | BuildRequires: gtkmm-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | dbus-c++ attempts to provide a C++ API for D-Bus. The library has a | |
23 | glib/gtk and an Ecore mainloop integration. | |
24 | ||
25 | %package devel | |
26 | Summary: Development files for %{name} | |
27 | Group: Development/Libraries | |
28 | Requires: %{name} = %{version}-%{release} | |
29 | Requires: pkgconfig | |
30 | ||
31 | %description devel | |
32 | This package contains libraries and header files for developing | |
33 | applications that use %{name}. | |
34 | ||
6b9e54b7 JR |
35 | %package static |
36 | Summary: Static dbus-c++ library | |
37 | Group: Development/Libraries | |
38 | Requires: %{name}-devel = %{version}-%{release} | |
39 | ||
40 | %description static | |
41 | This package contains static dbus-c++ library. | |
42 | ||
e102f157 JR |
43 | %package glib |
44 | %description glib | |
45 | ||
46 | %package glib-devel | |
47 | %description glib | |
48 | ||
49 | %package glib-static | |
50 | %description glib | |
51 | ||
52 | %package ecore | |
53 | %description ecore | |
54 | ||
55 | %package ecore-devel | |
56 | %description ecore-devel | |
57 | ||
58 | %package ecore-static | |
59 | %description ecore-static | |
60 | ||
ea2f8057 JR |
61 | %prep |
62 | %setup -q -n lib%{name}-%{version} | |
63 | %{__sed} -i 's/\r//' AUTHORS | |
64 | %patch1 -p1 | |
65 | %patch2 -p1 | |
66 | ||
67 | %build | |
68 | %{__libtoolize} | |
69 | %{__aclocal} | |
70 | %{__autoconf} | |
71 | %{__automake} | |
72 | %configure \ | |
73 | --disable-tests | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc COPYING AUTHORS | |
94 | %attr(755,root,root) %{_bindir}/dbusxx-introspect | |
95 | %attr(755,root,root) %{_bindir}/dbusxx-xml2cpp | |
96 | %{_libdir}/*.so.* | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %doc TODO | |
101 | %{_includedir}/* | |
102 | %{_libdir}/*.so | |
103 | %{_pkgconfigdir}/* | |
6b9e54b7 JR |
104 | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libdbus-c++-1.a |