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