forked from timlau/yum-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyumdaemon.spec
107 lines (77 loc) · 3.04 KB
/
yumdaemon.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
%global yum_org org.baseurl.Yum
Name: yumdaemon
Version: 0.9.3
Release: 1%{?dist}
Summary: DBus daemon for yum package actions
License: GPLv2+
URL: https://github.com/timlau/yum-daemon
Source0: https://fedorahosted.org/releases/y/u/yumex/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
Requires: dbus-python
Requires: yum >= 3.4.0
Requires: polkit
Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
%description
Dbus daemon for yum package actions
%prep
%setup -q
%build
# Nothing to build
%install
make install DESTDIR=$RPM_BUILD_ROOT DATADIR=%{_datadir} SYSCONFDIR=%{_sysconfdir}
%package -n python3-%{name}
Summary: Python 3 api for communicating with the yum-daemon DBus service
Group: Applications/System
BuildRequires: python3-devel
Requires: %{name} = %{version}-%{release}
Requires: python3-gobject
%description -n python3-%{name}
Python 3 api for communicating with the yum-daemon DBus service
%files -n python3-%{name}
%{python3_sitelib}/%{name}/
%package -n python-%{name}
Summary: Python 2 api for communicating with the yum-daemon DBus service
Group: Applications/System
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
Requires: pygobject3
%description -n python-%{name}
Python 2 api for communicating with the yum-daemon DBus service
%files -n python-%{name}
%{python_sitelib}/%{name}/
# apply the right selinux file context
# http://fedoraproject.org/wiki/PackagingDrafts/SELinux#File_contexts
%post
semanage fcontext -a -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
restorecon -R %{_datadir}/%{name}/%{name}-system || :
%postun
if [ $1 -eq 0 ] ; then # final removal
semanage fcontext -d -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
fi
%files
%doc README.md examples/ ChangeLog COPYING
%{_datadir}/dbus-1/system-services/%{yum_org}*
%{_datadir}/dbus-1/services/%{yum_org}*
%{_datadir}/%{name}/
%{_datadir}/polkit-1/actions/%{yum_org}*
# this should not be edited by the user, so no %%config
%{_sysconfdir}/dbus-1/system.d/%{yum_org}*
%changelog
* Thu Feb 18 2014 Tim Lauridsen <[email protected]> 0.9.3-1
- version 0.9.3-1
* Wed Oct 23 2013 Tim Lauridsen <[email protected]> 0.9.2-5
- removed %%config from %%{_sysconfdir}/dbus-1/system.d/*
* Wed Oct 23 2013 Tim Lauridsen <[email protected]> 0.9.2-4
- dont own %%{_datadir}/polkit-1/actions/ dir
* Wed Oct 23 2013 Tim Lauridsen <[email protected]> 0.9.2-3
- added DATADIR=%%{_datadir} SYSCONFDIR=%%{_sysconfdir} to make install
* Wed Oct 23 2013 Tim Lauridsen <[email protected]> 0.9.2-2
- converted tab to spaces
* Wed Oct 23 2013 Tim Lauridsen <[email protected]> 0.9.2-1
- bumped release to 0.9.2
* Mon Nov 5 2012 Tim Lauridsen <[email protected]> 0.9.1-1
- both python2 & python3 uses same sources
* Sat May 26 2012 Tim Lauridsen <[email protected]> 0.9.0-1
- Initial rpm for yum-daemon