[11983] | 1 | %define _unpackaged_files_terminate_build 1 |
---|
| 2 | |
---|
[4768] | 3 | # Basic Information |
---|
| 4 | Name: PackageKit |
---|
[11983] | 5 | Version: 1.1.12 |
---|
[6890] | 6 | Release: 1%{?_dist_release} |
---|
[4768] | 7 | License: GPLv2 |
---|
| 8 | Group: Applications/System |
---|
| 9 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz |
---|
[5382] | 10 | Source100: filter-requires-%{name}.sh |
---|
[11983] | 11 | # from autoconf-archive-2018.03.13 |
---|
| 12 | # https://www.gnu.org/software/autoconf-archive/ |
---|
| 13 | Source1000: ax_cxx_compile_stdcxx.m4 |
---|
| 14 | Source1001: ax_cxx_compile_stdcxx_11.m4 |
---|
| 15 | Source1002: ax_cxx_compile_stdcxx_14.m4 |
---|
[4768] | 16 | |
---|
[11983] | 17 | |
---|
[5382] | 18 | # for VineLinux |
---|
| 19 | Patch100: PackageKit-0.7.1-backend-aptcc-vine.patch |
---|
| 20 | |
---|
[4768] | 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
[8152] | 23 | Packager: yasumichi, Takemikaduchi |
---|
[4768] | 24 | |
---|
| 25 | Summary: A DBUS packaging abstraction layer |
---|
| 26 | Summary(ja): DBUS のパッケージング抽象レイヤ |
---|
| 27 | |
---|
[5382] | 28 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 29 | |
---|
[4768] | 30 | # Dependency |
---|
| 31 | BuildRequires: glib2-devel |
---|
| 32 | BuildRequires: dbus-devel |
---|
| 33 | BuildRequires: dbus-glib-devel |
---|
[5348] | 34 | BuildRequires: libgudev1-devel |
---|
| 35 | BuildRequires: pm-utils-devel |
---|
[4768] | 36 | BuildRequires: polkit-devel |
---|
| 37 | BuildRequires: NetworkManager-devel |
---|
| 38 | BuildRequires: sqlite3-devel |
---|
| 39 | BuildRequires: gtk3-devel |
---|
[6890] | 40 | BuildRequires: gtk2-devel |
---|
[11983] | 41 | BuildRequires: gobject-introspection-devel |
---|
| 42 | BuildRequires: gstreamer1-devel |
---|
| 43 | BuildRequires: gstreamer1-plugins-base-devel |
---|
[5382] | 44 | BuildRequires: apt-devel |
---|
[4768] | 45 | BuildRequires: gtk-doc |
---|
| 46 | BuildRequires: python |
---|
[7681] | 47 | BuildRequires: bash-completion |
---|
[4768] | 48 | |
---|
[5382] | 49 | # Don't depend on Debconf::Client::ConfModule |
---|
| 50 | %define __perl_requires %{SOURCE100} |
---|
| 51 | |
---|
[4768] | 52 | %description |
---|
| 53 | PackageKit is a DBUS abstraction layer that allows the session user to |
---|
| 54 | manage packages in a secure way using a cross-distro, cross-architecture |
---|
| 55 | API. |
---|
| 56 | |
---|
| 57 | For more information, please see http://www.packagekit.org |
---|
| 58 | |
---|
| 59 | %description -l ja |
---|
| 60 | PackageKit は、安全な方法でセッションのユーザーにパッケージ管理を許可する |
---|
| 61 | DBUS の抽象レイヤです。ディストリビューションやアーキテクチャーをまたいだ |
---|
| 62 | API を利用しています。 |
---|
| 63 | |
---|
| 64 | より詳しい情報は、 http://www.packagekit.org をご覧ください。 |
---|
| 65 | |
---|
| 66 | %package devel |
---|
| 67 | Summary: Development enviroment for PackageKit |
---|
| 68 | Summary(ja): PackageKit の開発環境 |
---|
| 69 | Group: Development/Libraries |
---|
| 70 | Requires: %{name} = %{version}-%{release} |
---|
[5348] | 71 | Requires: glib2-devel |
---|
| 72 | Requires: dbus-devel |
---|
| 73 | Requires: sqlite3-devel |
---|
| 74 | Requires: pkgconfig |
---|
[4768] | 75 | |
---|
| 76 | %description devel |
---|
| 77 | Header file and libraries for developping PackageKit. |
---|
| 78 | |
---|
| 79 | %description -l ja devel |
---|
| 80 | PackageKit で開発を行うためのヘッダファイルとライブラリ |
---|
| 81 | |
---|
| 82 | %package doc |
---|
| 83 | Summary: Documants of PackageKit |
---|
| 84 | Summary(ja): PackageKit のドキュメント |
---|
| 85 | Group: Applications/Documentation |
---|
| 86 | |
---|
| 87 | %description doc |
---|
| 88 | HTML documents of PackageKit |
---|
| 89 | |
---|
| 90 | %description -l ja doc |
---|
| 91 | PackageKit の HTML ドキュメント |
---|
| 92 | |
---|
| 93 | %prep |
---|
| 94 | %setup -q |
---|
[6890] | 95 | #%patch100 -p1 -b .vine |
---|
[4768] | 96 | |
---|
[11983] | 97 | cp -f \ |
---|
| 98 | %{SOURCE1000} \ |
---|
| 99 | %{SOURCE1001} \ |
---|
| 100 | %{SOURCE1002} \ |
---|
| 101 | m4/ |
---|
| 102 | |
---|
[4768] | 103 | %build |
---|
[5348] | 104 | autoreconf -if |
---|
[6890] | 105 | %configure \ |
---|
| 106 | --disable-static \ |
---|
| 107 | --disable-systemd \ |
---|
[8152] | 108 | --disable-qt \ |
---|
| 109 | --disable-systemd \ |
---|
| 110 | --disable-systemd-updates |
---|
[6890] | 111 | # --enable-aptcc \ |
---|
| 112 | # --with-default-backend=aptcc |
---|
[4768] | 113 | %{__make} %{?_smp_mflags} |
---|
| 114 | |
---|
| 115 | %install |
---|
| 116 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 117 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 118 | |
---|
| 119 | %find_lang %{name} |
---|
| 120 | |
---|
[5348] | 121 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 122 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
[4768] | 123 | |
---|
[11983] | 124 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/app-info/{icons,xmls} |
---|
[5348] | 125 | |
---|
[11983] | 126 | touch $RPM_BUILD_ROOT%{_localstatedir}/cache/PackageKit/groups.sqlite |
---|
| 127 | |
---|
| 128 | # create a link that GStreamer will recognise |
---|
| 129 | pushd ${RPM_BUILD_ROOT}%{_libexecdir} > /dev/null |
---|
| 130 | ln -s pk-gstreamer-install gst-install-plugins-helper |
---|
| 131 | popd > /dev/null |
---|
| 132 | |
---|
| 133 | # create a link that from the comps icons to PK, as PackageKit frontends |
---|
| 134 | # cannot add /usr/share/pixmaps/comps to the icon search path as some distros |
---|
| 135 | # do not use comps. Patching this in the frontend is not a good idea, as there |
---|
| 136 | # are multiple frontends in multiple programming languages. |
---|
| 137 | pushd ${RPM_BUILD_ROOT}%{_datadir}/PackageKit > /dev/null |
---|
| 138 | ln -s ../pixmaps/comps icons |
---|
| 139 | popd > /dev/null |
---|
| 140 | |
---|
| 141 | %find_lang %name |
---|
| 142 | |
---|
[4768] | 143 | %clean |
---|
| 144 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 145 | |
---|
[5348] | 146 | %post -p /sbin/ldconfig |
---|
[4768] | 147 | |
---|
[7119] | 148 | %postun -p /sbin/ldconfig |
---|
[5348] | 149 | |
---|
| 150 | |
---|
[4768] | 151 | %files -f %{name}.lang |
---|
| 152 | %defattr(-,root,root) |
---|
[11983] | 153 | %license COPYING |
---|
| 154 | %doc AUTHORS COPYING HACKING MAINTAINERS NEWS README |
---|
| 155 | %dir %{_datadir}/PackageKit |
---|
| 156 | %dir %{_datadir}/PackageKit/helpers |
---|
| 157 | %dir %{_sysconfdir}/PackageKit |
---|
| 158 | %dir %{_localstatedir}/lib/PackageKit |
---|
| 159 | %dir %{_localstatedir}/cache/app-info |
---|
| 160 | %dir %{_localstatedir}/cache/app-info/icons |
---|
| 161 | %dir %{_localstatedir}/cache/app-info/xmls |
---|
| 162 | %dir %{_localstatedir}/cache/PackageKit |
---|
| 163 | %ghost %verify(not md5 size mtime) %{_localstatedir}/cache/PackageKit/groups.sqlite |
---|
| 164 | %{_datadir}/bash-completion/completions/pkcon |
---|
| 165 | %dir %{_libdir}/packagekit-backend |
---|
| 166 | %config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf |
---|
| 167 | %config(noreplace) %{_sysconfdir}/PackageKit/Vendor.conf |
---|
| 168 | %config %{_sysconfdir}/dbus-1/system.d/* |
---|
| 169 | %dir %{_datadir}/PackageKit/helpers/test_spawn |
---|
| 170 | %{_datadir}/PackageKit/icons |
---|
| 171 | %{_datadir}/PackageKit/helpers/test_spawn/* |
---|
| 172 | %{_datadir}/man/man1/pkcon.1.gz |
---|
| 173 | %{_datadir}/man/man1/pkmon.1.gz |
---|
| 174 | %{_datadir}/polkit-1/actions/*.policy |
---|
| 175 | %{_datadir}/polkit-1/rules.d/* |
---|
| 176 | %{_datadir}/PackageKit/pk-upgrade-distro.sh |
---|
| 177 | %{_libexecdir}/packagekitd |
---|
| 178 | %{_libexecdir}/packagekit-direct |
---|
| 179 | %{_bindir}/pkmon |
---|
[4768] | 180 | %{_bindir}/pkcon |
---|
[11983] | 181 | %{_libdir}/packagekit-backend/libpk_backend_dummy.so |
---|
| 182 | %{_libdir}/packagekit-backend/libpk_backend_test_*.so |
---|
| 183 | %if 0%{?bundled_libdnf} |
---|
| 184 | %{_libdir}/PackageKit/ |
---|
| 185 | %endif |
---|
| 186 | %ghost %verify(not md5 size mtime) %{_localstatedir}/lib/PackageKit/transactions.db |
---|
| 187 | %{_datadir}/dbus-1/system-services/*.service |
---|
| 188 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
| 189 | #%{_unitdir}/packagekit-offline-update.service |
---|
| 190 | #%{_unitdir}/packagekit.service |
---|
| 191 | #%{_unitdir}/system-update.target.wants/ |
---|
| 192 | #%{_libexecdir}/pk-*offline-update |
---|
| 193 | #%{_libdir}/packagekit-backend/libpk_backend_dnf.so |
---|
| 194 | # |
---|
| 195 | %{_libdir}/*packagekit-glib2.so.* |
---|
[4768] | 196 | %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
---|
[11983] | 197 | # |
---|
| 198 | %config %{_sysconfdir}/cron.daily/packagekit-background.cron |
---|
| 199 | %config(noreplace) %{_sysconfdir}/sysconfig/packagekit-background |
---|
| 200 | # |
---|
| 201 | %{_libexecdir}/pk-gstreamer-install |
---|
| 202 | %{_libexecdir}/gst-install-plugins-helper |
---|
| 203 | # |
---|
| 204 | %{_libdir}/gtk-2.0/modules/*.so |
---|
| 205 | %{_libdir}/gtk-3.0/modules/*.so |
---|
| 206 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/*.desktop |
---|
| 207 | # |
---|
| 208 | %{_sysconfdir}/profile.d/* |
---|
[4768] | 209 | %{_libexecdir}/pk-command-not-found |
---|
[11983] | 210 | %config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf |
---|
[4768] | 211 | |
---|
| 212 | %files devel |
---|
| 213 | %defattr(-, root, root) |
---|
| 214 | %{_libdir}/libpackagekit-glib2.so |
---|
| 215 | %{_libdir}/pkgconfig/packagekit-glib2.pc |
---|
[11983] | 216 | %dir %{_includedir}/PackageKit |
---|
| 217 | %dir %{_includedir}/PackageKit/packagekit-glib2 |
---|
| 218 | %{_includedir}/PackageKit/packagekit-glib*/*.h |
---|
| 219 | %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir |
---|
| 220 | %{_datadir}/gtk-doc/html/PackageKit |
---|
| 221 | %{_datadir}/vala/vapi/packagekit-glib2.vapi |
---|
[4768] | 222 | |
---|
| 223 | %files doc |
---|
| 224 | %defattr(-, root, root) |
---|
| 225 | %{_datadir}/gtk-doc/html/PackageKit |
---|
| 226 | |
---|
| 227 | %changelog |
---|
[11983] | 228 | * Mon Dec 10 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.12-1 |
---|
| 229 | - new upstream release. |
---|
| 230 | |
---|
[8355] | 231 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.17-1 |
---|
| 232 | - new upstream release |
---|
| 233 | |
---|
[8152] | 234 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.15-1 |
---|
| 235 | - new upstream release |
---|
| 236 | - add configure option (--disable-systemd, --disable-systemd-updates) |
---|
| 237 | |
---|
[7681] | 238 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.8-1 |
---|
| 239 | - new upstream release |
---|
| 240 | - add BuildRequires: bash-completion |
---|
| 241 | |
---|
[7303] | 242 | * Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.6-1 |
---|
| 243 | - new upstream release |
---|
| 244 | |
---|
[7119] | 245 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.5-1 |
---|
| 246 | - new upstream release |
---|
| 247 | |
---|
[6890] | 248 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.3-1 |
---|
| 249 | - new upstream release |
---|
| 250 | - drop Patch100 |
---|
| 251 | - add BuildRequires: gtk2-devel |
---|
| 252 | |
---|
[5701] | 253 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-3 |
---|
| 254 | - rebuild with python-2.7.2 |
---|
| 255 | |
---|
[5382] | 256 | * Mon Jan 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-2 |
---|
| 257 | - add Patch100 (PackageKit-0.7.1-backend-aptcc-vine.patch) |
---|
| 258 | - add Source100 (filter-requires-PackageKit.sh) |
---|
| 259 | - add BuildRequires: apt-devel |
---|
| 260 | |
---|
[5348] | 261 | * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1 |
---|
| 262 | - new upstream release |
---|
| 263 | - add BuildRequires libgudev1-devel, pm-utils-devel |
---|
| 264 | |
---|
[4768] | 265 | * Sat Sep 17 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.7.0-1 |
---|
| 266 | - initial build for Vine Linux |
---|