]>
Commit | Line | Data |
---|---|---|
019d3d2c JR |
1 | Summary: Extras Plugins for DNF |
2 | Name: dnf-plugins-extras | |
6aafe960 JR |
3 | Version: 4.0.16 |
4 | Release: 1 | |
019d3d2c JR |
5 | License: GPL v2+ |
6 | Source0: https://github.com/rpm-software-management/dnf-plugins-extras/archive/%{version}/%{name}-%{version}.tar.gz | |
6aafe960 | 7 | # Source0-md5: 22c566100be065e770a6b0032f8a4ad3 |
019d3d2c JR |
8 | Patch0: install.patch |
9 | URL: https://github.com/rpm-software-management/dnf-plugins-extras | |
10 | BuildRequires: cmake | |
11 | BuildRequires: dnf >= 4.4.3 | |
12 | BuildRequires: gettext | |
13 | BuildRequires: pkgconfig | |
14 | BuildRequires: python3-devel | |
15 | BuildRequires: sphinx-pdg | |
16 | BuildRequires: systemd-devel | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Extras Plugins for DNF. | |
22 | ||
23 | %package common | |
24 | Summary: Common files for Extras Plugins for DNF | |
25 | Requires: dnf >= 4.4.3 | |
26 | ||
27 | %description common | |
28 | Common files for Extras Plugins for DNF. | |
29 | ||
30 | %package -n dnf-plugin-kickstart | |
31 | Summary: Kickstart Plugin for DNF | |
32 | Requires: %{name}-common = %{version}-%{release} | |
c3c3ef08 | 33 | Requires: python3-pykickstart |
019d3d2c JR |
34 | |
35 | %description -n dnf-plugin-kickstart | |
36 | Kickstart Plugin for DNF. Install packages listed in a Kickstart file. | |
37 | ||
38 | %package -n dnf-plugin-rpmconf | |
39 | Summary: RpmConf Plugin for DNF | |
40 | Requires: %{name}-common = %{version}-%{release} | |
41 | Requires: python3-rpmconf | |
42 | ||
43 | %description -n dnf-plugin-rpmconf | |
44 | RpmConf Plugin for DNF. Handles .rpmnew, .rpmsave every transaction. | |
45 | ||
46 | %package -n dnf-plugin-snapper | |
47 | Summary: Snapper Plugin for DNF | |
48 | Requires: %{name}-common = %{version}-%{release} | |
49 | Requires: python3-dbus | |
50 | Requires: snapper | |
51 | ||
52 | %description -n dnf-plugin-snapper | |
53 | Snapper Plugin for DNF. Creates snapshot every transaction. | |
54 | ||
55 | %package -n dnf-plugin-system-upgrade | |
56 | Summary: System Upgrade Plugin for DNF | |
57 | Requires: %{name}-common = %{version}-%{release} | |
58 | Requires: python3-systemd | |
59 | ||
60 | %description -n dnf-plugin-system-upgrade | |
61 | System Upgrade Plugin for DNF. Enables offline system upgrades using | |
62 | the "dnf system-upgrade" command. | |
63 | ||
64 | %package -n dnf-plugin-tracer | |
65 | Summary: Tracer Plugin for DNF | |
66 | Requires: %{name}-common = %{version}-%{release} | |
67 | Requires: python3-tracer >= 0.6.12 | |
68 | ||
69 | %description -n dnf-plugin-tracer | |
70 | Tracer Plugin for DNF. Finds outdated running applications in your | |
71 | system every transaction. | |
72 | ||
73 | %package -n dnf-plugin-torproxy | |
74 | Summary: Tor Proxy Plugin for DNF | |
75 | Requires: %{name}-common = %{version}-%{release} | |
76 | Requires: python3-pycurl | |
77 | ||
78 | %description -n dnf-plugin-torproxy | |
79 | Tor proxy plugin forces DNF to use Tor to download packages. It makes | |
80 | sure that Tor is working and avoids leaking the hostname by using the | |
81 | proper SOCKS5 interface. | |
82 | ||
83 | %package -n dnf-plugin-showvars | |
84 | Summary: showvars Plugin for DNF | |
85 | Requires: %{name}-common = %{version}-%{release} | |
86 | ||
87 | %description -n dnf-plugin-showvars | |
88 | This plugin dumps the current value of any defined DNF variables. For | |
89 | example $releasever and $basearch. | |
90 | ||
91 | %prep | |
92 | %setup -q | |
93 | %patch0 -p1 | |
94 | ||
95 | %build | |
96 | mkdir -p build | |
97 | cd build | |
98 | %cmake ../ \ | |
99 | -DPYTHON_DESIRED:FILEPATH=%{__python3} \ | |
100 | -DPYTHON_INSTALL_DIR:PATH=%{py3_sitescriptdir} \ | |
101 | -DSYSTEMD_DIR:PATH=%{systemdunitdir} | |
102 | ||
103 | %{__make} | |
104 | %{__make} doc-man | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | install -d $RPM_BUILD_ROOT%{systemdunitdir}/system-update.target.wants | |
109 | ||
110 | %{__make} -C build install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | ln -sr $RPM_BUILD_ROOT%{systemdunitdir}/{,system-update.target.wants/}dnf-system-upgrade.service | |
114 | ||
115 | for d in $RPM_BUILD_ROOT%{py3_sitescriptdir}/{dnf-plugins,dnfpluginsextras}; do | |
116 | %py3_comp $d | |
117 | %py3_ocomp $d | |
118 | done | |
119 | ||
120 | %find_lang %{name} | |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %files common -f %{name}.lang | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS README.rst | |
128 | %{py3_sitescriptdir}/dnfpluginsextras | |
129 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/* | |
130 | ||
131 | %files -n dnf-plugin-kickstart | |
132 | %defattr(644,root,root,755) | |
133 | %{py3_sitescriptdir}/dnf-plugins/kickstart.* | |
134 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/kickstart.* | |
135 | %{_mandir}/man8/dnf-kickstart.* | |
136 | ||
137 | %files -n dnf-plugin-rpmconf | |
138 | %defattr(644,root,root,755) | |
139 | %config(noreplace) %{_sysconfdir}/dnf/plugins/rpmconf.conf | |
140 | %{py3_sitescriptdir}/dnf-plugins/rpm_conf.* | |
141 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/rpm_conf.* | |
142 | %{_mandir}/man8/dnf-rpmconf.* | |
143 | ||
144 | %files -n dnf-plugin-snapper | |
145 | %defattr(644,root,root,755) | |
146 | %{py3_sitescriptdir}/dnf-plugins/snapper.* | |
147 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/snapper.* | |
148 | %{_mandir}/man8/dnf-snapper.* | |
149 | ||
150 | %files -n dnf-plugin-system-upgrade | |
151 | %defattr(644,root,root,755) | |
152 | %{systemdunitdir}/dnf-system-upgrade.service | |
153 | %{systemdunitdir}/dnf-system-upgrade-cleanup.service | |
154 | %{systemdunitdir}/system-update.target.wants/dnf-system-upgrade.service | |
155 | %{py3_sitescriptdir}/dnf-plugins/system_upgrade.py | |
156 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/system_upgrade.* | |
157 | %{_mandir}/man8/dnf-system-upgrade.* | |
158 | ||
159 | %files -n dnf-plugin-tracer | |
160 | %defattr(644,root,root,755) | |
161 | %{py3_sitescriptdir}/dnf-plugins/tracer.* | |
162 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/tracer.* | |
163 | %{_mandir}/man8/dnf-tracer.* | |
164 | ||
165 | %files -n dnf-plugin-torproxy | |
166 | %defattr(644,root,root,755) | |
167 | %config(noreplace) %{_sysconfdir}/dnf/plugins/torproxy.conf | |
168 | %{py3_sitescriptdir}/dnf-plugins/torproxy.* | |
169 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/torproxy.* | |
170 | %{_mandir}/man8/dnf-torproxy.* | |
171 | ||
172 | %files -n dnf-plugin-showvars | |
173 | %defattr(644,root,root,755) | |
174 | %{py3_sitescriptdir}/dnf-plugins/showvars.* | |
175 | %{py3_sitescriptdir}/dnf-plugins/__pycache__/showvars.* | |
176 | %{_mandir}/man8/dnf-showvars.* |