]>
Commit | Line | Data |
---|---|---|
ea2f8057 JR |
1 | Summary: Native C++ bindings for D-Bus |
2 | Name: dbus-c++ | |
3 | Version: 0.9.0 | |
3f26d87c | 4 | Release: 1 |
ea2f8057 JR |
5 | License: LGPL v2+ |
6 | Group: Libraries | |
ea2f8057 | 7 | Source0: http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz |
1a42e8e7 | 8 | # Source0-md5: e752116f523fa88ef041e63d3dee4de2 |
a70c8d49 | 9 | URL: http://sourceforge.net/projects/dbus-cplusplus/ |
ea2f8057 JR |
10 | Patch1: %{name}-gcc4.7.patch |
11 | Patch2: %{name}-linkfix.patch | |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
ea2f8057 JR |
14 | BuildRequires: dbus-devel |
15 | BuildRequires: ecore-devel | |
16 | BuildRequires: expat-devel | |
17 | BuildRequires: glib2-devel | |
18 | BuildRequires: gtkmm-devel | |
a70c8d49 | 19 | BuildRequires: libtool |
ea2f8057 JR |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | dbus-c++ attempts to provide a C++ API for D-Bus. The library has a | |
24 | glib/gtk and an Ecore mainloop integration. | |
25 | ||
a70c8d49 | 26 | %package devel |
3f26d87c | 27 | Summary: Development files for dbus-c++ |
ea2f8057 JR |
28 | Group: Development/Libraries |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Requires: pkgconfig | |
31 | ||
a70c8d49 | 32 | %description devel |
ea2f8057 JR |
33 | This package contains libraries and header files for developing |
34 | applications that use %{name}. | |
35 | ||
a70c8d49 | 36 | %package static |
6b9e54b7 JR |
37 | Summary: Static dbus-c++ library |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-devel = %{version}-%{release} | |
40 | ||
41 | %description static | |
42 | This package contains static dbus-c++ library. | |
43 | ||
e102f157 | 44 | %package glib |
3f26d87c | 45 | Summary: Native C++ bindings for D-Bus (Glib Mainloop) |
e50a1861 JR |
46 | Group: Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
e102f157 | 49 | %description glib |
3f26d87c | 50 | Native C++ bindings for D-Bus (Glib Mainloop). |
e102f157 JR |
51 | |
52 | %package glib-devel | |
3f26d87c | 53 | Summary: Development files for dbus-c++-glib |
e50a1861 JR |
54 | Group: Development/Libraries |
55 | Requires: %{name}-glib = %{version}-%{release} | |
56 | ||
3f26d87c JR |
57 | %description glib-devel |
58 | Development files for dbus-c++-glib. | |
e102f157 JR |
59 | |
60 | %package glib-static | |
3f26d87c | 61 | Summary: Static dbus-c++-glib library |
e50a1861 JR |
62 | Group: Development/Libraries |
63 | Requires: %{name}-glib-devel = %{version}-%{release} | |
64 | ||
3f26d87c JR |
65 | %description glib-static |
66 | Static dbus-c++-glib library. | |
e102f157 JR |
67 | |
68 | %package ecore | |
3f26d87c | 69 | Summary: Native C++ bindings for D-Bus (Ecore Mainloop) |
e50a1861 JR |
70 | Group: Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
e102f157 | 73 | %description ecore |
3f26d87c | 74 | Native C++ bindings for D-Bus (Ecore Mainloop). |
e102f157 JR |
75 | |
76 | %package ecore-devel | |
3f26d87c | 77 | Summary: Development files for dbus-c++-ecore |
e50a1861 JR |
78 | Group: Development/Libraries |
79 | Requires: %{name}-ecore = %{version}-%{release} | |
80 | ||
e102f157 | 81 | %description ecore-devel |
3f26d87c | 82 | Development files for dbus-c++-ecore. |
e102f157 JR |
83 | |
84 | %package ecore-static | |
3f26d87c | 85 | Summary: Static dbus-c++-ecore library |
e50a1861 JR |
86 | Group: Development/Libraries |
87 | Requires: %{name}-ecore-devel = %{version}-%{release} | |
88 | ||
e102f157 | 89 | %description ecore-static |
3f26d87c | 90 | Static dbus-c++-ecore library. |
e102f157 | 91 | |
ea2f8057 JR |
92 | %prep |
93 | %setup -q -n lib%{name}-%{version} | |
ea2f8057 JR |
94 | %patch1 -p1 |
95 | %patch2 -p1 | |
96 | ||
97 | %build | |
98 | %{__libtoolize} | |
99 | %{__aclocal} | |
100 | %{__autoconf} | |
101 | %{__automake} | |
3f26d87c | 102 | %configure |
ea2f8057 JR |
103 | |
104 | %{__make} | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
113 | ||
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
a70c8d49 ER |
117 | %post -p /sbin/ldconfig |
118 | %postun -p /sbin/ldconfig | |
3f26d87c JR |
119 | %post glib -p /sbin/ldconfig |
120 | %postun glib -p /sbin/ldconfig | |
121 | %post ecore -p /sbin/ldconfig | |
122 | %postun ecore -p /sbin/ldconfig | |
ea2f8057 JR |
123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
3f26d87c | 126 | %doc AUTHORS TODO |
ea2f8057 JR |
127 | %attr(755,root,root) %{_bindir}/dbusxx-introspect |
128 | %attr(755,root,root) %{_bindir}/dbusxx-xml2cpp | |
e50a1861 | 129 | %attr(755,root,root) %{_libdir}/libdbus-c++-1.so.*.*.* |
3f26d87c | 130 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-1.so.0 |
ea2f8057 JR |
131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
3f26d87c JR |
134 | %dir %{_includedir}/dbus-c++-1 |
135 | %dir %{_includedir}/dbus-c++-1/dbus-c++ | |
136 | %{_includedir}/dbus-c++-1/dbus-c++/*.h | |
137 | %exclude %{_includedir}/dbus-c++-1/dbus-c++/ecore-integration.h | |
138 | %exclude %{_includedir}/dbus-c++-1/dbus-c++/glib-integration.h | |
e50a1861 | 139 | %attr(755,root,root) %{_libdir}/libdbus-c++-1.so |
3f26d87c | 140 | %{_pkgconfigdir}/dbus-c++-1.pc |
6b9e54b7 JR |
141 | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
144 | %{_libdir}/libdbus-c++-1.a | |
e50a1861 JR |
145 | |
146 | %files glib | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/libdbus-c++-glib-1.so.*.*.* | |
3f26d87c | 149 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-glib-1.so.0 |
e50a1861 JR |
150 | |
151 | %files glib-devel | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_libdir}/libdbus-c++-glib-1.so | |
3f26d87c JR |
154 | %{_includedir}/dbus-c++-1/dbus-c++/glib-integration.h |
155 | %{_pkgconfigdir}/dbus-c++-glib-1.pc | |
e50a1861 JR |
156 | |
157 | %files glib-static | |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/libdbus-c++-glib-1.a | |
160 | ||
161 | %files ecore | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_libdir}/libdbus-c++-ecore-1.so.*.*.* | |
3f26d87c | 164 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-ecore-1.so.0 |
e50a1861 JR |
165 | |
166 | %files ecore-devel | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_libdir}/libdbus-c++-ecore-1.so | |
3f26d87c JR |
169 | %{_includedir}/dbus-c++-1/dbus-c++/ecore-integration.h |
170 | %{_pkgconfigdir}/dbus-c++-ecore-1.pc | |
e50a1861 JR |
171 | |
172 | %files ecore-static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libdbus-c++-ecore-1.a |