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