]>
Commit | Line | Data |
---|---|---|
4d2f8e7d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without ecore # Ecore mainloop integration | |
4 | # | |
ea2f8057 | 5 | Summary: Native C++ bindings for D-Bus |
4d2f8e7d | 6 | Summary(pl.UTF-8): Natywne wiązania C++ do usługi D-Bus |
ea2f8057 JR |
7 | Name: dbus-c++ |
8 | Version: 0.9.0 | |
fd047d0d | 9 | Release: 4 |
4d2f8e7d | 10 | License: LGPL v2.1+ |
ea2f8057 | 11 | Group: Libraries |
ea2f8057 | 12 | Source0: http://downloads.sourceforge.net/dbus-cplusplus/lib%{name}-%{version}.tar.gz |
1a42e8e7 | 13 | # Source0-md5: e752116f523fa88ef041e63d3dee4de2 |
fd047d0d | 14 | Patch0: %{name}-macros.patch |
ea2f8057 JR |
15 | Patch1: %{name}-gcc4.7.patch |
16 | Patch2: %{name}-linkfix.patch | |
4d2f8e7d JB |
17 | URL: http://sourceforge.net/projects/dbus-cplusplus/ |
18 | BuildRequires: autoconf >= 2.59 | |
ea2f8057 | 19 | BuildRequires: automake |
4d2f8e7d JB |
20 | BuildRequires: dbus-devel >= 1.0.0 |
21 | BuildRequires: doxygen | |
22 | %{?with_ecore:BuildRequires: ecore-devel} | |
23 | BuildRequires: expat-devel >= 1.95 | |
24 | BuildRequires: glib2-devel >= 2.0 | |
25 | BuildRequires: gtkmm-devel >= 2.4 | |
fd047d0d | 26 | BuildRequires: libstdc++-devel >= 6:4.3 |
4d2f8e7d JB |
27 | BuildRequires: libtool >= 2:1.5 |
28 | BuildRequires: pkgconfig | |
29 | Requires: dbus-libs >= 1.0.0 | |
ea2f8057 JR |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | dbus-c++ attempts to provide a C++ API for D-Bus. The library has a | |
4d2f8e7d JB |
34 | GLib/GTK+ and an Ecore mainloop integration. |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | dbus-c++ to próba dostarczenia API C++ do usługi D-Bus. Biblioteka | |
38 | zapewnia integrację z pętlami głównymi GLib/GTK+ oraz Ecore. | |
ea2f8057 | 39 | |
a70c8d49 | 40 | %package devel |
3f26d87c | 41 | Summary: Development files for dbus-c++ |
4d2f8e7d | 42 | Summary(pl.UTF-8): Pliki programistyczne biblioteki dbus-c++ |
ea2f8057 JR |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
4d2f8e7d JB |
45 | Requires: dbus-devel >= 1.0.0 |
46 | Requires: libstdc++-devel | |
ea2f8057 | 47 | |
a70c8d49 | 48 | %description devel |
4d2f8e7d JB |
49 | This package contains the header files for developing applications |
50 | that use dbus-c++. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
54 | wykorzystujących bibliotekę dbus-c++. | |
ea2f8057 | 55 | |
a70c8d49 | 56 | %package static |
6b9e54b7 | 57 | Summary: Static dbus-c++ library |
4d2f8e7d | 58 | Summary(pl.UTF-8): Statyczna biblioteka dbus-c++ |
6b9e54b7 JR |
59 | Group: Development/Libraries |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | This package contains static dbus-c++ library. | |
64 | ||
4d2f8e7d JB |
65 | %description static -l pl.UTF-8 |
66 | Ten pakiet zawiera statyczną bibliotekę dbus-c++. | |
67 | ||
e102f157 | 68 | %package glib |
4d2f8e7d JB |
69 | Summary: Native C++ bindings for D-Bus (GLib Mainloop) |
70 | Summary(pl.UTF-8): Natywne wiązania C++ do usługi D-Bus (pętla główna GLiba) | |
e50a1861 JR |
71 | Group: Libraries |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
e102f157 | 74 | %description glib |
4d2f8e7d JB |
75 | Native C++ bindings for D-Bus (GLib Mainloop). |
76 | ||
77 | %description glib -l pl.UTF-8 | |
78 | Natywne wiązania C++ do usługi D-Bus (pętla główna GLiba). | |
e102f157 JR |
79 | |
80 | %package glib-devel | |
3f26d87c | 81 | Summary: Development files for dbus-c++-glib |
4d2f8e7d | 82 | Summary(pl.UTF-8): Pliki programistyczne biblioteki dbus-c++-glib |
e50a1861 JR |
83 | Group: Development/Libraries |
84 | Requires: %{name}-glib = %{version}-%{release} | |
4d2f8e7d | 85 | Requires: glib2-devel >= 2.0 |
e50a1861 | 86 | |
3f26d87c JR |
87 | %description glib-devel |
88 | Development files for dbus-c++-glib. | |
e102f157 | 89 | |
4d2f8e7d JB |
90 | %description glib-devel -l pl.UTF-8 |
91 | Pliki programistyczne biblioteki dbus-c++-glib. | |
92 | ||
e102f157 | 93 | %package glib-static |
3f26d87c | 94 | Summary: Static dbus-c++-glib library |
4d2f8e7d | 95 | Summary(pl.UTF-8): Statyczna biblioteka dbus-c++-glib |
e50a1861 JR |
96 | Group: Development/Libraries |
97 | Requires: %{name}-glib-devel = %{version}-%{release} | |
98 | ||
3f26d87c JR |
99 | %description glib-static |
100 | Static dbus-c++-glib library. | |
e102f157 | 101 | |
4d2f8e7d JB |
102 | %description glib-static -l pl.UTF-8 |
103 | Statyczna biblioteka dbus-c++-glib. | |
104 | ||
e102f157 | 105 | %package ecore |
3f26d87c | 106 | Summary: Native C++ bindings for D-Bus (Ecore Mainloop) |
4d2f8e7d | 107 | Summary(pl.UTF-8): Natywne wiązania C++ do usługi D-Bus (pętla główna Ecore) |
e50a1861 JR |
108 | Group: Libraries |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
e102f157 | 111 | %description ecore |
3f26d87c | 112 | Native C++ bindings for D-Bus (Ecore Mainloop). |
e102f157 | 113 | |
4d2f8e7d JB |
114 | %description ecore -l pl.UTF-8 |
115 | Natywne wiązania C++ do usługi D-Bus (pętla główna Ecore). | |
116 | ||
e102f157 | 117 | %package ecore-devel |
3f26d87c | 118 | Summary: Development files for dbus-c++-ecore |
4d2f8e7d | 119 | Summary(pl.UTF-8): Pliki programistyczne biblioteki dbus-c++-ecore |
e50a1861 JR |
120 | Group: Development/Libraries |
121 | Requires: %{name}-ecore = %{version}-%{release} | |
4d2f8e7d | 122 | Requires: ecore-devel |
e50a1861 | 123 | |
e102f157 | 124 | %description ecore-devel |
3f26d87c | 125 | Development files for dbus-c++-ecore. |
e102f157 | 126 | |
4d2f8e7d JB |
127 | %description ecore-devel -l pl.UTF-8 |
128 | Pliki programistyczne biblioteki dbus-c++-ecore. | |
129 | ||
e102f157 | 130 | %package ecore-static |
3f26d87c | 131 | Summary: Static dbus-c++-ecore library |
4d2f8e7d | 132 | Summary(pl.UTF-8): Statyczna biblioteka dbus-c++-ecore |
e50a1861 JR |
133 | Group: Development/Libraries |
134 | Requires: %{name}-ecore-devel = %{version}-%{release} | |
135 | ||
e102f157 | 136 | %description ecore-static |
3f26d87c | 137 | Static dbus-c++-ecore library. |
e102f157 | 138 | |
4d2f8e7d JB |
139 | %description ecore-static -l pl.UTF-8 |
140 | Statyczna biblioteka dbus-c++-ecore. | |
141 | ||
ea2f8057 JR |
142 | %prep |
143 | %setup -q -n lib%{name}-%{version} | |
fd047d0d | 144 | %patch0 -p1 |
ea2f8057 JR |
145 | %patch1 -p1 |
146 | %patch2 -p1 | |
147 | ||
148 | %build | |
149 | %{__libtoolize} | |
150 | %{__aclocal} | |
151 | %{__autoconf} | |
4d2f8e7d | 152 | %{__autoheader} |
ea2f8057 | 153 | %{__automake} |
fd047d0d | 154 | CXXFLAGS="%{rpmcxxflags} -std=c++0x" |
4d2f8e7d JB |
155 | %configure \ |
156 | %{!?with_ecore:--disable-ecore} | |
ea2f8057 JR |
157 | |
158 | %{__make} | |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %{__make} install \ | |
164 | DESTDIR=$RPM_BUILD_ROOT | |
165 | ||
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
167 | ||
168 | %clean | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
a70c8d49 ER |
171 | %post -p /sbin/ldconfig |
172 | %postun -p /sbin/ldconfig | |
4d2f8e7d | 173 | |
3f26d87c JR |
174 | %post glib -p /sbin/ldconfig |
175 | %postun glib -p /sbin/ldconfig | |
4d2f8e7d | 176 | |
3f26d87c JR |
177 | %post ecore -p /sbin/ldconfig |
178 | %postun ecore -p /sbin/ldconfig | |
ea2f8057 JR |
179 | |
180 | %files | |
181 | %defattr(644,root,root,755) | |
3f26d87c | 182 | %doc AUTHORS TODO |
ea2f8057 JR |
183 | %attr(755,root,root) %{_bindir}/dbusxx-introspect |
184 | %attr(755,root,root) %{_bindir}/dbusxx-xml2cpp | |
e50a1861 | 185 | %attr(755,root,root) %{_libdir}/libdbus-c++-1.so.*.*.* |
3f26d87c | 186 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-1.so.0 |
ea2f8057 JR |
187 | |
188 | %files devel | |
189 | %defattr(644,root,root,755) | |
3f26d87c JR |
190 | %dir %{_includedir}/dbus-c++-1 |
191 | %dir %{_includedir}/dbus-c++-1/dbus-c++ | |
192 | %{_includedir}/dbus-c++-1/dbus-c++/*.h | |
4d2f8e7d | 193 | %{?with_ecore:%exclude %{_includedir}/dbus-c++-1/dbus-c++/ecore-integration.h} |
3f26d87c | 194 | %exclude %{_includedir}/dbus-c++-1/dbus-c++/glib-integration.h |
e50a1861 | 195 | %attr(755,root,root) %{_libdir}/libdbus-c++-1.so |
3f26d87c | 196 | %{_pkgconfigdir}/dbus-c++-1.pc |
6b9e54b7 JR |
197 | |
198 | %files static | |
199 | %defattr(644,root,root,755) | |
200 | %{_libdir}/libdbus-c++-1.a | |
e50a1861 JR |
201 | |
202 | %files glib | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_libdir}/libdbus-c++-glib-1.so.*.*.* | |
3f26d87c | 205 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-glib-1.so.0 |
e50a1861 JR |
206 | |
207 | %files glib-devel | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_libdir}/libdbus-c++-glib-1.so | |
3f26d87c JR |
210 | %{_includedir}/dbus-c++-1/dbus-c++/glib-integration.h |
211 | %{_pkgconfigdir}/dbus-c++-glib-1.pc | |
e50a1861 JR |
212 | |
213 | %files glib-static | |
214 | %defattr(644,root,root,755) | |
215 | %{_libdir}/libdbus-c++-glib-1.a | |
216 | ||
4d2f8e7d | 217 | %if %{with ecore} |
e50a1861 JR |
218 | %files ecore |
219 | %defattr(644,root,root,755) | |
220 | %attr(755,root,root) %{_libdir}/libdbus-c++-ecore-1.so.*.*.* | |
3f26d87c | 221 | %attr(755,root,root) %ghost %{_libdir}/libdbus-c++-ecore-1.so.0 |
e50a1861 JR |
222 | |
223 | %files ecore-devel | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/libdbus-c++-ecore-1.so | |
3f26d87c JR |
226 | %{_includedir}/dbus-c++-1/dbus-c++/ecore-integration.h |
227 | %{_pkgconfigdir}/dbus-c++-ecore-1.pc | |
e50a1861 JR |
228 | |
229 | %files ecore-static | |
230 | %defattr(644,root,root,755) | |
231 | %{_libdir}/libdbus-c++-ecore-1.a | |
4d2f8e7d | 232 | %endif |