[521] | 1 | %define gettext_package dbus |
---|
| 2 | |
---|
| 3 | %define expat_version 2.0.1 |
---|
[805] | 4 | %define glib2_version 2.24.0 |
---|
| 5 | %define dbus_version 1.2.24 |
---|
[521] | 6 | |
---|
| 7 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 8 | |
---|
| 9 | Summary: GLib bindings for D-Bus |
---|
| 10 | Summary(ja): D-Bus の GLib バインディング |
---|
| 11 | Name: dbus-glib |
---|
[805] | 12 | Version: 0.86 |
---|
[521] | 13 | Release: 1%{?_dist_release} |
---|
| 14 | URL: http://www.freedesktop.org/software/dbus/ |
---|
| 15 | Source0: http://dbus.freedesktop.org/releases/%{name}-%{version}.tar.gz |
---|
| 16 | Source1: dbus-bus-introspect.xml |
---|
| 17 | License: AFL/GPL |
---|
| 18 | Group: System Environment/Libraries |
---|
| 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | Requires: chkconfig |
---|
| 22 | BuildRequires: libtool |
---|
| 23 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 24 | BuildRequires: expat-devel >= %{expat_version} |
---|
| 25 | BuildRequires: libxml2-devel |
---|
| 26 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 27 | BuildRequires: gettext |
---|
| 28 | BuildRequires: autoconf |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | D-Bus add-on library to integrate the standard D-Bus library with |
---|
| 32 | the GLib thread abstraction and main loop. |
---|
| 33 | |
---|
| 34 | %package devel |
---|
| 35 | Summary: Libraries and headers for the D-Bus GLib bindings |
---|
| 36 | Summary(ja): D-Bus GLib バインディング用のライブラリとヘッダファイル |
---|
| 37 | Group: Development/Libraries |
---|
| 38 | Requires: %{name} = %{version}-%{release} |
---|
| 39 | Requires: glib2-devel |
---|
| 40 | Requires: dbus-devel |
---|
| 41 | Requires: pkgconfig |
---|
| 42 | Obsoletes: dbus-devel < 0.90 |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | Headers and static libraries for the D-Bus GLib bindings |
---|
| 46 | |
---|
| 47 | %if 0 |
---|
| 48 | %package gtk |
---|
| 49 | Summary: GTK based tools |
---|
| 50 | Group: Development/Tools |
---|
| 51 | Requires: %{name} = %{version}-%{release} |
---|
| 52 | Requires: gtk2 >= 2.10.0 |
---|
| 53 | |
---|
| 54 | %description gtk |
---|
| 55 | D-Bus tools written using the gtk+ GUI libaries |
---|
| 56 | %endif |
---|
| 57 | |
---|
| 58 | # compat32 |
---|
| 59 | %package -n compat32-%{name} |
---|
| 60 | Summary: GLib bindings for D-Bus |
---|
| 61 | Summary(ja): D-Bus の GLib バインディング |
---|
| 62 | Group: System Environment/Libraries |
---|
| 63 | Requires: %{name} = %{version}-%{release} |
---|
| 64 | |
---|
| 65 | %description -n compat32-%{name} |
---|
| 66 | D-Bus add-on library to integrate the standard D-Bus library with |
---|
| 67 | the GLib thread abstraction and main loop. |
---|
| 68 | |
---|
| 69 | %package -n compat32-%{name}-devel |
---|
| 70 | Summary: Libraries and headers for the D-Bus GLib bindings |
---|
| 71 | Summary(ja): D-Bus GLib バインディング用のライブラリとヘッダファイル |
---|
| 72 | Group: Development/Libraries |
---|
| 73 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 74 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 75 | Requires: compat32-glib2-devel |
---|
| 76 | Requires: compat32-dbus-devel |
---|
| 77 | |
---|
| 78 | %description -n compat32-%{name}-devel |
---|
| 79 | Headers and static libraries for the D-Bus GLib bindings |
---|
| 80 | |
---|
| 81 | %prep |
---|
| 82 | %setup -q |
---|
| 83 | |
---|
| 84 | %build |
---|
| 85 | %configure --disable-tests \ |
---|
| 86 | --disable-verbose-mode \ |
---|
| 87 | --disable-asserts \ |
---|
| 88 | --disable-gtk-doc \ |
---|
| 89 | --with-introspect-xml=%{SOURCE1} |
---|
| 90 | %__make |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %install |
---|
| 94 | rm -rf %{buildroot} |
---|
| 95 | |
---|
| 96 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 97 | |
---|
| 98 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
| 99 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 100 | |
---|
| 101 | %clean |
---|
| 102 | rm -rf %{buildroot} |
---|
| 103 | |
---|
| 104 | %post -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %postun -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 109 | |
---|
| 110 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %doc COPYING ChangeLog NEWS |
---|
| 115 | %{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh |
---|
| 116 | %{_libdir}/*glib*.so.* |
---|
| 117 | %{_libexecdir}/dbus-bash-completion-helper |
---|
| 118 | %{_bindir}/dbus-binding-tool |
---|
[805] | 119 | %{_mandir}/man1/dbus-binding-tool.1.gz |
---|
[521] | 120 | |
---|
| 121 | %files devel |
---|
| 122 | %defattr(-,root,root) |
---|
| 123 | %{_libdir}/lib*.so |
---|
| 124 | %{_libdir}/pkgconfig/dbus-glib-1.pc |
---|
| 125 | %{_includedir}/* |
---|
| 126 | %{_datadir}/gtk-doc/html/dbus-glib |
---|
| 127 | |
---|
| 128 | %if 0 |
---|
| 129 | %files gtk |
---|
| 130 | %defattr(-,root,root) |
---|
| 131 | %{_bindir}/dbus-viewer |
---|
| 132 | %endif |
---|
| 133 | |
---|
| 134 | # compat32 |
---|
| 135 | %if %{build_compat32} |
---|
| 136 | %files -n compat32-%{name} |
---|
| 137 | %defattr(-,root,root) |
---|
| 138 | %{_libdir}/*glib*.so.* |
---|
| 139 | |
---|
| 140 | %files -n compat32-%{name}-devel |
---|
| 141 | %defattr(-,root,root) |
---|
| 142 | %{_libdir}/lib*.so |
---|
| 143 | %{_libdir}/pkgconfig/dbus-glib-1.pc |
---|
| 144 | %endif |
---|
| 145 | |
---|
| 146 | %changelog |
---|
[805] | 147 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.86-1 |
---|
| 148 | - new upstream release |
---|
| 149 | |
---|
[521] | 150 | * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.82-1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
| 153 | * Sun Jul 12 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.80-2 |
---|
| 154 | - added compat32 package for x86_64 arch support |
---|
| 155 | |
---|
| 156 | * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.80-1 |
---|
| 157 | - new upstream release |
---|
| 158 | - built with dbus-1.2.12, glib-2.20.0 |
---|
| 159 | |
---|
| 160 | * Sat Jul 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.76-1 |
---|
| 161 | - new upstream release |
---|
| 162 | |
---|
| 163 | * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.74-1vl5 |
---|
| 164 | - rebuilt with dbus-1.1.20, glib2-2.16.1 |
---|
| 165 | - used %%{?_dist_release} |
---|
| 166 | |
---|
| 167 | * Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.74-0vl2 |
---|
| 168 | - rebuild with expat-2.0.1 |
---|
| 169 | |
---|
| 170 | * Sat Aug 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.74-0vl1 |
---|
| 171 | - new upstream release |
---|
| 172 | |
---|
| 173 | * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.73-0vl1 |
---|
| 174 | - initial build for Vine Linux |
---|
| 175 | |
---|
| 176 | * Wed Apr 4 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-1 |
---|
| 177 | - Update to 0.73 (#233631) |
---|
| 178 | - Drop upstreamed patches |
---|
| 179 | |
---|
| 180 | * Tue Dec 19 2006 John (J5) Palmieri <johnp@redhat.com> - 0.71-4 |
---|
| 181 | - Add dbus-glib-0.70-use-default-threads.patch |
---|
| 182 | - Partial fix to #219257 |
---|
| 183 | |
---|
| 184 | * Wed Nov 29 2006 David Zeuthen <davidz@redhat.com> - 0.71-3%{?dist} |
---|
| 185 | - Add dbus-glib-0.70-fix-info-leak.patch |
---|
| 186 | - Resolves: #216034 |
---|
| 187 | |
---|
| 188 | * Sun Nov 5 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-2 |
---|
| 189 | - Fix up Requires for the -devel package |
---|
| 190 | |
---|
| 191 | * Mon Oct 23 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-1 |
---|
| 192 | - Update to 0.71 |
---|
| 193 | |
---|
| 194 | * Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-4 |
---|
| 195 | - remove improper obsoletes |
---|
| 196 | |
---|
| 197 | * Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3 |
---|
| 198 | - Pregenerate the xml introspect file so you don't need dbus running during |
---|
| 199 | the build |
---|
| 200 | |
---|
| 201 | * Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2 |
---|
| 202 | - Spec file cleanups |
---|
| 203 | |
---|
| 204 | * Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1 |
---|
| 205 | - Initial dbus-glib package |
---|