]>
Commit | Line | Data |
---|---|---|
1c170856 | 1 | # |
b3146ec0 KK |
2 | # Conditional build: |
3 | %bcond_without apidocs # disable gtk-doc | |
b0b8dd9c | 4 | %bcond_without static_libs # don't build static library |
82e0d903 | 5 | |
63642e2e | 6 | %define dbus_version 1.2.16 |
1c170856 | 7 | %define expat_version 1:1.95.5 |
82e0d903 | 8 | %define glib2_version 1:2.26 |
1c170856 | 9 | Summary: GLib-based library for using D-BUS |
071c2493 | 10 | Summary(pl.UTF-8): Biblioteka do używania D-BUS oparta o GLib |
1c170856 | 11 | Name: dbus-glib |
63642e2e JB |
12 | Version: 0.94 |
13 | Release: 1 | |
1c170856 | 14 | License: AFL v2.1 or GPL v2 |
15 | Group: Libraries | |
2ce682cc | 16 | Source0: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz |
63642e2e | 17 | # Source0-md5: e1f1506a6f4941e67bffd614b1ad5af6 |
090e7484 | 18 | Patch0: %{name}-configure.patch |
13631981 | 19 | URL: http://www.freedesktop.org/Software/DBusBindings |
1c170856 | 20 | BuildRequires: autoconf >= 2.52 |
2ce682cc | 21 | BuildRequires: automake >= 1:1.9 |
1c170856 | 22 | BuildRequires: dbus-devel >= %{dbus_version} |
80d83172 | 23 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
1c170856 | 24 | BuildRequires: expat-devel >= %{expat_version} |
b3146ec0 | 25 | BuildRequires: gettext-devel |
82e0d903 | 26 | BuildRequires: glib2-devel >= %{glib2_version} |
b3146ec0 | 27 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.8} |
3b66052a | 28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
090e7484 | 29 | BuildRequires: libtool |
1c170856 | 30 | BuildRequires: pkgconfig |
e9a86c22 | 31 | BuildRequires: rpmbuild(macros) >= 1.527 |
1c170856 | 32 | Requires: dbus-libs >= %{dbus_version} |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | D-BUS add-on library to integrate the standard D-BUS library with the | |
37 | GLib thread abstraction and main loop. | |
38 | ||
ddd70749 | 39 | %description -l pl.UTF-8 |
1c170856 | 40 | Dodatkowa biblioteka D-BUS do integracji standardowej biblioteki D-BUS |
ddd70749 | 41 | z abstrakcją wątków i główną pętlą GLib. |
1c170856 | 42 | |
43 | %package devel | |
44 | Summary: Header files for GLib-based library for using D-BUS | |
071c2493 | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib |
1c170856 | 46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | Requires: dbus-devel >= %{dbus_version} | |
49 | Requires: glib2-devel >= %{glib2_version} | |
50 | ||
51 | %description devel | |
52 | Header files for GLib-based library for using D-BUS. | |
53 | ||
ddd70749 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib. | |
1c170856 | 56 | |
57 | %package static | |
58 | Summary: Static GLib-based library for using D-BUS | |
071c2493 | 59 | Summary(pl.UTF-8): Statyczna biblioteka do używania D-BUS oparta o GLib |
1c170856 | 60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static GLib-based library for using D-BUS. | |
65 | ||
ddd70749 JR |
66 | %description static -l pl.UTF-8 |
67 | Statyczna biblioteka do używania D-BUS oparta o GLib. | |
1c170856 | 68 | |
2ce682cc JB |
69 | %package apidocs |
70 | Summary: D-BUS-GLib API documentation | |
071c2493 | 71 | Summary(pl.UTF-8): Dokumentacja API D-BUS-GLib |
2ce682cc JB |
72 | Group: Documentation |
73 | Requires: gtk-doc-common | |
74 | ||
75 | %description apidocs | |
76 | D-BUS-GLib API documentation. | |
77 | ||
ddd70749 | 78 | %description apidocs -l pl.UTF-8 |
2ce682cc JB |
79 | Dokumentacja API D-BUS-GLib. |
80 | ||
398aca1a JB |
81 | %package -n bash-completion-dbus |
82 | Summary: bash-completion for dbus-send | |
83 | Summary(pl.UTF-8): Bashowe uzupełnianie poleceń dla dbus-send | |
84 | Group: Applications/Shells | |
85 | Requires: bash-completion | |
86 | ||
87 | %description -n bash-completion-dbus | |
88 | This package provides bash-completion for dbus-send. | |
89 | ||
90 | %description -n bash-completion-dbus -l pl.UTF-8 | |
91 | Ten pakiet dostarcza bashowe uzupełnianie poleceń dla dbus-send. | |
92 | ||
1c170856 | 93 | %prep |
94 | %setup -q | |
090e7484 | 95 | %patch0 -p1 |
1c170856 | 96 | |
398aca1a | 97 | %if %{without apidocs} |
b3146ec0 KK |
98 | echo 'EXTRA_DIST=' > gtk-doc.make |
99 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
100 | %endif | |
101 | ||
1c170856 | 102 | %build |
e9a86c22 | 103 | %{?with_apidocs:%{__gtkdocize}} |
1c170856 | 104 | %{__libtoolize} |
105 | %{__aclocal} | |
106 | %{__autoconf} | |
107 | %{__autoheader} | |
108 | %{__automake} | |
109 | %configure \ | |
e9a86c22 | 110 | %{__enable_disable apidocs gtk-doc} \ |
3b66052a JB |
111 | %{__disable static_libs static} \ |
112 | --disable-silent-rules \ | |
113 | --with-html-dir=%{_gtkdocdir} | |
0c68a254 | 114 | |
1c170856 | 115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %{__make} install \ | |
398aca1a JB |
121 | DESTDIR=$RPM_BUILD_ROOT \ |
122 | profiledir=/etc/bash_completion.d | |
123 | ||
124 | mv -f $RPM_BUILD_ROOT/etc/bash_completion.d/{dbus-bash-completion.sh,dbus} | |
1c170856 | 125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
6421e4e3 JB |
134 | # AFL not in common-licenses, so COPYING included |
135 | %doc AUTHORS COPYING ChangeLog NEWS README | |
1c170856 | 136 | %attr(755,root,root) %{_libdir}/libdbus-glib-1.so.*.*.* |
d4a11bac | 137 | %attr(755,root,root) %ghost %{_libdir}/libdbus-glib-1.so.2 |
1c170856 | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_bindir}/dbus-binding-tool | |
142 | %attr(755,root,root) %{_libdir}/libdbus-glib-1.so | |
143 | %{_libdir}/libdbus-glib-1.la | |
934bf624 | 144 | %{_mandir}/man1/dbus-binding-tool.1* |
ad61eb8f JB |
145 | %{_includedir}/dbus-1.0/dbus/dbus-glib*.h |
146 | %{_includedir}/dbus-1.0/dbus/dbus-gtype-specialized.h | |
147 | %{_includedir}/dbus-1.0/dbus/dbus-gvalue-parse-variant.h | |
1c170856 | 148 | %{_pkgconfigdir}/dbus-glib-1.pc |
149 | ||
b0b8dd9c | 150 | %if %{with static_libs} |
1c170856 | 151 | %files static |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libdbus-glib-1.a | |
b0b8dd9c | 154 | %endif |
2ce682cc | 155 | |
b3146ec0 | 156 | %if %{with apidocs} |
2ce682cc JB |
157 | %files apidocs |
158 | %defattr(644,root,root,755) | |
159 | %{_gtkdocdir}/dbus-glib | |
b3146ec0 | 160 | %endif |
398aca1a JB |
161 | |
162 | %files -n bash-completion-dbus | |
163 | %defattr(644,root,root,755) | |
164 | /etc/bash_completion.d/dbus | |
165 | %attr(755,root,root) %{_libdir}/dbus-bash-completion-helper |