upower-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Summary: Power Management Service
  2. Summary(ja): 電源管理サービス
  3. Name: upower
  4. Version: 0.9.4
  5. Release: 2%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://upower.freedesktop.org/
  9. Source0: http://upower.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. Vendor: Project Vine
  35. Distribution: Vine Linux
  36. Packager: daisuke, Takemikaduchi
  37. %description
  38. UPower (formerly DeviceKit-power) provides a daemon, API and command
  39. line tools for managing power devices attached to the system.
  40. %package devel
  41. Summary: Headers and libraries for UPower
  42. Summary(ja): %{name} の開発ファイル
  43. Group: Development/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. Requires: gtk-doc
  46. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  47. Provides: DeviceKit-power-devel
  48. %description devel
  49. Headers and libraries for UPower.
  50. %prep
  51. %setup -q
  52. %patch0 -p1 -b .vine
  53. %build
  54. %configure --enable-gtk-doc --disable-static --enable-introspection=yes
  55. make %{?_smp_mflags}
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. make install DESTDIR=$RPM_BUILD_ROOT
  59. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  60. %find_lang %{name}
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files -f %{name}.lang
  66. %defattr(-,root,root,-)
  67. %doc NEWS COPYING AUTHORS HACKING README
  68. %{_libdir}/libdevkit-power-gobject*.so.*
  69. %{_libdir}/libupower-glib.so.*
  70. %{_sysconfdir}/dbus-1/system.d/*.conf
  71. %{_sysconfdir}/UPower/UPower.conf
  72. /lib/udev/rules.d/*.rules
  73. %dir %{_localstatedir}/lib/upower
  74. %{_bindir}/*
  75. %{_libexecdir}/*
  76. %{_mandir}/man1/*
  77. %{_mandir}/man7/*
  78. %{_mandir}/man8/*
  79. %{_datadir}/polkit-1/actions/*.policy
  80. %{_datadir}/dbus-1/system-services/*.service
  81. %files devel
  82. %defattr(-,root,root,-)
  83. %{_datadir}/dbus-1/interfaces/*.xml
  84. %dir %{_datadir}/gtk-doc/html/UPower
  85. %{_datadir}/gtk-doc/html/UPower/*
  86. %{_libdir}/libdevkit-power-gobject*.so
  87. %{_libdir}/libupower-glib.so
  88. %{_libdir}/pkgconfig/*.pc
  89. %dir %{_includedir}/DeviceKit-power/devkit-power-gobject
  90. %{_includedir}/DeviceKit-power/devkit-power-gobject/*.h
  91. %{_libdir}/girepository-1.0/*.typelib
  92. %{_datadir}/gir-1.0/*.gir
  93. %dir %{_includedir}/libupower-glib
  94. %{_includedir}/libupower-glib/up-*.h
  95. %{_includedir}/libupower-glib/upower.h
  96. %changelog
  97. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  98. - rebuilt with rpm-4.8.1 for pkg-config
  99. * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  100. - new upstream release
  101. - update URL:
  102. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  103. - Initial build for Vine Linux
  104. - add BuildRequires: gtk-doc
  105. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  106. - It seems people don't like pain.
  107. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  108. - Obsolete DeviceKit-power.
  109. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  110. - Actually enable the introspection support.
  111. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  112. - Initial release of 0.9.1