PackageKit-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # Basic Information
  2. Name: PackageKit
  3. Version: 0.7.1
  4. Release: 2%{?_dist_release}
  5. License: GPLv2
  6. Group: Applications/System
  7. Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
  8. Source100: filter-requires-%{name}.sh
  9. # for VineLinux
  10. Patch100: PackageKit-0.7.1-backend-aptcc-vine.patch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: A DBUS packaging abstraction layer
  15. Summary(ja): DBUS のパッケージング抽象レイヤ
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. # Dependency
  18. BuildRequires: glib2-devel
  19. BuildRequires: dbus-devel
  20. BuildRequires: dbus-glib-devel
  21. BuildRequires: libgudev1-devel
  22. BuildRequires: pm-utils-devel
  23. BuildRequires: polkit-devel
  24. BuildRequires: NetworkManager-devel
  25. BuildRequires: sqlite3-devel
  26. BuildRequires: gtk3-devel
  27. BuildRequires: gstreamer-plugins-base-devel
  28. BuildRequires: apt-devel
  29. BuildRequires: gtk-doc
  30. BuildRequires: python
  31. # Don't depend on Debconf::Client::ConfModule
  32. %define __perl_requires %{SOURCE100}
  33. %description
  34. PackageKit is a DBUS abstraction layer that allows the session user to
  35. manage packages in a secure way using a cross-distro, cross-architecture
  36. API.
  37. For more information, please see http://www.packagekit.org
  38. %description -l ja
  39. PackageKit は、安全な方法でセッションのユーザーにパッケージ管理を許可する
  40. DBUS の抽象レイヤです。ディストリビューションやアーキテクチャーをまたいだ
  41. API を利用しています。
  42. より詳しい情報は、 http://www.packagekit.org をご覧ください。
  43. %package devel
  44. Summary: Development enviroment for PackageKit
  45. Summary(ja): PackageKit の開発環境
  46. Group: Development/Libraries
  47. Requires: %{name} = %{version}-%{release}
  48. Requires: glib2-devel
  49. Requires: dbus-devel
  50. Requires: sqlite3-devel
  51. Requires: pkgconfig
  52. %description devel
  53. Header file and libraries for developping PackageKit.
  54. %description -l ja devel
  55. PackageKit で開発を行うためのヘッダファイルとライブラリ
  56. %package doc
  57. Summary: Documants of PackageKit
  58. Summary(ja): PackageKit のドキュメント
  59. Group: Applications/Documentation
  60. %description doc
  61. HTML documents of PackageKit
  62. %description -l ja doc
  63. PackageKit の HTML ドキュメント
  64. %prep
  65. %setup -q
  66. %patch100 -p1 -b .vine
  67. %build
  68. sed -i 's|2.7|2.6|g' configure.ac
  69. autoreconf -if
  70. %configure --disable-static --enable-aptcc --disable-qt --with-default-backend=aptcc
  71. %{__make} %{?_smp_mflags}
  72. %install
  73. %{__rm} -rf ${RPM_BUILD_ROOT}
  74. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  75. %find_lang %{name}
  76. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  77. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  78. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/glib-2.0/schemas/org.gnome.setttings-daemon.gtk-modules-packagekit.gschema.xml
  79. %clean
  80. %{__rm} -rf ${RPM_BUILD_ROOT}
  81. %post -p /sbin/ldconfig
  82. %postun
  83. /sbin/ldconfig
  84. if [ $1 -eq 0 ]; then
  85. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  86. fi
  87. %posttrans
  88. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  89. %files -f %{name}.lang
  90. %defattr(-,root,root)
  91. %doc AUTHORS COPYING HACKING MAINTAINERS NEWS README TODO
  92. %{_sysconfdir}/PackageKit
  93. %{_sysconfdir}/apt/apt.conf.d/20packagekit
  94. %{_sysconfdir}/bash_completion.d/pk-completion.bash
  95. %{_sysconfdir}/cron.daily/packagekit-background.cron
  96. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
  97. %{_sysconfdir}/profile.d/PackageKit.sh
  98. %{_sysconfdir}/sysconfig/packagekit-background
  99. %{_bindir}/packagekit-bugreport.sh
  100. %{_bindir}/pk-debuginfo-install
  101. %{_bindir}/pkcon
  102. %{_bindir}/pkgenpack
  103. %{_bindir}/pkmon
  104. %{python_sitelib}/packagekit
  105. %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib
  106. %{_libdir}/girepository-1.0/PackageKitPlugin-1.0.typelib
  107. %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop
  108. %{_libdir}/gtk-3.0/modules/libpk-gtk-module.so
  109. %{_libdir}/libpackagekit-glib2.so.*
  110. %{_libdir}/packagekit-backend
  111. %{_libdir}/packagekit-plugins
  112. %{_libdir}/pm-utils/sleep.d/95packagekit
  113. %{_libexecdir}/packagekitd
  114. %{_libexecdir}/pk-command-not-found
  115. %{_libexecdir}/pk-gstreamer-install
  116. %{_sbindir}/pk-device-rebind
  117. %{_datadir}/PackageKit
  118. %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml
  119. %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml
  120. %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service
  121. %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir
  122. %{_datadir}/gir-1.0/PackageKitPlugin-1.0.gir
  123. %{_mandir}/man1/pk-debuginfo-install.1*
  124. %{_mandir}/man1/pk-device-rebind.1.gz
  125. %{_mandir}/man1/pkcon.1*
  126. %{_mandir}/man1/pkgenpack.1*
  127. %{_mandir}/man1/pkmon.1*
  128. %{_datadir}/mime/packages/packagekit-catalog.xml
  129. %{_datadir}/mime/packages/packagekit-package-list.xml
  130. %{_datadir}/mime/packages/packagekit-servicepack.xml
  131. %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy
  132. %{_localstatedir}/lib/PackageKit/transactions.db
  133. %exclude %{_datadir}/PackageKit/website
  134. %files devel
  135. %defattr(-, root, root)
  136. %{_includedir}/PackageKit
  137. %{_libdir}/libpackagekit-glib2.so
  138. %{_libdir}/pkgconfig/packagekit-glib2.pc
  139. %{_libdir}/pkgconfig/packagekit-plugin.pc
  140. %files doc
  141. %defattr(-, root, root)
  142. %{_datadir}/gtk-doc/html/PackageKit
  143. %{_datadir}/PackageKit/website
  144. %changelog
  145. * Mon Jan 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-2
  146. - add Patch100 (PackageKit-0.7.1-backend-aptcc-vine.patch)
  147. - add Source100 (filter-requires-PackageKit.sh)
  148. - add BuildRequires: apt-devel
  149. * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
  150. - new upstream release
  151. - add BuildRequires libgudev1-devel, pm-utils-devel
  152. * Sat Sep 17 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.7.0-1
  153. - initial build for Vine Linux