[805] | 1 | Summary: Power Management Service |
---|
| 2 | Summary(ja): 電源管理サービス |
---|
| 3 | Name: upower |
---|
[1001] | 4 | Version: 0.9.4 |
---|
[805] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | License: GPLv2+ |
---|
| 7 | Group: System Environment/Libraries |
---|
[1001] | 8 | URL: http://upower.freedesktop.org/ |
---|
| 9 | Source0: http://upower.freedesktop.org/releases/upower-%{version}.tar.bz2 |
---|
[805] | 10 | |
---|
| 11 | ## Patch for vine |
---|
| 12 | ## add compile rule of typelib |
---|
| 13 | Patch0: upower-0.9.2-libupower-glib-vine.patch |
---|
| 14 | |
---|
| 15 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 16 | BuildRequires: sqlite3-devel |
---|
| 17 | BuildRequires: libtool |
---|
| 18 | BuildRequires: intltool |
---|
| 19 | BuildRequires: gettext |
---|
| 20 | BuildRequires: libgudev1-devel |
---|
| 21 | BuildRequires: libusb-devel |
---|
| 22 | BuildRequires: glib2-devel >= 2.6.0 |
---|
| 23 | BuildRequires: dbus-devel >= 1.2 |
---|
| 24 | BuildRequires: dbus-glib-devel >= 0.82 |
---|
| 25 | BuildRequires: polkit-devel >= 0.92 |
---|
| 26 | BuildRequires: gobject-introspection-devel |
---|
| 27 | BuildRequires: gir-repository-devel |
---|
| 28 | BuildRequires: gtk-doc |
---|
| 29 | Requires: polkit >= 0.92 |
---|
| 30 | Requires: udev |
---|
| 31 | Requires: pm-utils >= 1.2.2.1 |
---|
| 32 | Requires: gobject-introspection |
---|
| 33 | |
---|
| 34 | # Old project name |
---|
| 35 | Obsoletes: DeviceKit-power < 1:0.9.0-2 |
---|
| 36 | Provides: DeviceKit-power |
---|
| 37 | |
---|
[1001] | 38 | Vendor: Project Vine |
---|
| 39 | Distribution: Vine Linux |
---|
| 40 | Packager: daisuke, Takemikaduchi |
---|
| 41 | |
---|
| 42 | |
---|
[805] | 43 | %description |
---|
| 44 | UPower (formerly DeviceKit-power) provides a daemon, API and command |
---|
| 45 | line tools for managing power devices attached to the system. |
---|
| 46 | |
---|
| 47 | %package devel |
---|
| 48 | Summary: Headers and libraries for UPower |
---|
| 49 | Summary(ja): %{name} の開発ファイル |
---|
| 50 | Group: Development/Libraries |
---|
| 51 | Requires: %{name} = %{version}-%{release} |
---|
| 52 | Requires: gtk-doc |
---|
| 53 | Obsoletes: DeviceKit-power-devel < 1:0.9.0-2 |
---|
| 54 | Provides: DeviceKit-power-devel |
---|
| 55 | |
---|
| 56 | %description devel |
---|
| 57 | Headers and libraries for UPower. |
---|
| 58 | |
---|
| 59 | %prep |
---|
| 60 | %setup -q |
---|
| 61 | %patch0 -p1 -b .vine |
---|
| 62 | |
---|
| 63 | %build |
---|
| 64 | %configure --enable-gtk-doc --disable-static --enable-introspection=yes |
---|
| 65 | make %{?_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 | |
---|
[1001] | 72 | %find_lang %{name} |
---|
[805] | 73 | |
---|
| 74 | %clean |
---|
| 75 | rm -rf $RPM_BUILD_ROOT |
---|
| 76 | |
---|
| 77 | %post -p /sbin/ldconfig |
---|
| 78 | |
---|
| 79 | %postun -p /sbin/ldconfig |
---|
| 80 | |
---|
[1001] | 81 | %files -f %{name}.lang |
---|
[805] | 82 | %defattr(-,root,root,-) |
---|
| 83 | %doc NEWS COPYING AUTHORS HACKING README |
---|
| 84 | %{_libdir}/libdevkit-power-gobject*.so.* |
---|
| 85 | %{_libdir}/libupower-glib.so.* |
---|
| 86 | %{_sysconfdir}/dbus-1/system.d/*.conf |
---|
[1001] | 87 | %{_sysconfdir}/UPower/UPower.conf |
---|
[805] | 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}/libdevkit-power-gobject*.so |
---|
| 104 | %{_libdir}/libupower-glib.so |
---|
| 105 | %{_libdir}/pkgconfig/*.pc |
---|
| 106 | %dir %{_includedir}/DeviceKit-power/devkit-power-gobject |
---|
| 107 | %{_includedir}/DeviceKit-power/devkit-power-gobject/*.h |
---|
| 108 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 109 | %{_datadir}/gir-1.0/*.gir |
---|
| 110 | %dir %{_includedir}/libupower-glib |
---|
| 111 | %{_includedir}/libupower-glib/up-*.h |
---|
| 112 | %{_includedir}/libupower-glib/upower.h |
---|
| 113 | |
---|
| 114 | %changelog |
---|
[1001] | 115 | * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1 |
---|
| 116 | - new upstream release |
---|
| 117 | - update URL: |
---|
| 118 | |
---|
[805] | 119 | * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1 |
---|
| 120 | - Initial build for Vine Linux |
---|
| 121 | - add BuildRequires: gtk-doc |
---|
| 122 | |
---|
| 123 | * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4 |
---|
| 124 | - It seems people don't like pain. |
---|
| 125 | |
---|
| 126 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3 |
---|
| 127 | - Obsolete DeviceKit-power. |
---|
| 128 | |
---|
| 129 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2 |
---|
| 130 | - Actually enable the introspection support. |
---|
| 131 | |
---|
| 132 | * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1 |
---|
| 133 | - Initial release of 0.9.1 |
---|
| 134 | |
---|