dbus-glib:MOVe:modify license ID
[platform/upstream/dbus-glib.git] / packaging / dbus-glib.spec
1
2 Name:           dbus-glib
3 Version:        0.100.2
4 Release:        0
5 License:        AFL-2.1 or GPL-2.0+
6 Summary:        GLib bindings for D-Bus
7 Url:            http://www.freedesktop.org/software/dbus/
8 Group:          System/Libraries
9 Source0:        http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-%{version}.tar.gz
10 Source1001:     dbus-glib.manifest
11 BuildRequires:  autoconf
12 BuildRequires:  expat-devel
13 BuildRequires:  gettext-tools
14 BuildRequires:  libtool
15 BuildRequires:  pkgconfig(dbus-1)
16 BuildRequires:  pkgconfig(glib-2.0)
17 BuildRequires:  pkgconfig(libxml-2.0)
18
19 %description
20 D-Bus add-on library to integrate the standard D-Bus library with
21 the GLib thread abstraction and main loop.
22
23 %package devel
24 Summary:        Libraries and headers for the D-Bus GLib bindings
25 Group:          Development/Libraries
26 Requires:       %{name} = %{version}
27
28 %description devel
29 Headers and static libraries for the D-Bus GLib bindings
30
31 %prep
32 %setup -q
33 cp %{SOURCE1001} .
34
35 %build
36
37 %configure --disable-tests \
38     --enable-verbose-mode=yes \
39     --enable-asserts=yes \
40     --disable-gtk-doc
41
42 make %{?_smp_mflags}
43
44 %install
45 %make_install
46
47 # don't care about bash completion in a consumer device
48 rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
49 rm -rf %{buildroot}%{_prefix}/libexec/dbus-bash-completion-helper
50
51 %docs_package
52
53 %post -p /sbin/ldconfig
54
55 %postun -p /sbin/ldconfig
56
57 %files
58 %manifest %{name}.manifest
59 %license COPYING
60 %{_libdir}/*glib*.so.*
61
62 %files devel
63 %manifest %{name}.manifest
64 %{_libdir}/lib*.so
65 %{_libdir}/pkgconfig/dbus-glib-1.pc
66 %{_includedir}/dbus-1.0/dbus/*
67 %{_bindir}/dbus-binding-tool
68