]>
Commit | Line | Data |
---|---|---|
d0951904 MB |
1 | Summary: Power management service |
2 | Summary(pl.UTF-8): Usługa zarządzania energią | |
7f03a8d5 | 3 | Name: UPower |
9744188f | 4 | Version: 0.9.4 |
01eaa951 | 5 | Release: 2 |
d0951904 MB |
6 | License: GPL v2+ |
7 | Group: Libraries | |
357349f9 | 8 | Source0: http://upower.freedesktop.org/releases/upower-%{version}.tar.bz2 |
9744188f | 9 | # Source0-md5: da93329b0938a64ad55a26aa8ee9c807 |
72851d35 | 10 | URL: http://upower.freedesktop.org/ |
7f03a8d5 MB |
11 | BuildRequires: autoconf >= 2.65 |
12 | BuildRequires: automake >= 1:1.9 | |
2a28419b | 13 | BuildRequires: dbus-devel >= 1.0.0 |
d0951904 | 14 | BuildRequires: dbus-glib-devel >= 0.76 |
c123b058 | 15 | BuildRequires: docbook-dtd412-xml |
d0951904 | 16 | BuildRequires: gettext-devel |
2a28419b | 17 | BuildRequires: glib2-devel >= 1:2.22.0 |
7f03a8d5 MB |
18 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
19 | BuildRequires: gtk-doc >= 1.9 | |
d0951904 MB |
20 | BuildRequires: intltool >= 0.40.0 |
21 | BuildRequires: libtool | |
22 | BuildRequires: libusb-compat-devel | |
23 | BuildRequires: pkgconfig | |
2a28419b | 24 | BuildRequires: polkit-devel >= 0.91 |
ea114cff | 25 | BuildRequires: udev-glib-devel |
d0951904 | 26 | Requires: pm-utils |
2a28419b | 27 | Requires: polkit >= 0.91 |
7f03a8d5 MB |
28 | Provides: DeviceKit-power |
29 | Obsoletes: DeviceKit-power | |
d0951904 MB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
7f03a8d5 MB |
33 | UPower provides a daemon, API and command line tools for managing |
34 | power devices attached to the system. | |
d0951904 MB |
35 | |
36 | %description -l pl.UTF-8 | |
7f03a8d5 MB |
37 | UPower dostarcza demona, API i narzędzia linii poleceń do zarządzania |
38 | urządzeniami energii dołączonymi do systemu. | |
d0951904 MB |
39 | |
40 | %package apidocs | |
7f03a8d5 MB |
41 | Summary: UPower API documentation |
42 | Summary(pl.UTF-8): Dokumentacja API UPower | |
d0951904 MB |
43 | Group: Documentation |
44 | Requires: gtk-doc-common | |
7f03a8d5 MB |
45 | Provides: DeviceKit-power-apidocs |
46 | Obsoletes: DeviceKit-power-apidocs | |
d0951904 MB |
47 | |
48 | %description apidocs | |
7f03a8d5 | 49 | UPower API documentation. |
d0951904 MB |
50 | |
51 | %description apidocs -l pl.UTF-8 | |
7f03a8d5 | 52 | Dokumentacja API UPower. |
d0951904 | 53 | |
58850157 | 54 | %package devel |
7f03a8d5 MB |
55 | Summary: Header files for UPower library |
56 | Summary(pl.UTF-8): Nagłówki biblioteki UPower | |
58850157 PZ |
57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
2a28419b MB |
59 | Requires: dbus-devel >= 1.0.0 |
60 | Requires: glib2-devel >= 1:2.22.0 | |
7f03a8d5 MB |
61 | Provides: DeviceKit-power-devel |
62 | Obsoletes: DeviceKit-power-devel | |
58850157 PZ |
63 | |
64 | %description devel | |
7f03a8d5 | 65 | Header files for UPower library. |
58850157 PZ |
66 | |
67 | %description devel -l pl.UTF-8 | |
7f03a8d5 | 68 | Nagłówki biblioteki UPower. |
58850157 | 69 | |
d0951904 | 70 | %prep |
72851d35 | 71 | %setup -q -n upower-%{version} |
d0951904 MB |
72 | |
73 | %build | |
09383712 | 74 | %{__gtkdocize} |
d0951904 MB |
75 | %{__intltoolize} |
76 | %{__libtoolize} | |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %configure \ | |
72851d35 | 82 | --disable-silent-rules \ |
6ecea951 | 83 | --disable-static \ |
d0951904 MB |
84 | --enable-gtk-doc \ |
85 | --with-html-dir=%{_gtkdocdir} | |
86 | ||
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
9744188f | 95 | %find_lang upower |
7f03a8d5 | 96 | |
d0951904 MB |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
58850157 PZ |
100 | %post -p /sbin/ldconfig |
101 | %postun -p /sbin/ldconfig | |
102 | ||
9744188f | 103 | %files -f upower.lang |
d0951904 MB |
104 | %defattr(644,root,root,755) |
105 | %doc AUTHORS ChangeLog HACKING NEWS README | |
106 | %attr(755,root,root) %{_bindir}/devkit-power | |
7f03a8d5 | 107 | %attr(755,root,root) %{_bindir}/upower |
d0951904 | 108 | %attr(755,root,root) %{_libdir}/devkit-power-daemon |
7f03a8d5 | 109 | %attr(755,root,root) %{_libdir}/upowerd |
58850157 PZ |
110 | %attr(755,root,root) %{_libdir}/libdevkit-power-gobject.so.*.*.* |
111 | %attr(755,root,root) %ghost %{_libdir}/libdevkit-power-gobject.so.1 | |
7f03a8d5 MB |
112 | %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* |
113 | %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.1 | |
114 | %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib | |
115 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf | |
9744188f MB |
116 | %dir %{_sysconfdir}/UPower |
117 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf | |
7f03a8d5 MB |
118 | %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service |
119 | %{_datadir}/polkit-1/actions/org.freedesktop.upower.policy | |
120 | %{_datadir}/polkit-1/actions/org.freedesktop.upower.qos.policy | |
121 | /lib/udev/rules.d/95-upower-battery-recall-dell.rules | |
122 | /lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules | |
123 | /lib/udev/rules.d/95-upower-battery-recall-gateway.rules | |
124 | /lib/udev/rules.d/95-upower-battery-recall-ibm.rules | |
125 | /lib/udev/rules.d/95-upower-battery-recall-lenovo.rules | |
126 | /lib/udev/rules.d/95-upower-battery-recall-toshiba.rules | |
127 | /lib/udev/rules.d/95-upower-csr.rules | |
128 | /lib/udev/rules.d/95-upower-hid.rules | |
129 | /lib/udev/rules.d/95-upower-wup.rules | |
130 | %{_mandir}/man1/upower.1* | |
131 | %{_mandir}/man7/UPower.7* | |
132 | %{_mandir}/man8/upowerd.8* | |
d0951904 MB |
133 | |
134 | %files apidocs | |
135 | %defattr(644,root,root,755) | |
7f03a8d5 | 136 | %{_gtkdocdir}/UPower |
58850157 PZ |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
58850157 | 140 | %attr(755,root,root) %{_libdir}/libdevkit-power-gobject.so |
7f03a8d5 | 141 | %attr(755,root,root) %{_libdir}/libupower-glib.so |
58850157 | 142 | %{_libdir}/libdevkit-power-gobject.la |
7f03a8d5 MB |
143 | %{_libdir}/libupower-glib.la |
144 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml | |
145 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml | |
146 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml | |
147 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
148 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
149 | %{_includedir}/DeviceKit-power | |
150 | %{_includedir}/libupower-glib | |
58850157 | 151 | %{_pkgconfigdir}/devkit-power-gobject.pc |
7f03a8d5 | 152 | %{_pkgconfigdir}/upower-glib.pc |