DeviceKit-power-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %define glib2_version 2.22.0
  2. %define dbus_version 1.2
  3. %define dbus_glib_version 0.82
  4. %define polkit_version 0.92
  5. %define parted_version 1.8.8
  6. Summary: Power Management Service
  7. Summary(ja): 電源管理サービス
  8. Name: DeviceKit-power
  9. Version: 013
  10. Release: 1%{?_dist_release}
  11. License: GPLv2+
  12. Group: System Environment/Libraries
  13. URL: http://cgit.freedesktop.org/DeviceKit/DeviceKit-power/
  14. Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
  15. Patch10: DeviceKit-power-011-gcc41.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. Requires(post): /sbin/ldconfig
  18. Requires(postun): /sbin/ldconfig
  19. BuildRequires: glib2-devel >= %{glib2_version}
  20. BuildRequires: dbus-devel >= %{dbus_version}
  21. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  22. BuildRequires: polkit-devel >= %{polkit_version}
  23. BuildRequires: sqlite3-devel
  24. BuildRequires: libtool
  25. BuildRequires: intltool
  26. BuildRequires: gettext
  27. BuildRequires: libgudev1-devel
  28. BuildRequires: libusb-devel
  29. Requires: dbus
  30. Requires: dbus-glib
  31. Requires: glib2
  32. Requires: polkit
  33. Requires: udev
  34. Requires: pm-utils
  35. %description
  36. DeviceKit-power provides a daemon, API and command line tools for
  37. managing power devices attached to the system.
  38. %package devel
  39. Summary: Headers and libraries for DeviceKit-power
  40. Summary(ja): %{name} の開発ファイル
  41. Group: Development/Libraries
  42. Requires: %{name} = %{version}-%{release}
  43. %description devel
  44. Headers and libraries for DeviceKit-power.
  45. %prep
  46. %setup -q
  47. %patch10 -p1 -b .gcc41
  48. %build
  49. %configure
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  55. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  56. mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
  57. cp README AUTHORS NEWS COPYING HACKING doc/TODO $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post -p /sbin/ldconfig
  61. %postun -p /sbin/ldconfig
  62. %files
  63. %defattr(-,root,root,-)
  64. %doc %dir %{_datadir}/doc/%{name}-%{version}
  65. %doc %{_datadir}/doc/%{name}-%{version}/NEWS
  66. %doc %{_datadir}/doc/%{name}-%{version}/COPYING
  67. %doc %{_datadir}/doc/%{name}-%{version}/AUTHORS
  68. %doc %{_datadir}/doc/%{name}-%{version}/HACKING
  69. %doc %{_datadir}/doc/%{name}-%{version}/README
  70. %doc %{_datadir}/doc/%{name}-%{version}/TODO
  71. %{_libdir}/libdevkit-power-gobject*.so.*
  72. %{_sysconfdir}/dbus-1/system.d/*.conf
  73. /lib/udev/rules.d/*.rules
  74. %dir %{_localstatedir}/lib/DeviceKit-power
  75. %{_bindir}/*
  76. %{_libexecdir}/*
  77. %{_mandir}/man1/*
  78. %{_mandir}/man7/*
  79. %{_mandir}/man8/*
  80. %{_datadir}/polkit-1/actions/*.policy
  81. %{_datadir}/dbus-1/system-services/*.service
  82. %files devel
  83. %defattr(-,root,root,-)
  84. %{_datadir}/dbus-1/interfaces/*.xml
  85. %dir %{_datadir}/gtk-doc/html/devkit-power
  86. %{_datadir}/gtk-doc/html/devkit-power/*
  87. %{_libdir}/libdevkit-power-gobject*.so
  88. %{_libdir}/pkgconfig/*.pc
  89. %dir %{_includedir}/DeviceKit-power/devkit-power-gobject
  90. %{_includedir}/DeviceKit-power/devkit-power-gobject/*.h
  91. %changelog
  92. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 013-1
  93. - new upstream release
  94. * Wed Nov 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 012-1
  95. - new upstream release
  96. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 011-1
  97. - initial build for Vine Linux
  98. * Mon Sep 14 2009 Richard Hughes <rhughes@redhat.com> - 011-0.1.20090914git
  99. - Update to todays git snapshot to fix the session exploding when a USB UPS is
  100. inserted then removed a few times.
  101. * Mon Aug 03 2009 Richard Hughes <richard@hughsie.com> - 010-4
  102. - Continue to poll when we guessed a status value, and only stop when the
  103. kernel says definitively that we are fully charged.
  104. * Sun Aug 02 2009 Richard Hughes <richard@hughsie.com> - 010-3
  105. - Put the development include files in the devel package not the main package.
  106. - Fixes #515104
  107. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 010-2
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  109. * Wed Jul 22 2009 Richard Hughes <richard@hughsie.com> - 010-1
  110. - Update to 010
  111. - Fixes a few problems with multi-battery laptops
  112. - Port to GUdev and PolicyKit1
  113. * Mon Jul 06 2009 Richard Hughes <richard@hughsie.com> - 009-1
  114. - Update to 009
  115. - Fixes many problems with multi-battery laptops
  116. - Use pm-powersave like HAL used to
  117. - Fix detecting UPS devices
  118. - Add support for recalled laptop batteries
  119. * Tue Jun 16 2009 Richard Hughes <rhughes@redhat.com> - 009-0.4.20090616git
  120. - Do autoreconf as well due to different values of automake on koji.
  121. * Tue Jun 16 2009 Richard Hughes <rhughes@redhat.com> - 009-0.3.20090616git
  122. - Do autoconf and automake as the polkit patch is pretty invasive
  123. - Fix up file lists with the new polkit action paths
  124. * Tue Jun 16 2009 Richard Hughes <rhughes@redhat.com> - 009-0.2.20090616git
  125. - Apply a patch to convert to the PolKit1 API.
  126. * Tue Jun 16 2009 Richard Hughes <rhughes@redhat.com> - 009-0.1.20090616git
  127. - Update to todays git snapshot to fix reporting issues with empty batteries.
  128. * Mon Jun 01 2009 Richard Hughes <richard@hughsie.com> 008-1
  129. - Update to 008
  130. - Fixes #497563 and #495493
  131. * Wed May 13 2009 Richard Hughes <rhughes@redhat.com> - 008-0.3.20090513git
  132. - Update to todays git snapshot which should fix some polling issues.
  133. - Fixes #495493
  134. * Thu May 07 2009 Richard Hughes <rhughes@redhat.com> - 008-0.2.20090507git
  135. - Update to todays git snapshot which has the lid close property.
  136. * Tue Apr 01 2009 Richard Hughes <rhughes@redhat.com> - 008-0.1.20090401git
  137. - Update to todays git snapshot which works with the new permissive DBus.
  138. * Mon Mar 30 2009 Richard Hughes <richard@hughsie.com> 007-2
  139. - Try to fix a compile error with koji and the new gcc.
  140. * Mon Mar 30 2009 Richard Hughes <richard@hughsie.com> 007-1
  141. - Update to 007
  142. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006-3
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  144. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006-2
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  146. * Mon Feb 10 2009 Richard Hughes <richard@hughsie.com> 006-1
  147. - Update to 006
  148. * Mon Feb 02 2009 Richard Hughes <richard@hughsie.com> 005-1
  149. - Update to 005
  150. * Fri Jan 23 2009 Richard Hughes <richard@hughsie.com> 004-1
  151. - Update to 004
  152. * Tue Dec 09 2008 Richard Hughes <richard@hughsie.com> 003-1
  153. - Update to 003
  154. * Thu Nov 13 2008 Matthias Clasen <mclasen@redhat.com> 002-1
  155. - Update to 002
  156. * Sat Sep 06 2008 Richard Hughes <richard@hughsie.com> 001-2
  157. - Fix the licence, and some directory ownership issues for the review request
  158. * Tue Sep 02 2008 Richard Hughes <richard@hughsie.com> 001-1
  159. - Initial spec file