This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
/
dbus-python.spec
91 lines (65 loc) · 1.67 KB
/
dbus-python.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.23
#
# >> macros
# << macros
Name: dbus-python
Summary: D-Bus Python Bindings
Version: 1.0.0
Release: 1
Group: System/Libraries
License: MIT
URL: http://www.freedesktop.org/software/dbus/
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
Source100: dbus-python.yaml
BuildRequires: pkgconfig(dbus-1) >= 1.4
BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
BuildRequires: python-devel
%description
D-Bus python bindings for use with python programs.
%package devel
Summary: Libraries and headers for dbus-python
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %name = %{version}-%{release}
%description devel
Headers and static libraries for hooking up custom mainloops to the dbus python
bindings.
%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup
%build
# >> build pre
# << build pre
%configure --disable-static
make %{?jobs:-j%jobs}
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install
# >> install post
# << install post
%files
%defattr(-,root,root,-)
# >> files
%doc COPYING README
%exclude %{_datadir}/doc/dbus-python
%dir %{python_sitelib}/dbus
%dir %{python_sitelib}/dbus/mainloop
%{python_sitearch}/*.so
%{python_sitelib}/dbus/*.py*
%{python_sitelib}/dbus/mainloop/*.py*
# << files
%files devel
%defattr(-,root,root,-)
# >> files devel
%doc ChangeLog NEWS TODO
%doc doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
%{_includedir}/dbus-1.0/dbus/dbus-python.h
%{_libdir}/pkgconfig/dbus-python.pc
# << files devel