-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbus-cplusplus.spec
75 lines (62 loc) · 1.71 KB
/
dbus-cplusplus.spec
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
Name: dbus-cplusplus
Summary: C++ Interface for DBus - with Google Chromiumos and Napatech patches
Version: 0.10.0
Release: %{?buildnum}%{!?buildnum:0}%{?dist}
URL: https://github.com/napatech/%{name}/
License: LGPL
Source: https://github.com/napatech/%{name}/releases/%{version}.tar.gz
Group: Libraries
BuildRequires: nt-ctemplate-devel
Requires: nt-ctemplate
Conflicts: dbus-c++
%description
Ability to reflect dbus methods and signals into a more natural C++ object system.
%package devel
Requires: %{name} = %{version} nt-ctemplate
Group: Development/Libraries
Summary: Header files for dbus-cplusplus
%description devel
Header files for dbus-cplusplus
%prep
%setup -q
%build
scl enable devtoolset-7 "./autogen.sh \
--prefix=%{_prefix} \
--exec-prefix=%{_exec_prefix} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--localstatedir=%{_localstatedir} \
--sharedstatedir=%{_sharedstatedir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--enable-glib \
CPPFLAGS=-I%{_includedir} \
LDFLAGS=-L%{_libdir}"
scl enable devtoolset-7 make
%install
rm -rf $RPM_BUILD_ROOT
scl enable devtoolset-7 "make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install"
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(755,root,root)
%{_libdir}/libdbus-c*.so*
%files devel
%defattr(-,root,root)
%{_bindir}/dbusxx-xml2cpp
%{_bindir}/dbusxx-introspect
%{_libdir}/libdbus-c*.a
%{_libdir}/libdbus-c*.la
%{_libdir}/pkgconfig/*.pc
%{_includedir}/dbus-c++-1
%{_prefix}/share/libdbus-c++/*.tpl
%changelog
* Thu Feb 8 2007 Ben Martin
- initial spec file