upower-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. Summary: Power Management Service
  2. Summary(ja): 電源管理サービス
  3. Name: upower
  4. Version: 0.99.0
  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.xz
  10. Patch0: upower-0.99.0-git20140225.patch
  11. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  12. BuildRequires: sqlite3-devel
  13. BuildRequires: libtool
  14. BuildRequires: intltool
  15. BuildRequires: gettext
  16. BuildRequires: eudev-libgudev1-devel
  17. BuildRequires: libusb1-devel
  18. BuildRequires: glib2-devel >= 2.6.0
  19. BuildRequires: dbus-devel >= 1.2
  20. BuildRequires: dbus-glib-devel >= 0.82
  21. BuildRequires: polkit-devel >= 0.92
  22. BuildRequires: gobject-introspection-devel
  23. BuildRequires: libimobiledevice-devel
  24. BuildRequires: gtk-doc
  25. BuildRequires: vim-tiny
  26. BuildRequires: autoconf
  27. Requires: polkit >= 0.92
  28. Requires: eudev
  29. Requires: pm-utils >= 1.4.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. Conflicts: libupower09-devel >= 0.9.23
  49. %description devel
  50. Headers and libraries for UPower.
  51. %prep
  52. %setup -q
  53. %patch0 -p1
  54. %build
  55. %configure \
  56. --enable-gtk-doc \
  57. --disable-static \
  58. --enable-introspection=yes
  59. make V=1 %{?_smp_mflags}
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT
  63. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  64. %find_lang %{name}
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %files -f %{name}.lang
  70. %defattr(-,root,root,-)
  71. %doc NEWS COPYING AUTHORS HACKING README
  72. %{_libdir}/libupower-glib.so.*
  73. %{_libdir}/girepository-1.0/*.typelib
  74. %{_sysconfdir}/dbus-1/system.d/*.conf
  75. %{_sysconfdir}/UPower/UPower.conf
  76. /lib/udev/rules.d/*.rules
  77. %dir %{_localstatedir}/lib/upower
  78. %{_bindir}/*
  79. %{_libexecdir}/*
  80. %{_mandir}/man1/*
  81. %{_mandir}/man7/*
  82. %{_mandir}/man8/*
  83. %{_datadir}/dbus-1/system-services/*.service
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_datadir}/dbus-1/interfaces/*.xml
  87. %dir %{_datadir}/gtk-doc/html/UPower
  88. %{_datadir}/gtk-doc/html/UPower/*
  89. %{_libdir}/libupower-glib.so
  90. %{_libdir}/pkgconfig/*.pc
  91. %{_datadir}/gir-1.0/*.gir
  92. %dir %{_includedir}/libupower-glib
  93. %{_includedir}/libupower-glib/up-*.h
  94. %{_includedir}/libupower-glib/upower.h
  95. %changelog
  96. * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.99.0-2
  97. - rebuild with libimobiledevice-1.1.6, eudev
  98. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.0-1
  99. - new upstream release
  100. - add Patch0 (upower-0.99.0-git20140225.patch)
  101. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1
  102. - new upstream release
  103. * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1
  104. - new upstream release
  105. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.20-1
  106. - new upstream release
  107. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.19-1
  108. - new upstream release
  109. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.18-1
  110. - new upstream release
  111. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1
  112. - new upstream release
  113. * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1
  114. - new upstream release
  115. * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1
  116. - new upstream release
  117. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
  118. - new upstream release
  119. * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1
  120. - new upstream release
  121. - BR: vim-tiny instead of vim
  122. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  123. - new upstream release
  124. - delete Patch0
  125. - add BuildRequires: libimobiledevice-devel, vim, autoconf
  126. - change BuildRequires: libusb1-devel instead of libusb-devel
  127. - remove BuildRequires: gir-repository-devel
  128. - fix %files
  129. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  130. - rebuilt with rpm-4.8.1 for pkg-config
  131. * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  132. - new upstream release
  133. - update URL:
  134. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  135. - Initial build for Vine Linux
  136. - add BuildRequires: gtk-doc
  137. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  138. - It seems people don't like pain.
  139. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  140. - Obsolete DeviceKit-power.
  141. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  142. - Actually enable the introspection support.
  143. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  144. - Initial release of 0.9.1