upower-vl.spec 5.4 KB

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