upower-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Summary: Power Management Service
  2. Summary(ja): 電源管理サービス
  3. Name: upower
  4. Version: 0.9.9
  5. Release: 1%{?_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. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  11. BuildRequires: sqlite3-devel
  12. BuildRequires: libtool
  13. BuildRequires: intltool
  14. BuildRequires: gettext
  15. BuildRequires: libgudev1-devel
  16. BuildRequires: libusb1-devel
  17. BuildRequires: glib2-devel >= 2.6.0
  18. BuildRequires: dbus-devel >= 1.2
  19. BuildRequires: dbus-glib-devel >= 0.82
  20. BuildRequires: polkit-devel >= 0.92
  21. BuildRequires: gobject-introspection-devel
  22. BuildRequires: libimobiledevice-devel
  23. BuildRequires: gtk-doc
  24. BuildRequires: vim-tiny
  25. BuildRequires: autoconf
  26. Requires: polkit >= 0.92
  27. Requires: udev
  28. Requires: pm-utils >= 1.4.1
  29. Requires: gobject-introspection
  30. # Old project name
  31. Obsoletes: DeviceKit-power < 1:0.9.0-2
  32. Provides: DeviceKit-power
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: daisuke, Takemikaduchi
  36. %description
  37. UPower (formerly DeviceKit-power) provides a daemon, API and command
  38. line tools for managing power devices attached to the system.
  39. %package devel
  40. Summary: Headers and libraries for UPower
  41. Summary(ja): %{name} の開発ファイル
  42. Group: Development/Libraries
  43. Requires: %{name} = %{version}-%{release}
  44. Requires: gtk-doc
  45. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  46. Provides: DeviceKit-power-devel
  47. %description devel
  48. Headers and libraries for UPower.
  49. %prep
  50. %setup -q
  51. %build
  52. autoreconf -if
  53. %configure --enable-gtk-doc --disable-static --enable-introspection=yes
  54. make %{?_smp_mflags}
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT
  58. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  59. %find_lang %{name}
  60. %clean
  61. rm -rf $RPM_BUILD_ROOT
  62. %post -p /sbin/ldconfig
  63. %postun -p /sbin/ldconfig
  64. %files -f %{name}.lang
  65. %defattr(-,root,root,-)
  66. %doc NEWS COPYING AUTHORS HACKING README
  67. %{_libdir}/libupower-glib.so.*
  68. %{_libdir}/girepository-1.0/*.typelib
  69. %{_sysconfdir}/dbus-1/system.d/*.conf
  70. %{_sysconfdir}/UPower/UPower.conf
  71. /lib/udev/rules.d/*.rules
  72. %dir %{_localstatedir}/lib/upower
  73. %{_bindir}/*
  74. %{_libexecdir}/*
  75. %{_mandir}/man1/*
  76. %{_mandir}/man7/*
  77. %{_mandir}/man8/*
  78. %{_datadir}/polkit-1/actions/*.policy
  79. %{_datadir}/dbus-1/system-services/*.service
  80. %files devel
  81. %defattr(-,root,root,-)
  82. %{_datadir}/dbus-1/interfaces/*.xml
  83. %dir %{_datadir}/gtk-doc/html/UPower
  84. %{_datadir}/gtk-doc/html/UPower/*
  85. %{_libdir}/libupower-glib.so
  86. %{_libdir}/pkgconfig/*.pc
  87. %{_datadir}/gir-1.0/*.gir
  88. %dir %{_includedir}/libupower-glib
  89. %{_includedir}/libupower-glib/up-*.h
  90. %{_includedir}/libupower-glib/upower.h
  91. %changelog
  92. * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1
  93. - new upstream release
  94. - BR: vim-tiny instead of vim
  95. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  96. - new upstream release
  97. - delete Patch0
  98. - add BuildRequires: libimobiledevice-devel, vim, autoconf
  99. - change BuildRequires: libusb1-devel instead of libusb-devel
  100. - remove BuildRequires: gir-repository-devel
  101. - fix %files
  102. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  103. - rebuilt with rpm-4.8.1 for pkg-config
  104. * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  105. - new upstream release
  106. - update URL:
  107. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  108. - Initial build for Vine Linux
  109. - add BuildRequires: gtk-doc
  110. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  111. - It seems people don't like pain.
  112. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  113. - Obsolete DeviceKit-power.
  114. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  115. - Actually enable the introspection support.
  116. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  117. - Initial release of 0.9.1