| 1 |
%define alphatag #ALPHATAG# |
| 2 |
|
| 3 |
%global glib2_version 2.80 |
| 4 |
%global libdnf_version 0.43.1 |
| 5 |
|
| 6 |
Summary: Package management service |
| 7 |
Name: PackageKit |
| 8 |
Version: #VERSION#~#BUILD#%{?alphatag} |
| 9 |
Release: 0%{?dist} |
| 10 |
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND FSFAP |
| 11 |
URL: http://www.freedesktop.org/software/PackageKit/ |
| 12 |
Source: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz |
| 13 |
|
| 14 |
BuildRequires: docbook-utils |
| 15 |
BuildRequires: gcc |
| 16 |
BuildRequires: gcc-c++ |
| 17 |
BuildRequires: gettext |
| 18 |
BuildRequires: gtk-doc |
| 19 |
BuildRequires: meson |
| 20 |
BuildRequires: vala |
| 21 |
BuildRequires: xmlto |
| 22 |
BuildRequires: pkgconfig(appstream) |
| 23 |
BuildRequires: pkgconfig(bash-completion) |
| 24 |
BuildRequires: pkgconfig(fontconfig) |
| 25 |
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} |
| 26 |
BuildRequires: pkgconfig(gstreamer-1.0) |
| 27 |
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) |
| 28 |
BuildRequires: pkgconfig(gtk+-3.0) |
| 29 |
BuildRequires: pkgconfig(jansson) |
| 30 |
BuildRequires: pkgconfig(libdnf) >= %{libdnf_version} |
| 31 |
BuildRequires: pkgconfig(libdnf5) |
| 32 |
BuildRequires: pkgconfig(libsystemd) |
| 33 |
BuildRequires: pkgconfig(pangoft2) |
| 34 |
BuildRequires: pkgconfig(ply-boot-client) |
| 35 |
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.114 |
| 36 |
BuildRequires: pkgconfig(sdbus-c++) |
| 37 |
BuildRequires: pkgconfig(sqlite3) |
| 38 |
BuildRequires: systemd |
| 39 |
BuildRequires: python3-devel |
| 40 |
|
| 41 |
# Validate metainfo |
| 42 |
BuildRequires: appstream |
| 43 |
|
| 44 |
Requires: %{name}-glib%{?_isa} = %{version}-%{release} |
| 45 |
Requires: glib2%{?_isa} >= %{glib2_version} |
| 46 |
Requires: libdnf%{?_isa} >= %{libdnf_version} |
| 47 |
Requires: shared-mime-info |
| 48 |
Requires: systemd |
| 49 |
|
| 50 |
# functionality moved to udev itself |
| 51 |
Obsoletes: PackageKit-udev-helper < %{version}-%{release} |
| 52 |
Obsoletes: udev-packagekit < %{version}-%{release} |
| 53 |
|
| 54 |
# No more GTK+-2 plugin |
| 55 |
Obsoletes: PackageKit-gtk-module < %{version}-%{release} |
| 56 |
|
| 57 |
# No more zif, smart or yum in Fedora |
| 58 |
Obsoletes: PackageKit-smart < %{version}-%{release} |
| 59 |
Obsoletes: PackageKit-yum < 0.9.1 |
| 60 |
Obsoletes: PackageKit-yum-plugin < 0.9.1 |
| 61 |
Obsoletes: PackageKit-zif < 0.8.13-2 |
| 62 |
|
| 63 |
# components now built-in |
| 64 |
Obsoletes: PackageKit-debug-install < 0.9.1 |
| 65 |
Obsoletes: PackageKit-hawkey < 0.9.1 |
| 66 |
Obsoletes: PackageKit-backend-devel < 0.9.6 |
| 67 |
|
| 68 |
# Udev no longer provides this functionality |
| 69 |
Obsoletes: PackageKit-device-rebind < 0.8.13-2 |
| 70 |
|
| 71 |
%description |
| 72 |
PackageKit is a D-Bus abstraction layer that allows the session user |
| 73 |
to manage packages in a secure way using a cross-distro, |
| 74 |
cross-architecture API. |
| 75 |
|
| 76 |
%package backend-dnf5 |
| 77 |
Summary: DNF5 backend for PackageKit |
| 78 |
Supplements: (libdnf5%{?_isa} and PackageKit%{?_isa}) |
| 79 |
Requires: %{name}%{?_isa} = %{version}-%{release} |
| 80 |
Requires: libdnf5-plugin-appstream%{?_isa} |
| 81 |
|
| 82 |
%description backend-dnf5 |
| 83 |
PackageKit is a D-Bus abstraction layer that allows the session user |
| 84 |
to manage packages in a secure way using a cross-distro, |
| 85 |
cross-architecture API. |
| 86 |
|
| 87 |
This package provides the DNF5 backend for PackageKit. |
| 88 |
|
| 89 |
%package -n dnf4-plugin-notify-PackageKit |
| 90 |
Summary: DNF4 plugin to notify PackageKit of DNF4 actions |
| 91 |
Supplements: (dnf4 and PackageKit) |
| 92 |
Conflicts: %{name} < 1.3.1-3 |
| 93 |
BuildArch: noarch |
| 94 |
|
| 95 |
%description -n dnf4-plugin-notify-PackageKit |
| 96 |
DNF4 plugin to notify PackageKit of DNF4 actions. |
| 97 |
|
| 98 |
%package -n libdnf5-plugin-notify-PackageKit |
| 99 |
Summary: DNF5 plugin to notify PackageKit of DNF5 actions |
| 100 |
Supplements: (libdnf5%{?_isa} and PackageKit%{?_isa}) |
| 101 |
Conflicts: %{name} < 1.3.1-2 |
| 102 |
|
| 103 |
%description -n libdnf5-plugin-notify-PackageKit |
| 104 |
DNF5 plugin to notify PackageKit of DNF5 actions. |
| 105 |
|
| 106 |
%package glib |
| 107 |
Summary: GLib libraries for accessing PackageKit |
| 108 |
Requires: dbus >= 1.1.1 |
| 109 |
Requires: glib2 >= %{glib2_version} |
| 110 |
Obsoletes: PackageKit-libs < %{version}-%{release} |
| 111 |
Provides: PackageKit-libs = %{version}-%{release} |
| 112 |
|
| 113 |
%description glib |
| 114 |
GLib libraries for accessing PackageKit. |
| 115 |
|
| 116 |
%package cron |
| 117 |
Summary: Cron job and related utilities for PackageKit |
| 118 |
Requires: crontabs |
| 119 |
Requires: %{name}%{?_isa} = %{version}-%{release} |
| 120 |
|
| 121 |
%description cron |
| 122 |
Crontab and utilities for running PackageKit as a cron job. |
| 123 |
|
| 124 |
%package devel |
| 125 |
Summary: Libraries and headers for PackageKit |
| 126 |
Requires: %{name}-glib-devel%{?_isa} = %{version}-%{release} |
| 127 |
# Additional deps needed for multilibs computation. |
| 128 |
# Needed for (gtk3-module & gstreamer-plugin), see also rhbz#1901065 |
| 129 |
Requires: %{name}-gtk3-module%{?_isa} = %{version}-%{release} |
| 130 |
Requires: %{name}-gstreamer-plugin%{?_isa} = %{version}-%{release} |
| 131 |
|
| 132 |
%description devel |
| 133 |
Headers and libraries for PackageKit. |
| 134 |
|
| 135 |
%package glib-devel |
| 136 |
Summary: GLib Libraries and headers for PackageKit |
| 137 |
Requires: %{name}-glib%{?_isa} = %{version}-%{release} |
| 138 |
Requires: dbus-devel%{?_isa} >= 1.1.1 |
| 139 |
Requires: sqlite-devel%{?_isa} |
| 140 |
Obsoletes: PackageKit-docs < %{version}-%{release} |
| 141 |
Provides: PackageKit-docs = %{version}-%{release} |
| 142 |
|
| 143 |
%description glib-devel |
| 144 |
GLib headers and libraries for PackageKit. |
| 145 |
|
| 146 |
%package gstreamer-plugin |
| 147 |
Summary: Install GStreamer codecs using PackageKit |
| 148 |
Requires: %{name}-glib%{?_isa} = %{version}-%{release} |
| 149 |
Obsoletes: codeina < 0.10.1-10 |
| 150 |
Provides: codeina = 0.10.1-10 |
| 151 |
|
| 152 |
%description gstreamer-plugin |
| 153 |
The PackageKit GStreamer plugin allows any Gstreamer application to install |
| 154 |
codecs from configured repositories using PackageKit. |
| 155 |
|
| 156 |
%package gtk3-module |
| 157 |
Summary: Install fonts automatically using PackageKit |
| 158 |
Requires: pango |
| 159 |
Requires: %{name}-glib%{?_isa} = %{version}-%{release} |
| 160 |
|
| 161 |
%description gtk3-module |
| 162 |
The PackageKit GTK3+ module allows any Pango application to install |
| 163 |
fonts from configured repositories using PackageKit. |
| 164 |
|
| 165 |
%package command-not-found |
| 166 |
Summary: Ask the user to install command line programs automatically |
| 167 |
Requires: bash |
| 168 |
Requires: %{name} = %{version}-%{release} |
| 169 |
Requires: %{name}-glib%{?_isa} = %{version}-%{release} |
| 170 |
|
| 171 |
%description command-not-found |
| 172 |
A simple helper that offers to install new packages on the command line |
| 173 |
using PackageKit. |
| 174 |
|
| 175 |
%prep |
| 176 |
%autosetup |
| 177 |
|
| 178 |
%conf |
| 179 |
%meson \ |
| 180 |
-Dgtk_doc=true \ |
| 181 |
-Dlegacy_tools=true \ |
| 182 |
-Dpackaging_backend=dnf,dnf5 \ |
| 183 |
-Dlocal_checkout=false |
| 184 |
|
| 185 |
%build |
| 186 |
%meson_build |
| 187 |
|
| 188 |
%install |
| 189 |
%meson_install |
| 190 |
|
| 191 |
# Create cache dir |
| 192 |
mkdir -p %{buildroot}%{_localstatedir}/cache/PackageKit |
| 193 |
|
| 194 |
# Create directories for downloaded appstream data |
| 195 |
mkdir -p %{buildroot}%{_localstatedir}/cache/app-info/{icons,xmls} |
| 196 |
|
| 197 |
# create a link that GStreamer will recognise |
| 198 |
pushd %{buildroot}%{_libexecdir} > /dev/null |
| 199 |
ln -s pk-gstreamer-install gst-install-plugins-helper |
| 200 |
popd > /dev/null |
| 201 |
|
| 202 |
%find_lang %{name} |
| 203 |
|
| 204 |
%check |
| 205 |
appstreamcli validate --no-net %{buildroot}%{_metainfodir}/*.metainfo.xml |
| 206 |
|
| 207 |
%post |
| 208 |
# Remove leftover symlinks from /etc/systemd; the offline update service is |
| 209 |
# instead now hooked into /usr/lib/systemd/system/system-update.target.wants |
| 210 |
systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || : |
| 211 |
|
| 212 |
%files -f %{name}.lang |
| 213 |
%license COPYING |
| 214 |
%doc README.md AUTHORS NEWS |
| 215 |
%dir %{_datadir}/PackageKit |
| 216 |
%dir %{_sysconfdir}/PackageKit |
| 217 |
%dir %{_localstatedir}/lib/PackageKit |
| 218 |
%dir %{_localstatedir}/cache/app-info |
| 219 |
%dir %{_localstatedir}/cache/app-info/icons |
| 220 |
%dir %{_localstatedir}/cache/app-info/xmls |
| 221 |
%dir %{_localstatedir}/cache/PackageKit |
| 222 |
%{_datadir}/bash-completion/completions/pkgcli |
| 223 |
%{_datadir}/bash-completion/completions/pkcon |
| 224 |
%dir %{_libdir}/packagekit-backend |
| 225 |
%config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf |
| 226 |
%config(noreplace) %{_sysconfdir}/PackageKit/Vendor.conf |
| 227 |
%{_datadir}/man/man1/pkcon.1* |
| 228 |
%{_datadir}/man/man1/pkmon.1* |
| 229 |
%{_datadir}/polkit-1/actions/*.policy |
| 230 |
%{_datadir}/polkit-1/rules.d/* |
| 231 |
%{_datadir}/PackageKit/pk-upgrade-distro.sh |
| 232 |
%{_datadir}/PackageKit/helpers/test_spawn/search-name.sh |
| 233 |
%{_metainfodir}/org.freedesktop.packagekit.metainfo.xml |
| 234 |
%{_libexecdir}/packagekitd |
| 235 |
%{_libexecdir}/packagekit-direct |
| 236 |
%{_bindir}/pkmon |
| 237 |
%{_bindir}/pkcon |
| 238 |
%{_bindir}/pkgcli |
| 239 |
%exclude %{_libdir}/libpackagekit*.so.* |
| 240 |
%{_libdir}/packagekit-backend/libpk_backend_dummy.so |
| 241 |
%{_libdir}/packagekit-backend/libpk_backend_test_*.so |
| 242 |
%ghost %verify(not md5 size mtime) %attr(0644,-,-) %{_localstatedir}/lib/PackageKit/transactions.db |
| 243 |
%{_datadir}/dbus-1/system.d/* |
| 244 |
%{_datadir}/dbus-1/system-services/*.service |
| 245 |
%{_datadir}/dbus-1/interfaces/*.xml |
| 246 |
%{_unitdir}/packagekit-offline-update.service |
| 247 |
%{_unitdir}/packagekit.service |
| 248 |
%{_unitdir}/system-update.target.wants/ |
| 249 |
%{_libexecdir}/pk-*offline-update |
| 250 |
%{_libexecdir}/packagekit-dnf-refresh-repo |
| 251 |
%{_libdir}/packagekit-backend/libpk_backend_dnf.so |
| 252 |
|
| 253 |
%files backend-dnf5 |
| 254 |
%{_libdir}/packagekit-backend/libpk_backend_dnf5.so |
| 255 |
%{_libdir}/rpm-plugins/notify_packagekit.so |
| 256 |
%{_rpmmacrodir}/macros.transaction_notify_packagekit |
| 257 |
|
| 258 |
%files -n dnf4-plugin-notify-PackageKit |
| 259 |
%pycached %{python3_sitelib}/dnf-plugins/notify_packagekit.py |
| 260 |
|
| 261 |
%files -n libdnf5-plugin-notify-PackageKit |
| 262 |
%{_libdir}/libdnf5/plugins/notify_packagekit.so |
| 263 |
%config(noreplace) %{_sysconfdir}/dnf/libdnf5-plugins/notify_packagekit.conf |
| 264 |
|
| 265 |
%files glib |
| 266 |
%{_libdir}/*packagekit-glib2.so.* |
| 267 |
%{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
| 268 |
|
| 269 |
%files cron |
| 270 |
%config %{_sysconfdir}/cron.daily/packagekit-background.cron |
| 271 |
%config(noreplace) %{_sysconfdir}/sysconfig/packagekit-background |
| 272 |
|
| 273 |
%files gstreamer-plugin |
| 274 |
%{_libexecdir}/pk-gstreamer-install |
| 275 |
%{_libexecdir}/gst-install-plugins-helper |
| 276 |
|
| 277 |
%files gtk3-module |
| 278 |
%{_libdir}/gtk-3.0/modules/*.so |
| 279 |
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/*.desktop |
| 280 |
|
| 281 |
%files command-not-found |
| 282 |
%{_sysconfdir}/profile.d/* |
| 283 |
%{_libexecdir}/pk-command-not-found |
| 284 |
%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf |
| 285 |
|
| 286 |
%files devel |
| 287 |
# Empty on purpose |
| 288 |
# helper for multilibs computation - See rhbz#1901065 |
| 289 |
|
| 290 |
%files glib-devel |
| 291 |
%{_libdir}/libpackagekit-glib2.so |
| 292 |
%{_libdir}/pkgconfig/packagekit-glib2.pc |
| 293 |
%dir %{_includedir}/PackageKit |
| 294 |
%dir %{_includedir}/PackageKit/packagekit-glib2 |
| 295 |
%{_includedir}/PackageKit/packagekit-glib*/*.h |
| 296 |
%{_datadir}/gir-1.0/PackageKitGlib-1.0.gir |
| 297 |
%{_datadir}/gtk-doc/html/PackageKit |
| 298 |
%{_datadir}/vala/vapi/packagekit-glib2.vapi |
| 299 |
%{_datadir}/vala/vapi/packagekit-glib2.deps |
| 300 |
|
| 301 |
%changelog |
| 302 |
* #LONGDATE# Neal Gompa <[email protected]> #VERSION#~#BUILD##ALPHATAG#-0 |
| 303 |
- Update from git |