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