-
Notifications
You must be signed in to change notification settings - Fork 62
/
dnf-plugins-extras.spec
183 lines (151 loc) · 6.77 KB
/
dnf-plugins-extras.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.4.3}
%global dnf_plugins_extra_obsolete 2.0.0
%global rpmconf_lowest_compatible 1.1.3
%undefine __cmake_in_source_build
Name: dnf-plugins-extras
Version: 4.1.2
Release: 1%{?dist}
Summary: Extras Plugins for DNF
License: GPL-2.0-or-later
URL: https://github.com/rpm-software-management/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: cmake
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
BuildRequires: python3-pytest
BuildRequires: python3-sphinx
BuildRequires: python3-packaging
%description
Extras Plugins for DNF.
%package -n python3-%{name}-common
Summary: Common files for Extras Plugins for DNF
Requires: python3-dnf >= %{dnf_lowest_compatible}
%{?python_provide:%python_provide python3-%{name}-common}
Provides: %{name}-common = %{version}-%{release}
Obsoletes: %{name}-common < %{version}-%{release}
Obsoletes: python3-%{name}-common < %{version}-%{release}
Obsoletes: %{name} < %{version}-%{release}
Obsoletes: %{name}-common-data < %{version}-%{release}
%description -n python3-%{name}-common
Common files for Extras Plugins for DNF.
%package -n python3-dnf-plugin-kickstart
Summary: Kickstart Plugin for DNF
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-kickstart}
BuildRequires: python3-kickstart
Requires: python3-kickstart
Provides: dnf-command(kickstart)
Provides: %{name}-kickstart = %{version}-%{release}
Provides: dnf-plugin-kickstart = %{version}-%{release}
Provides: python3-%{name}-kickstart = %{version}-%{release}
Conflicts: python2-dnf-plugin-kickstart < %{version}-%{release}
Obsoletes: python3-%{name}-kickstart < %{dnf_plugins_extra_obsolete}
%description -n python3-dnf-plugin-kickstart
Kickstart Plugin for DNF, Python 3 version. Install packages listed in a
Kickstart file.
%package -n python3-dnf-plugin-rpmconf
Summary: RpmConf Plugin for DNF
BuildRequires: python3-rpmconf >= %{rpmconf_lowest_compatible}
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-rpmconf}
Requires: python3-rpmconf >= %{rpmconf_lowest_compatible}
Provides: %{name}-rpmconf = %{version}-%{release}
Provides: dnf-plugin-rpmconf = %{version}-%{release}
Provides: python3-%{name}-rpmconf = %{version}-%{release}
Obsoletes: python3-%{name}-rpmconf < %{dnf_plugins_extra_obsolete}
%description -n python3-dnf-plugin-rpmconf
RpmConf Plugin for DNF, Python 3 version. Handles .rpmnew, .rpmsave every
transaction.
%package -n python3-dnf-plugin-snapper
Summary: Snapper Plugin for DNF
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-snapper}
Requires: python3-dbus
Requires: snapper
Provides: %{name}-snapper = %{version}-%{release}
Provides: dnf-plugin-snapper = %{version}-%{release}
Provides: python3-%{name}-snapper = %{version}-%{release}
Conflicts: python2-dnf-plugin-snapper < %{version}-%{release}
Obsoletes: python3-%{name}-snapper < %{dnf_plugins_extra_obsolete}
%description -n python3-dnf-plugin-snapper
Snapper Plugin for DNF, Python 3 version. Creates snapshot every transaction.
%package -n python3-dnf-plugin-tracer
Summary: Tracer Plugin for DNF
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-tracer}
Requires: python3-tracer >= 0.6.12
Provides: dnf-plugin-tracer = %{version}-%{release}
Provides: %{name}-tracer = %{version}-%{release}
Provides: python3-%{name}-tracer = %{version}-%{release}
Conflicts: python2-dnf-plugin-tracer < %{version}-%{release}
Obsoletes: python3-%{name}-tracer < %{dnf_plugins_extra_obsolete}
%description -n python3-dnf-plugin-tracer
Tracer Plugin for DNF, Python 3 version. Finds outdated running applications in
your system every transaction.
%package -n python3-dnf-plugin-torproxy
Summary: Tor Proxy Plugin for DNF
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-torproxy}
Requires: python3-pycurl
Provides: dnf-plugin-torproxy = %{version}-%{release}
Provides: %{name}-torproxy = %{version}-%{release}
Provides: python3-%{name}-torproxy = %{version}-%{release}
Obsoletes: python3-%{name}-torproxy < %{dnf_plugins_extra_obsolete}
%description -n python3-dnf-plugin-torproxy
Tor proxy plugin forces DNF to use Tor to download packages. It makes sure that
Tor is working and avoids leaking the hostname by using the proper SOCKS5 interface.
%package -n python3-dnf-plugin-showvars
Summary: showvars Plugin for DNF
Requires: python3-%{name}-common = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}-showvars}
Provides: dnf-plugin-showvars = %{version}-%{release}
Provides: python3-%{name}-showvars = %{version}-%{release}
%description -n python3-dnf-plugin-showvars
This plugin dumps the current value of any defined DNF variables. For example
$releasever and $basearch.
%prep
%autosetup
%build
%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3}
%cmake_build
%cmake_build --target doc-man
%install
%cmake_install
%find_lang %{name}
%check
%pytest
%files -n python3-%{name}-common -f %{name}.lang
%{python3_sitelib}/dnfpluginsextras/
%dir %{python3_sitelib}/dnf-plugins/__pycache__/
%license COPYING
%doc AUTHORS README.rst
%files -n python3-dnf-plugin-kickstart
%{python3_sitelib}/dnf-plugins/kickstart.*
%{python3_sitelib}/dnf-plugins/__pycache__/kickstart.*
%{_mandir}/man8/dnf-kickstart.*
%files -n python3-dnf-plugin-rpmconf
%config(noreplace) %{_sysconfdir}/dnf/plugins/rpmconf.conf
%{python3_sitelib}/dnf-plugins/rpm_conf.*
%{python3_sitelib}/dnf-plugins/__pycache__/rpm_conf.*
%{_mandir}/man8/dnf-rpmconf.*
%files -n python3-dnf-plugin-snapper
%config(noreplace) %{_sysconfdir}/dnf/plugins/snapper.conf
%{python3_sitelib}/dnf-plugins/snapper.*
%{python3_sitelib}/dnf-plugins/__pycache__/snapper.*
%{_mandir}/man8/dnf-snapper.*
%files -n python3-dnf-plugin-tracer
%{python3_sitelib}/dnf-plugins/tracer.*
%{python3_sitelib}/dnf-plugins/__pycache__/tracer.*
%{_mandir}/man8/dnf-tracer.*
%files -n python3-dnf-plugin-torproxy
%config(noreplace) %{_sysconfdir}/dnf/plugins/torproxy.conf
%{python3_sitelib}/dnf-plugins/torproxy.*
%{python3_sitelib}/dnf-plugins/__pycache__/torproxy.*
%{_mandir}/man8/dnf-torproxy.*
%files -n python3-dnf-plugin-showvars
%{python3_sitelib}/dnf-plugins/showvars.*
%{python3_sitelib}/dnf-plugins/__pycache__/showvars.*
%{_mandir}/man8/dnf-showvars.*
%changelog