upower-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. %bcond_with systemd
  2. Summary: Power Management Service
  3. Summary(ja): 電源管理サービス
  4. Name: upower
  5. Version: 0.99.11
  6. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv2+
  10. URL: https://upower.freedesktop.org/
  11. Source0: https://upower.freedesktop.org/releases/upower-%{version}.tar.xz
  12. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  13. BuildRequires: sqlite3-devel
  14. BuildRequires: libtool
  15. BuildRequires: intltool
  16. BuildRequires: gettext
  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: libgudev-devel
  25. BuildRequires: gtk-doc
  26. BuildRequires: vim-tiny
  27. BuildRequires: autoconf
  28. Requires: polkit >= 0.92
  29. Requires: pm-utils >= 1.4.1
  30. Requires: gobject-introspection
  31. %if %{with systemd}
  32. BuildRequires: systemd-devel
  33. %{?systemd_requires}
  34. %else
  35. BuildRequires: eudev-libgudev1-devel
  36. Requires: eudev
  37. %endif
  38. # Old project name
  39. Obsoletes: libupower09 < 0.9.24
  40. Obsoletes: DeviceKit-power < 1:0.9.0-2
  41. Provides: DeviceKit-power
  42. %description
  43. UPower (formerly DeviceKit-power) provides a daemon, API and command
  44. line tools for managing power devices attached to the system.
  45. %package devel
  46. Summary: Headers and libraries for UPower
  47. Summary(ja): %{name} の開発ファイル
  48. Group: Development/Libraries
  49. Requires: %{name} = %{version}-%{release}
  50. Requires: gtk-doc
  51. Obsoletes: libupower09-devel < 0.9.24
  52. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  53. Provides: DeviceKit-power-devel
  54. %description devel
  55. Headers and libraries for UPower.
  56. %prep
  57. %setup -q
  58. %build
  59. %configure \
  60. --enable-gtk-doc \
  61. --disable-static \
  62. --enable-introspection=yes \
  63. --with-udevrulesdir=/lib/udev/rules.d
  64. make V=1 %{?_smp_mflags}
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. make install DESTDIR=$RPM_BUILD_ROOT
  68. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  69. %find_lang %{name}
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %post
  73. /sbin/ldconfig
  74. %if %{with systemd}
  75. %systemd_post upower.service
  76. %endif
  77. %if %{with systemd}
  78. %preun
  79. %systemd_preun upower.service
  80. %endif
  81. %postun
  82. /sbin/ldconfig
  83. %if %{with systemd}
  84. %systemd_postun_with_restart upower.service
  85. %endif
  86. %files -f %{name}.lang
  87. %defattr(-,root,root,-)
  88. %license COPYING
  89. %doc NEWS AUTHORS HACKING README*
  90. %{_libdir}/libupower-glib.so.*
  91. %{_libdir}/girepository-1.0/*.typelib
  92. %{_sysconfdir}/UPower/UPower.conf
  93. /lib/udev/rules.d/*.rules
  94. %dir %{_localstatedir}/lib/upower
  95. %{_bindir}/*
  96. %{_libexecdir}/*
  97. %{_mandir}/man1/*
  98. %{_mandir}/man7/*
  99. %{_mandir}/man8/*
  100. %{_datadir}/dbus-1/system.d/*.conf
  101. %{_datadir}/dbus-1/system-services/*.service
  102. %if %{with systemd}
  103. %{_unitdir}/*.service
  104. %endif
  105. %files devel
  106. %defattr(-,root,root,-)
  107. %{_datadir}/dbus-1/interfaces/*.xml
  108. %dir %{_datadir}/gtk-doc/html/UPower
  109. %{_datadir}/gtk-doc/html/UPower/*
  110. %{_libdir}/libupower-glib.so
  111. %{_libdir}/pkgconfig/*.pc
  112. %{_datadir}/gir-1.0/*.gir
  113. %dir %{_includedir}/libupower-glib
  114. %{_includedir}/libupower-glib/up-*.h
  115. %{_includedir}/libupower-glib/upower.h
  116. %changelog
  117. * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.11-1
  118. - new upstream release.
  119. - added systemd support (disabled as default).
  120. * Fri Dec 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.7-1
  121. - new upstream release.
  122. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.4-1
  123. - new upstream release
  124. * Sat May 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.3-1
  125. - new upstream release
  126. * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.99.2-2
  127. - rebuilt with libimovbiledevice 1.2.0
  128. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.2-1
  129. - new upstream release
  130. * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.1-1
  131. - new upstream release
  132. - remove Patch0 (upower-0.99.0-git20140225.patch)
  133. - add Obsoletes: libupower09
  134. * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.99.0-2
  135. - rebuild with libimobiledevice-1.1.6, eudev
  136. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.0-1
  137. - new upstream release
  138. - add Patch0 (upower-0.99.0-git20140225.patch)
  139. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1
  140. - new upstream release
  141. * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1
  142. - new upstream release
  143. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.20-1
  144. - new upstream release
  145. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.19-1
  146. - new upstream release
  147. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.18-1
  148. - new upstream release
  149. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1
  150. - new upstream release
  151. * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1
  152. - new upstream release
  153. * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1
  154. - new upstream release
  155. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
  156. - new upstream release
  157. * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1
  158. - new upstream release
  159. - BR: vim-tiny instead of vim
  160. * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  161. - new upstream release
  162. - delete Patch0
  163. - add BuildRequires: libimobiledevice-devel, vim, autoconf
  164. - change BuildRequires: libusb1-devel instead of libusb-devel
  165. - remove BuildRequires: gir-repository-devel
  166. - fix %files
  167. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  168. - rebuilt with rpm-4.8.1 for pkg-config
  169. * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  170. - new upstream release
  171. - update URL:
  172. * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
  173. - Initial build for Vine Linux
  174. - add BuildRequires: gtk-doc
  175. * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
  176. - It seems people don't like pain.
  177. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
  178. - Obsolete DeviceKit-power.
  179. * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
  180. - Actually enable the introspection support.
  181. * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
  182. - Initial release of 0.9.1