]>
Commit | Line | Data |
---|---|---|
088dd58d BZ |
1 | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # build without apidocs | |
4 | ||
9cbc01d7 | 5 | Summary: Experimental D-Bus bindings for GObject |
b4ddf212 | 6 | Summary(pl.UTF-8): Eksperymentalne wiązania D-Busa do GObject |
9cbc01d7 | 7 | Name: eggdbus |
57a07be5 | 8 | Version: 0.6 |
9 | Release: 1 | |
b4ddf212 MB |
10 | License: LGPL v2 |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
57a07be5 | 13 | # Source0-md5: b43d2a6c523fcb8b9d0b0300c4222386 |
9cbc01d7 | 14 | URL: http://cgit.freedesktop.org/~david/eggdbus |
b4ddf212 MB |
15 | BuildRequires: autoconf >= 2.60 |
16 | BuildRequires: automake | |
17 | BuildRequires: dbus-devel >= 1.0.0 | |
18 | BuildRequires: dbus-glib-devel >= 0.73 | |
bdc28e82 | 19 | BuildRequires: docbook-dtd412-xml |
b4ddf212 | 20 | BuildRequires: glib2-devel >= 1:2.20.0 |
088dd58d | 21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
b4ddf212 MB |
22 | BuildRequires: libtool |
23 | BuildRequires: libxslt-progs | |
24 | BuildRequires: pkgconfig | |
9cbc01d7 PZ |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Experimental D-Bus bindings for GObject. | |
29 | ||
b4ddf212 MB |
30 | %description -l pl.UTF-8 |
31 | Eksperymentalne wiązania D-Busa do GObject. | |
32 | ||
9cbc01d7 PZ |
33 | %package devel |
34 | Summary: Development files for EggDBus | |
b4ddf212 | 35 | Summary(pl.UTF-8): Pliki programistyczne dla EggDBus |
9cbc01d7 | 36 | Group: Development/Libraries |
b4ddf212 MB |
37 | Requires: %{name} = %{version}-%{release} |
38 | Requires: glib2-devel >= 1:2.20.0 | |
9cbc01d7 PZ |
39 | |
40 | %description devel | |
41 | Development files for EggDBus. | |
42 | ||
b4ddf212 MB |
43 | %description devel -l pl.UTF-8 |
44 | Pliki programistyczne dla EggDBus. | |
45 | ||
46 | %package static | |
47 | Summary: Static EggDBus library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka EggDBus | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static EggDBus library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka EggDBus. | |
57 | ||
58 | %package apidocs | |
59 | Summary: EggDBus API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API EggDBus | |
61 | Group: Documentation | |
62 | Requires: gtk-doc-common | |
63 | ||
64 | %description apidocs | |
65 | EggDBus API documentation. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API EggDBus. | |
69 | ||
9cbc01d7 PZ |
70 | %prep |
71 | %setup -q | |
72 | ||
73 | %build | |
4d633230 | 74 | %{?with_apidocs:%{__gtkdocize}} |
b4ddf212 MB |
75 | %{__libtoolize} |
76 | %{__aclocal} | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
9cbc01d7 | 80 | %configure \ |
088dd58d | 81 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
b4ddf212 | 82 | --with-html-dir=%{_gtkdocdir} |
9cbc01d7 | 83 | |
3b66b0c4 | 84 | %{__make} -j1 |
9cbc01d7 | 85 | |
9cbc01d7 PZ |
86 | %install |
87 | rm -rf $RPM_BUILD_ROOT | |
b4ddf212 | 88 | |
9cbc01d7 PZ |
89 | %{__make} install \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
cd7ca654 | 92 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/tests |
9cbc01d7 PZ |
93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
b4ddf212 MB |
97 | %post -p /sbin/ldconfig |
98 | %postun -p /sbin/ldconfig | |
9cbc01d7 PZ |
99 | |
100 | %files | |
101 | %defattr(644,root,root,755) | |
b4ddf212 | 102 | %doc AUTHORS |
9cbc01d7 PZ |
103 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so.*.* |
104 | %attr(755,root,root) %ghost %{_libdir}/libeggdbus-1.so.0 | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_bindir}/* | |
109 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so | |
b4ddf212 | 110 | %{_libdir}/libeggdbus-1.la |
9cbc01d7 PZ |
111 | %{_pkgconfigdir}/eggdbus-1.pc |
112 | %{_includedir}/eggdbus-1 | |
9cbc01d7 | 113 | %{_mandir}/man1/*.1* |
b4ddf212 MB |
114 | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/libeggdbus-1.a | |
118 | ||
088dd58d | 119 | %if %{with apidocs} |
b4ddf212 MB |
120 | %files apidocs |
121 | %defattr(644,root,root,755) | |
122 | %{_gtkdocdir}/eggdbus | |
088dd58d | 123 | %endif |