[12454] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
[11983] | 3 | %define _unpackaged_files_terminate_build 1 |
---|
| 4 | %global __global_cflags %{optflags} |
---|
| 5 | %global __global_ldflags "" |
---|
| 6 | |
---|
[5349] | 7 | Summary: A PackageKit client for the GNOME desktop |
---|
[12454] | 8 | Summary(ja): GNOMEデスクトップ向けのPackageKitクライアント |
---|
[5349] | 9 | Name: gnome-packagekit |
---|
[12454] | 10 | Version: 3.32.0 |
---|
| 11 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 12 | Group: desktop-gnome,admin-tools |
---|
| 13 | Vendor: Project Vine |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | |
---|
[5349] | 16 | License: GPLv2 |
---|
[12454] | 17 | URL: https://www.freedesktop.org/software/PackageKit/ |
---|
| 18 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
| 19 | Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
[5349] | 20 | |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | |
---|
[12454] | 23 | BuildRequires: meson |
---|
[11983] | 24 | BuildRequires: glib2-devel >= 2.25.8 |
---|
| 25 | BuildRequires: gtk3-devel |
---|
| 26 | BuildRequires: libnotify-devel >= 0.7.0 |
---|
| 27 | BuildRequires: desktop-file-utils |
---|
| 28 | BuildRequires: gettext |
---|
| 29 | BuildRequires: libtool |
---|
| 30 | BuildRequires: cairo-devel |
---|
| 31 | BuildRequires: startup-notification-devel |
---|
| 32 | BuildRequires: PackageKit-devel >= 0.5.0 |
---|
| 33 | BuildRequires: xorg-x11-proto-devel |
---|
| 34 | BuildRequires: fontconfig-devel |
---|
| 35 | BuildRequires: libcanberra-devel |
---|
| 36 | BuildRequires: libgudev1-devel |
---|
| 37 | BuildRequires: libxslt |
---|
| 38 | BuildRequires: docbook-utils |
---|
| 39 | BuildRequires: polkit-devel |
---|
| 40 | BuildRequires: itstool |
---|
| 41 | BuildRequires: libappstream-glib |
---|
[5349] | 42 | BuildRequires: dbus-glib-devel |
---|
| 43 | BuildRequires: upower-devel |
---|
| 44 | BuildRequires: libcanberra-gtk3-devel |
---|
[6890] | 45 | BuildRequires: yelp-tools |
---|
[12454] | 46 | %if %{with systemd} |
---|
| 47 | BuildRequires: systemd-devel |
---|
| 48 | %{?systemd_requires} |
---|
| 49 | %endif |
---|
[5349] | 50 | |
---|
| 51 | %description |
---|
| 52 | gnome-packagekit are PackageKit client programs designed for the GNOME desktop. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -q |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %build |
---|
[11983] | 60 | export LANG=ja_JP.UTF-8 |
---|
[5349] | 61 | |
---|
[11983] | 62 | %meson \ |
---|
[12454] | 63 | %if !%{with systemd} |
---|
[11983] | 64 | -Dsystemd=false |
---|
[12454] | 65 | %endif |
---|
| 66 | %{nil} |
---|
[11983] | 67 | %meson_build |
---|
[5349] | 68 | |
---|
[12454] | 69 | |
---|
[5349] | 70 | %install |
---|
| 71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[11983] | 72 | %meson_install |
---|
[5349] | 73 | |
---|
[11983] | 74 | # use gnome-software for installing local files |
---|
| 75 | rm -f $RPM_BUILD_ROOT%{_datadir}/applications/gpk-install-local-file.desktop |
---|
| 76 | |
---|
[5349] | 77 | %find_lang %{name} --with-gnome |
---|
| 78 | |
---|
[12454] | 79 | |
---|
[5349] | 80 | %clean |
---|
| 81 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 82 | |
---|
[12454] | 83 | |
---|
[5349] | 84 | %post |
---|
| 85 | /sbin/ldconfig |
---|
| 86 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 87 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 88 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 89 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 90 | fi |
---|
| 91 | |
---|
| 92 | %postun |
---|
| 93 | /sbin/ldconfig |
---|
| 94 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 95 | if [ $1 -eq 0 ]; then |
---|
| 96 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 97 | fi |
---|
| 98 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 99 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 100 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | %posttrans |
---|
| 104 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | %files -f %{name}.lang |
---|
| 109 | %defattr(-,root,root,-) |
---|
[11983] | 110 | %license COPYING |
---|
| 111 | %doc AUTHORS README |
---|
[5349] | 112 | %{_bindir}/gpk-log |
---|
| 113 | %{_bindir}/gpk-prefs |
---|
[11983] | 114 | %dir %{_datadir}/gnome-packagekit |
---|
| 115 | %dir %{_datadir}/gnome-packagekit/icons |
---|
| 116 | %dir %{_datadir}/gnome-packagekit/icons/hicolor |
---|
| 117 | %dir %{_datadir}/gnome-packagekit/icons/hicolor/* |
---|
| 118 | %dir %{_datadir}/gnome-packagekit/icons/hicolor/*/* |
---|
| 119 | %{_datadir}/gnome-packagekit/icons/hicolor/*/*/*.png |
---|
| 120 | %{_datadir}/gnome-packagekit/icons/hicolor/scalable/*/*.svg* |
---|
| 121 | %{_datadir}/icons/hicolor/scalable/*/*.svg* |
---|
| 122 | %{_datadir}/applications/gpk-log.desktop |
---|
| 123 | %{_datadir}/applications/gpk-prefs.desktop |
---|
| 124 | %{_datadir}/glib-2.0/schemas/org.gnome.packagekit.gschema.xml |
---|
| 125 | %{_datadir}/GConf/gsettings/org.gnome.packagekit.gschema.migrate |
---|
| 126 | %{_mandir}/man1/gpk-log.1* |
---|
| 127 | %{_mandir}/man1/gpk-prefs.1* |
---|
| 128 | # |
---|
| 129 | %{_bindir}/gpk-application |
---|
| 130 | %{_datadir}/applications/org.gnome.Packages.desktop |
---|
| 131 | %{_datadir}/metainfo/org.gnome.Packages.appdata.xml |
---|
| 132 | %{_mandir}/man1/gpk-application.1* |
---|
| 133 | # |
---|
[5349] | 134 | %{_bindir}/gpk-update-viewer |
---|
[11983] | 135 | %{_datadir}/applications/org.gnome.PackageUpdater.desktop |
---|
| 136 | %{_datadir}/metainfo/org.gnome.PackageUpdater.appdata.xml |
---|
| 137 | %{_mandir}/man1/gpk-update-viewer.1* |
---|
[5349] | 138 | |
---|
[11983] | 139 | %changelog |
---|
[12454] | 140 | * Sat Aug 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.32.0-1 |
---|
| 141 | - new upstream release. |
---|
| 142 | |
---|
[11983] | 143 | * Tue Dec 11 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.30.0-1 |
---|
| 144 | - new upstream release. |
---|
[5349] | 145 | |
---|
[8355] | 146 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[8152] | 149 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[7681] | 152 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[7119] | 155 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.1-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[6890] | 158 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.0-1 |
---|
| 159 | - new upstream release |
---|
| 160 | - change BuildRequires: yelp-tools instead of gnome-doc-utils |
---|
| 161 | |
---|
[5701] | 162 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-2 |
---|
| 163 | - rebuild with python-2.7.2 |
---|
| 164 | |
---|
[5349] | 165 | * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1 |
---|
| 166 | - initial build for Vine Linux |
---|
| 167 | |
---|