| 1 | %define _unpackaged_files_terminate_build 1 |
|---|
| 2 | |
|---|
| 3 | # Basic Information |
|---|
| 4 | Name: PackageKit |
|---|
| 5 | Version: 1.1.12 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | License: GPLv2 |
|---|
| 8 | Group: Applications/System |
|---|
| 9 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz |
|---|
| 10 | Source100: filter-requires-%{name}.sh |
|---|
| 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 |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | # for VineLinux |
|---|
| 19 | Patch100: PackageKit-0.7.1-backend-aptcc-vine.patch |
|---|
| 20 | |
|---|
| 21 | Vendor: Project Vine |
|---|
| 22 | Distribution: Vine Linux |
|---|
| 23 | Packager: yasumichi, Takemikaduchi |
|---|
| 24 | |
|---|
| 25 | Summary: A DBUS packaging abstraction layer |
|---|
| 26 | Summary(ja): DBUS のパッケージング抽象レイヤ |
|---|
| 27 | |
|---|
| 28 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 29 | |
|---|
| 30 | # Dependency |
|---|
| 31 | BuildRequires: glib2-devel |
|---|
| 32 | BuildRequires: dbus-devel |
|---|
| 33 | BuildRequires: dbus-glib-devel |
|---|
| 34 | BuildRequires: libgudev1-devel |
|---|
| 35 | BuildRequires: pm-utils-devel |
|---|
| 36 | BuildRequires: polkit-devel |
|---|
| 37 | BuildRequires: NetworkManager-devel |
|---|
| 38 | BuildRequires: sqlite3-devel |
|---|
| 39 | BuildRequires: gtk3-devel |
|---|
| 40 | BuildRequires: gtk2-devel |
|---|
| 41 | BuildRequires: gobject-introspection-devel |
|---|
| 42 | BuildRequires: gstreamer1-devel |
|---|
| 43 | BuildRequires: gstreamer1-plugins-base-devel |
|---|
| 44 | BuildRequires: apt-devel |
|---|
| 45 | BuildRequires: gtk-doc |
|---|
| 46 | BuildRequires: python |
|---|
| 47 | BuildRequires: bash-completion |
|---|
| 48 | |
|---|
| 49 | # Don't depend on Debconf::Client::ConfModule |
|---|
| 50 | %define __perl_requires %{SOURCE100} |
|---|
| 51 | |
|---|
| 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} |
|---|
| 71 | Requires: glib2-devel |
|---|
| 72 | Requires: dbus-devel |
|---|
| 73 | Requires: sqlite3-devel |
|---|
| 74 | Requires: pkgconfig |
|---|
| 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 |
|---|
| 95 | #%patch100 -p1 -b .vine |
|---|
| 96 | |
|---|
| 97 | cp -f \ |
|---|
| 98 | %{SOURCE1000} \ |
|---|
| 99 | %{SOURCE1001} \ |
|---|
| 100 | %{SOURCE1002} \ |
|---|
| 101 | m4/ |
|---|
| 102 | |
|---|
| 103 | %build |
|---|
| 104 | autoreconf -if |
|---|
| 105 | %configure \ |
|---|
| 106 | --disable-static \ |
|---|
| 107 | --disable-systemd \ |
|---|
| 108 | --disable-qt \ |
|---|
| 109 | --disable-systemd \ |
|---|
| 110 | --disable-systemd-updates |
|---|
| 111 | # --enable-aptcc \ |
|---|
| 112 | # --with-default-backend=aptcc |
|---|
| 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 | |
|---|
| 121 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
|---|
| 122 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
|---|
| 123 | |
|---|
| 124 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/app-info/{icons,xmls} |
|---|
| 125 | |
|---|
| 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 | |
|---|
| 143 | %clean |
|---|
| 144 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 145 | |
|---|
| 146 | %post -p /sbin/ldconfig |
|---|
| 147 | |
|---|
| 148 | %postun -p /sbin/ldconfig |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | %files -f %{name}.lang |
|---|
| 152 | %defattr(-,root,root) |
|---|
| 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 |
|---|
| 180 | %{_bindir}/pkcon |
|---|
| 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.* |
|---|
| 196 | %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
|---|
| 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/* |
|---|
| 209 | %{_libexecdir}/pk-command-not-found |
|---|
| 210 | %config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf |
|---|
| 211 | |
|---|
| 212 | %files devel |
|---|
| 213 | %defattr(-, root, root) |
|---|
| 214 | %{_libdir}/libpackagekit-glib2.so |
|---|
| 215 | %{_libdir}/pkgconfig/packagekit-glib2.pc |
|---|
| 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 |
|---|
| 222 | |
|---|
| 223 | %files doc |
|---|
| 224 | %defattr(-, root, root) |
|---|
| 225 | %{_datadir}/gtk-doc/html/PackageKit |
|---|
| 226 | |
|---|
| 227 | %changelog |
|---|
| 228 | * Mon Dec 10 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.12-1 |
|---|
| 229 | - new upstream release. |
|---|
| 230 | |
|---|
| 231 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.17-1 |
|---|
| 232 | - new upstream release |
|---|
| 233 | |
|---|
| 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 | |
|---|
| 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 | |
|---|
| 242 | * Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.6-1 |
|---|
| 243 | - new upstream release |
|---|
| 244 | |
|---|
| 245 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.5-1 |
|---|
| 246 | - new upstream release |
|---|
| 247 | |
|---|
| 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 | |
|---|
| 253 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-3 |
|---|
| 254 | - rebuild with python-2.7.2 |
|---|
| 255 | |
|---|
| 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 | |
|---|
| 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 | |
|---|
| 265 | * Sat Sep 17 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.7.0-1 |
|---|
| 266 | - initial build for Vine Linux |
|---|