1 | Summary: Power Management Service |
---|
2 | Summary(ja): 電源管理サービス |
---|
3 | Name: upower |
---|
4 | Version: 0.9.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPLv2+ |
---|
7 | Group: System Environment/Libraries |
---|
8 | URL: http://hal.freedesktop.org/releases/ |
---|
9 | Source0: http://hal.freedesktop.org/releases/upower-%{version}.tar.bz2 |
---|
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 | |
---|
38 | %description |
---|
39 | UPower (formerly DeviceKit-power) provides a daemon, API and command |
---|
40 | line tools for managing power devices attached to the system. |
---|
41 | |
---|
42 | %package devel |
---|
43 | Summary: Headers and libraries for UPower |
---|
44 | Summary(ja): %{name} の開発ファイル |
---|
45 | Group: Development/Libraries |
---|
46 | Requires: %{name} = %{version}-%{release} |
---|
47 | Requires: gtk-doc |
---|
48 | Obsoletes: DeviceKit-power-devel < 1:0.9.0-2 |
---|
49 | Provides: DeviceKit-power-devel |
---|
50 | |
---|
51 | %description devel |
---|
52 | Headers and libraries for UPower. |
---|
53 | |
---|
54 | %prep |
---|
55 | %setup -q |
---|
56 | %patch0 -p1 -b .vine |
---|
57 | |
---|
58 | %build |
---|
59 | %configure --enable-gtk-doc --disable-static --enable-introspection=yes |
---|
60 | make %{?_smp_mflags} |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
65 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
66 | |
---|
67 | %find_lang UPower |
---|
68 | |
---|
69 | %clean |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | %post -p /sbin/ldconfig |
---|
73 | |
---|
74 | %postun -p /sbin/ldconfig |
---|
75 | |
---|
76 | %files -f UPower.lang |
---|
77 | %defattr(-,root,root,-) |
---|
78 | %doc NEWS COPYING AUTHORS HACKING README |
---|
79 | %{_libdir}/libdevkit-power-gobject*.so.* |
---|
80 | %{_libdir}/libupower-glib.so.* |
---|
81 | %{_sysconfdir}/dbus-1/system.d/*.conf |
---|
82 | /lib/udev/rules.d/*.rules |
---|
83 | %dir %{_localstatedir}/lib/upower |
---|
84 | %{_bindir}/* |
---|
85 | %{_libexecdir}/* |
---|
86 | %{_mandir}/man1/* |
---|
87 | %{_mandir}/man7/* |
---|
88 | %{_mandir}/man8/* |
---|
89 | %{_datadir}/polkit-1/actions/*.policy |
---|
90 | %{_datadir}/dbus-1/system-services/*.service |
---|
91 | |
---|
92 | %files devel |
---|
93 | %defattr(-,root,root,-) |
---|
94 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
95 | %dir %{_datadir}/gtk-doc/html/UPower |
---|
96 | %{_datadir}/gtk-doc/html/UPower/* |
---|
97 | %{_libdir}/libdevkit-power-gobject*.so |
---|
98 | %{_libdir}/libupower-glib.so |
---|
99 | %{_libdir}/pkgconfig/*.pc |
---|
100 | %dir %{_includedir}/DeviceKit-power/devkit-power-gobject |
---|
101 | %{_includedir}/DeviceKit-power/devkit-power-gobject/*.h |
---|
102 | %{_libdir}/girepository-1.0/*.typelib |
---|
103 | %{_datadir}/gir-1.0/*.gir |
---|
104 | %dir %{_includedir}/libupower-glib |
---|
105 | %{_includedir}/libupower-glib/up-*.h |
---|
106 | %{_includedir}/libupower-glib/upower.h |
---|
107 | |
---|
108 | %changelog |
---|
109 | * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1 |
---|
110 | - Initial build for Vine Linux |
---|
111 | - add BuildRequires: gtk-doc |
---|
112 | |
---|
113 | |
---|
114 | * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4 |
---|
115 | - It seems people don't like pain. |
---|
116 | |
---|
117 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3 |
---|
118 | - Obsolete DeviceKit-power. |
---|
119 | |
---|
120 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2 |
---|
121 | - Actually enable the introspection support. |
---|
122 | |
---|
123 | * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1 |
---|
124 | - Initial release of 0.9.1 |
---|
125 | |
---|