| 1 | Summary: Power Management Service |
|---|
| 2 | Summary(ja): 電源管理サービス |
|---|
| 3 | Name: upower |
|---|
| 4 | Version: 0.9.15 |
|---|
| 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 | |
|---|
| 11 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
|---|
| 12 | BuildRequires: sqlite3-devel |
|---|
| 13 | BuildRequires: libtool |
|---|
| 14 | BuildRequires: intltool |
|---|
| 15 | BuildRequires: gettext |
|---|
| 16 | BuildRequires: 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: udev |
|---|
| 29 | Requires: pm-utils >= 1.4.1 |
|---|
| 30 | Requires: gobject-introspection |
|---|
| 31 | |
|---|
| 32 | # Old project name |
|---|
| 33 | Obsoletes: DeviceKit-power < 1:0.9.0-2 |
|---|
| 34 | Provides: DeviceKit-power |
|---|
| 35 | |
|---|
| 36 | Vendor: Project Vine |
|---|
| 37 | Distribution: Vine Linux |
|---|
| 38 | Packager: daisuke, Takemikaduchi |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %description |
|---|
| 42 | UPower (formerly DeviceKit-power) provides a daemon, API and command |
|---|
| 43 | line tools for managing power devices attached to the system. |
|---|
| 44 | |
|---|
| 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: DeviceKit-power-devel < 1:0.9.0-2 |
|---|
| 52 | Provides: DeviceKit-power-devel |
|---|
| 53 | |
|---|
| 54 | %description devel |
|---|
| 55 | Headers and libraries for UPower. |
|---|
| 56 | |
|---|
| 57 | %prep |
|---|
| 58 | %setup -q |
|---|
| 59 | |
|---|
| 60 | %build |
|---|
| 61 | %configure \ |
|---|
| 62 | --enable-gtk-doc \ |
|---|
| 63 | --disable-static \ |
|---|
| 64 | --enable-introspection=yes |
|---|
| 65 | make V=1 %{?_smp_mflags} |
|---|
| 66 | |
|---|
| 67 | %install |
|---|
| 68 | rm -rf $RPM_BUILD_ROOT |
|---|
| 69 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 70 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|---|
| 71 | |
|---|
| 72 | %find_lang %{name} |
|---|
| 73 | |
|---|
| 74 | %clean |
|---|
| 75 | rm -rf $RPM_BUILD_ROOT |
|---|
| 76 | |
|---|
| 77 | %post -p /sbin/ldconfig |
|---|
| 78 | |
|---|
| 79 | %postun -p /sbin/ldconfig |
|---|
| 80 | |
|---|
| 81 | %files -f %{name}.lang |
|---|
| 82 | %defattr(-,root,root,-) |
|---|
| 83 | %doc NEWS COPYING AUTHORS HACKING README |
|---|
| 84 | %{_libdir}/libupower-glib.so.* |
|---|
| 85 | %{_libdir}/girepository-1.0/*.typelib |
|---|
| 86 | %{_sysconfdir}/dbus-1/system.d/*.conf |
|---|
| 87 | %{_sysconfdir}/UPower/UPower.conf |
|---|
| 88 | /lib/udev/rules.d/*.rules |
|---|
| 89 | %dir %{_localstatedir}/lib/upower |
|---|
| 90 | %{_bindir}/* |
|---|
| 91 | %{_libexecdir}/* |
|---|
| 92 | %{_mandir}/man1/* |
|---|
| 93 | %{_mandir}/man7/* |
|---|
| 94 | %{_mandir}/man8/* |
|---|
| 95 | %{_datadir}/polkit-1/actions/*.policy |
|---|
| 96 | %{_datadir}/dbus-1/system-services/*.service |
|---|
| 97 | |
|---|
| 98 | %files devel |
|---|
| 99 | %defattr(-,root,root,-) |
|---|
| 100 | %{_datadir}/dbus-1/interfaces/*.xml |
|---|
| 101 | %dir %{_datadir}/gtk-doc/html/UPower |
|---|
| 102 | %{_datadir}/gtk-doc/html/UPower/* |
|---|
| 103 | %{_libdir}/libupower-glib.so |
|---|
| 104 | %{_libdir}/pkgconfig/*.pc |
|---|
| 105 | %{_datadir}/gir-1.0/*.gir |
|---|
| 106 | %dir %{_includedir}/libupower-glib |
|---|
| 107 | %{_includedir}/libupower-glib/up-*.h |
|---|
| 108 | %{_includedir}/libupower-glib/upower.h |
|---|
| 109 | |
|---|
| 110 | %changelog |
|---|
| 111 | * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1 |
|---|
| 112 | - new upstream release |
|---|
| 113 | |
|---|
| 114 | * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1 |
|---|
| 115 | - new upstream release |
|---|
| 116 | |
|---|
| 117 | * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1 |
|---|
| 118 | - new upstream release |
|---|
| 119 | |
|---|
| 120 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1 |
|---|
| 121 | - new upstream release |
|---|
| 122 | |
|---|
| 123 | * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1 |
|---|
| 124 | - new upstream release |
|---|
| 125 | - BR: vim-tiny instead of vim |
|---|
| 126 | |
|---|
| 127 | * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1 |
|---|
| 128 | - new upstream release |
|---|
| 129 | - delete Patch0 |
|---|
| 130 | - add BuildRequires: libimobiledevice-devel, vim, autoconf |
|---|
| 131 | - change BuildRequires: libusb1-devel instead of libusb-devel |
|---|
| 132 | - remove BuildRequires: gir-repository-devel |
|---|
| 133 | - fix %files |
|---|
| 134 | |
|---|
| 135 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2 |
|---|
| 136 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 137 | |
|---|
| 138 | * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1 |
|---|
| 139 | - new upstream release |
|---|
| 140 | - update URL: |
|---|
| 141 | |
|---|
| 142 | * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1 |
|---|
| 143 | - Initial build for Vine Linux |
|---|
| 144 | - add BuildRequires: gtk-doc |
|---|
| 145 | |
|---|
| 146 | * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4 |
|---|
| 147 | - It seems people don't like pain. |
|---|
| 148 | |
|---|
| 149 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3 |
|---|
| 150 | - Obsolete DeviceKit-power. |
|---|
| 151 | |
|---|
| 152 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2 |
|---|
| 153 | - Actually enable the introspection support. |
|---|
| 154 | |
|---|
| 155 | * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1 |
|---|
| 156 | - Initial release of 0.9.1 |
|---|
| 157 | |
|---|