upower-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. Summary: Power Management Service
  2. Summary(ja): 電源管理サービス
  3. Name: upower
  4. Version: 0.99.4
  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.xz
  10. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  11. BuildRequires: sqlite3-devel
  12. BuildRequires: libtool
  13. BuildRequires: intltool
  14. BuildRequires: gettext
  15. BuildRequires: eudev-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: eudev
  28. Requires: pm-utils >= 1.4.1
  29. Requires: gobject-introspection
  30. # Old project name
  31. Obsoletes: libupower09 < 0.9.24
  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: libupower09-devel < 0.9.24
  47. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  48. Provides: DeviceKit-power-devel
  49. %description devel
  50. Headers and libraries for UPower.
  51. %prep
  52. %setup -q
  53. %build
  54. %configure \
  55. --enable-gtk-doc \
  56. --disable-static \
  57. --enable-introspection=yes \
  58. --with-udevrulesdir=/lib/udev/rules.d
  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. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.4-1
  97. - new upstream release
  98. * Sat May 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.3-1
  99. - new upstream release
  100. * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.99.2-2
  101. - rebuilt with libimovbiledevice 1.2.0
  102. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.2-1
  103. - new upstream release
  104. * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.1-1
  105. - new upstream release
  106. - remove Patch0 (upower-0.99.0-git20140225.patch)
  107. - add Obsoletes: libupower09
  108. * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.99.0-2
  109. - rebuild with libimobiledevice-1.1.6, eudev
  110. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.0-1
  111. - new upstream release
  112. - add Patch0 (upower-0.99.0-git20140225.patch)
  113. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1
  114. - new upstream release
  115. * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1
  116. - new upstream release
  117. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.20-1
  118. - new upstream release
  119. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.19-1
  120. - new upstream release
  121. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.18-1
  122. - new upstream release
  123. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1
  124. - new upstream release
  125. * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1
  126. - new upstream release
  127. * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1
  128. - new upstream release
  129. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
  130. - new upstream release
  131. * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1
  132. - new upstream release
  133. - BR: vim-tiny instead of vim
  134. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  135. - new upstream release
  136. - delete Patch0
  137. - add BuildRequires: libimobiledevice-devel, vim, autoconf
  138. - change BuildRequires: libusb1-devel instead of libusb-devel
  139. - remove BuildRequires: gir-repository-devel
  140. - fix %files
  141. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  142. - rebuilt with rpm-4.8.1 for pkg-config
  143. * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  144. - new upstream release
  145. - update URL:
  146. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  147. - Initial build for Vine Linux
  148. - add BuildRequires: gtk-doc
  149. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  150. - It seems people don't like pain.
  151. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  152. - Obsolete DeviceKit-power.
  153. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  154. - Actually enable the introspection support.
  155. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  156. - Initial release of 0.9.1