PackageKit-vl.spec 7.8 KB

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