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