1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
Name: libdbus
Url: http://dbus.freedesktop.org/
Summary: Library package for D-Bus
License: GPL-2.0+ or AFL-2.1
Group: System/Libraries
Version: 1.8.2
Release: 0
Source0: http://dbus.freedesktop.org/releases/dbus/dbus-%{version}.tar.gz
Source1001: libdbus.manifest
BuildRequires: expat-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libsmack)
%package -n dbus-devel
Summary: Developer package for D-Bus
Group: Development/Libraries
Requires: libdbus = %{version}
%description
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon. Also, the message bus is built on top of
a general one-to-one message passing framework, which can be used by
any two apps to communicate directly (without going through the message
bus daemon).
%description -n dbus-devel
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon. Also, the message bus is built on top of
a general one-to-one message passing framework, which can be used by
any two apps to communicate directly (without going through the message
bus daemon).
%prep
# COMMON2-BEGIN
%setup -n dbus-%{version} -q
cp %{SOURCE1001} .
%build
autoreconf -fi
# We use -fpie/-pie for the whole build; this is the recommended way to harden
# the build upstream, see discussion in fdo#46570
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -fpie"
export LDFLAGS="-pie"
export CXXFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
export CFLAGS="$CFLAGS -fstack-protector"
export CXXFLAGS="$CXXFLAGS -fstack-protector"
export V=1
%configure \
--disable-static \
--with-pic \
--with-dbus-user=dbus \
--libexecdir=%{_libdir}/%{name} \
--libdir=%{_libdir} \
--with-init-scripts=suse \
--enable-inotify \
--with-console-auth-dir=/var/run/dbus/at_console/ \
--with-systemdsystemunitdir=%{_unitdir} \
--enable-smack
make %{?_smp_mflags} -C dbus libdbus-1.la
%install
make DESTDIR=%{buildroot} -C dbus \
lib_LTLIBRARIES=libdbus-1.la \
install-libLTLIBRARIES \
install-dbusincludeHEADERS \
install-nodist_dbusarchincludeHEADERS
make DESTDIR=%{buildroot} install-pkgconfigDATA
rm %{buildroot}/%{_libdir}/libdbus-1.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-, root, root)
%{_libdir}/libdbus-1.so.*
# Own those directories in the library instead of dbus-1, since dbus users
# often ship files there
#%dir %{_sysconfdir}/dbus-1
#%dir %{_sysconfdir}/dbus-1/session.d
#%dir %{_sysconfdir}/dbus-1/system.d
#%dir %{_datadir}/dbus-1
#%dir %{_datadir}/dbus-1/interfaces
#%dir %{_datadir}/dbus-1/services
#%dir %{_datadir}/dbus-1/system-services
%files -n dbus-devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libdbus-1.so
%{_libdir}/dbus-1.0/include
%{_libdir}/pkgconfig/dbus-1.pc
%dir %{_libdir}/dbus-1.0
|