]>
Commit | Line | Data |
---|---|---|
a78caa7b | 1 | # |
088dd58d | 2 | # Conditional build: |
a78caa7b | 3 | %bcond_without apidocs # build without apidocs |
19060310 | 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 |
9535d61d | 9 | Release: 4 |
a78caa7b | 10 | License: LGPL v2+ |
b4ddf212 MB |
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 | 33 | %package devel |
a78caa7b JB |
34 | Summary: Development files for EggDBus library |
35 | Summary(pl.UTF-8): Pliki programistyczne biblioteki 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 | |
a78caa7b | 41 | Development files for EggDBus library. |
9cbc01d7 | 42 | |
b4ddf212 | 43 | %description devel -l pl.UTF-8 |
a78caa7b | 44 | Pliki programistyczne biblioteki EggDBus. |
b4ddf212 MB |
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 | |
19060310 | 63 | BuildArch: noarch |
b4ddf212 MB |
64 | |
65 | %description apidocs | |
66 | EggDBus API documentation. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API EggDBus. | |
70 | ||
9cbc01d7 PZ |
71 | %prep |
72 | %setup -q | |
73 | ||
74 | %build | |
4d633230 | 75 | %{?with_apidocs:%{__gtkdocize}} |
b4ddf212 MB |
76 | %{__libtoolize} |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
9cbc01d7 | 81 | %configure \ |
088dd58d | 82 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
b4ddf212 | 83 | --with-html-dir=%{_gtkdocdir} |
9cbc01d7 | 84 | |
3b66b0c4 | 85 | %{__make} -j1 |
9cbc01d7 | 86 | |
9cbc01d7 PZ |
87 | %install |
88 | rm -rf $RPM_BUILD_ROOT | |
b4ddf212 | 89 | |
9cbc01d7 PZ |
90 | %{__make} install \ |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
cd7ca654 | 93 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/tests |
9cbc01d7 PZ |
94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
b4ddf212 MB |
98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
9cbc01d7 PZ |
100 | |
101 | %files | |
102 | %defattr(644,root,root,755) | |
b4ddf212 | 103 | %doc AUTHORS |
9cbc01d7 PZ |
104 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so.*.* |
105 | %attr(755,root,root) %ghost %{_libdir}/libeggdbus-1.so.0 | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
a78caa7b JB |
109 | %attr(755,root,root) %{_bindir}/eggdbus-binding-tool |
110 | %attr(755,root,root) %{_bindir}/eggdbus-glib-genmarshal | |
9cbc01d7 | 111 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so |
b4ddf212 | 112 | %{_libdir}/libeggdbus-1.la |
9cbc01d7 | 113 | %{_includedir}/eggdbus-1 |
a78caa7b JB |
114 | %{_pkgconfigdir}/eggdbus-1.pc |
115 | %{_mandir}/man1/eggdbus-binding-tool.1* | |
b4ddf212 MB |
116 | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libeggdbus-1.a | |
120 | ||
088dd58d | 121 | %if %{with apidocs} |
b4ddf212 MB |
122 | %files apidocs |
123 | %defattr(644,root,root,755) | |
124 | %{_gtkdocdir}/eggdbus | |
088dd58d | 125 | %endif |