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