upower-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Summary: Power Management Service
  2. Summary(ja): 電源管理サービス
  3. Name: upower
  4. Version: 0.9.2
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://hal.freedesktop.org/releases/
  9. Source0: http://hal.freedesktop.org/releases/upower-%{version}.tar.bz2
  10. ## Patch for vine
  11. ## add compile rule of typelib
  12. Patch0: upower-0.9.2-libupower-glib-vine.patch
  13. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  14. BuildRequires: sqlite3-devel
  15. BuildRequires: libtool
  16. BuildRequires: intltool
  17. BuildRequires: gettext
  18. BuildRequires: libgudev1-devel
  19. BuildRequires: libusb-devel
  20. BuildRequires: glib2-devel >= 2.6.0
  21. BuildRequires: dbus-devel >= 1.2
  22. BuildRequires: dbus-glib-devel >= 0.82
  23. BuildRequires: polkit-devel >= 0.92
  24. BuildRequires: gobject-introspection-devel
  25. BuildRequires: gir-repository-devel
  26. BuildRequires: gtk-doc
  27. Requires: polkit >= 0.92
  28. Requires: udev
  29. Requires: pm-utils >= 1.2.2.1
  30. Requires: gobject-introspection
  31. # Old project name
  32. Obsoletes: DeviceKit-power < 1:0.9.0-2
  33. Provides: DeviceKit-power
  34. %description
  35. UPower (formerly DeviceKit-power) provides a daemon, API and command
  36. line tools for managing power devices attached to the system.
  37. %package devel
  38. Summary: Headers and libraries for UPower
  39. Summary(ja): %{name} の開発ファイル
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: gtk-doc
  43. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  44. Provides: DeviceKit-power-devel
  45. %description devel
  46. Headers and libraries for UPower.
  47. %prep
  48. %setup -q
  49. %patch0 -p1 -b .vine
  50. %build
  51. %configure --enable-gtk-doc --disable-static --enable-introspection=yes
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make install DESTDIR=$RPM_BUILD_ROOT
  56. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  57. %find_lang UPower
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post -p /sbin/ldconfig
  61. %postun -p /sbin/ldconfig
  62. %files -f UPower.lang
  63. %defattr(-,root,root,-)
  64. %doc NEWS COPYING AUTHORS HACKING README
  65. %{_libdir}/libdevkit-power-gobject*.so.*
  66. %{_libdir}/libupower-glib.so.*
  67. %{_sysconfdir}/dbus-1/system.d/*.conf
  68. /lib/udev/rules.d/*.rules
  69. %dir %{_localstatedir}/lib/upower
  70. %{_bindir}/*
  71. %{_libexecdir}/*
  72. %{_mandir}/man1/*
  73. %{_mandir}/man7/*
  74. %{_mandir}/man8/*
  75. %{_datadir}/polkit-1/actions/*.policy
  76. %{_datadir}/dbus-1/system-services/*.service
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %{_datadir}/dbus-1/interfaces/*.xml
  80. %dir %{_datadir}/gtk-doc/html/UPower
  81. %{_datadir}/gtk-doc/html/UPower/*
  82. %{_libdir}/libdevkit-power-gobject*.so
  83. %{_libdir}/libupower-glib.so
  84. %{_libdir}/pkgconfig/*.pc
  85. %dir %{_includedir}/DeviceKit-power/devkit-power-gobject
  86. %{_includedir}/DeviceKit-power/devkit-power-gobject/*.h
  87. %{_libdir}/girepository-1.0/*.typelib
  88. %{_datadir}/gir-1.0/*.gir
  89. %dir %{_includedir}/libupower-glib
  90. %{_includedir}/libupower-glib/up-*.h
  91. %{_includedir}/libupower-glib/upower.h
  92. %changelog
  93. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  94. - Initial build for Vine Linux
  95. - add BuildRequires: gtk-doc
  96. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  97. - It seems people don't like pain.
  98. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  99. - Obsolete DeviceKit-power.
  100. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  101. - Actually enable the introspection support.
  102. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  103. - Initial release of 0.9.1