]>
Commit | Line | Data |
---|---|---|
d0951904 MB |
1 | Summary: Power management service |
2 | Summary(pl.UTF-8): Usługa zarządzania energią | |
dafd6455 | 3 | Name: upower |
1292e098 | 4 | Version: 0.9.20 |
f310ec08 | 5 | Release: 5 |
d0951904 MB |
6 | License: GPL v2+ |
7 | Group: Libraries | |
19b19e1c | 8 | Source0: http://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz |
1292e098 | 9 | # Source0-md5: f175984d142dc8d2353a7da609836b69 |
ac33aa7d | 10 | Patch0: %{name}-fixes.patch |
72851d35 | 11 | URL: http://upower.freedesktop.org/ |
7f03a8d5 | 12 | BuildRequires: autoconf >= 2.65 |
ef6fd72b | 13 | BuildRequires: automake >= 1:1.11 |
2a28419b | 14 | BuildRequires: dbus-devel >= 1.0.0 |
d0951904 | 15 | BuildRequires: dbus-glib-devel >= 0.76 |
c123b058 | 16 | BuildRequires: docbook-dtd412-xml |
e24563a8 | 17 | BuildRequires: gettext-devel >= 0.17 |
2a28419b | 18 | BuildRequires: glib2-devel >= 1:2.22.0 |
0fd8623f | 19 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
ef6fd72b | 20 | BuildRequires: gtk-doc >= 1.11 |
d0951904 | 21 | BuildRequires: intltool >= 0.40.0 |
cc36b8c0 | 22 | BuildRequires: libimobiledevice-devel >= 0.9.7 |
e24563a8 | 23 | BuildRequires: libplist-devel >= 0.12 |
df436de5 | 24 | BuildRequires: libtool >= 2:2 |
e24563a8 | 25 | BuildRequires: libusb-devel >= 1.0.0 |
d0951904 | 26 | BuildRequires: pkgconfig |
e055e067 | 27 | BuildRequires: polkit-devel >= 0.97 |
df436de5 | 28 | BuildRequires: systemd-devel |
19b19e1c | 29 | BuildRequires: tar >= 1:1.22 |
e24563a8 | 30 | BuildRequires: udev-glib-devel >= 1:147 |
19b19e1c | 31 | BuildRequires: xz |
d0951904 | 32 | Requires: pm-utils |
e055e067 | 33 | Requires: polkit >= 0.97 |
48f5336e AM |
34 | Requires(post,preun,postun): systemd-units >= 38 |
35 | Requires: systemd-units >= 38 | |
be7c1173 | 36 | Obsoletes: DeviceKit-power < 0.15 |
3ea6d0a8 | 37 | Obsoletes: UPower < 0.9.8-2 |
d0951904 MB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
dafd6455 | 41 | upower provides a daemon, API and command line tools for managing |
7f03a8d5 | 42 | power devices attached to the system. |
d0951904 MB |
43 | |
44 | %description -l pl.UTF-8 | |
3cf57ee9 | 45 | upower dostarcza demona, API i narzędzia linii poleceń do zarządzania |
7f03a8d5 | 46 | urządzeniami energii dołączonymi do systemu. |
d0951904 | 47 | |
e24563a8 JB |
48 | %package libs |
49 | Summary: UPower shared library | |
50 | Summary(pl.UTF-8): Biblioteka współdzielona UPower | |
51 | Group: Libraries | |
52 | Requires: dbus-glib >= 0.76 | |
53 | Requires: dbus-libs >= 1.0.0 | |
54 | Requires: glib2 >= 1:2.22.0 | |
55 | Conflicts: upower < 0.9.18 | |
d0951904 | 56 | |
e24563a8 JB |
57 | %description libs |
58 | UPower shared library. | |
d0951904 | 59 | |
e24563a8 JB |
60 | %description libs -l pl.UTF-8 |
61 | Biblioteka współdzielona UPower. | |
d0951904 | 62 | |
58850157 | 63 | %package devel |
7f03a8d5 | 64 | Summary: Header files for UPower library |
e24563a8 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower |
58850157 | 66 | Group: Development/Libraries |
e24563a8 | 67 | Requires: %{name}-libs = %{version}-%{release} |
2a28419b | 68 | Requires: dbus-devel >= 1.0.0 |
e24563a8 | 69 | Requires: dbus-glib-devel >= 0.76 |
2a28419b | 70 | Requires: glib2-devel >= 1:2.22.0 |
3ea6d0a8 ER |
71 | Obsoletes: DeviceKit-power-devel |
72 | Obsoletes: UPower-devel | |
58850157 PZ |
73 | |
74 | %description devel | |
7f03a8d5 | 75 | Header files for UPower library. |
58850157 PZ |
76 | |
77 | %description devel -l pl.UTF-8 | |
e24563a8 JB |
78 | Pliki nagłówkowe biblioteki UPower. |
79 | ||
80 | %package static | |
81 | Summary: Static UPower library | |
82 | Summary(pl.UTF-8): Statyczna biblioteka UPower | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static UPower library. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka UPower. | |
91 | ||
92 | %package apidocs | |
93 | Summary: UPower API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API UPower | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | Obsoletes: DeviceKit-power-apidocs | |
98 | Obsoletes: UPower-apidocs | |
99 | ||
100 | %description apidocs | |
101 | UPower API documentation. | |
102 | ||
103 | %description apidocs -l pl.UTF-8 | |
104 | Dokumentacja API UPower. | |
58850157 | 105 | |
d0951904 | 106 | %prep |
dafd6455 | 107 | %setup -q |
ac33aa7d | 108 | %patch0 -p1 |
d0951904 MB |
109 | |
110 | %build | |
09383712 | 111 | %{__gtkdocize} |
d0951904 MB |
112 | %{__intltoolize} |
113 | %{__libtoolize} | |
114 | %{__aclocal} | |
115 | %{__autoconf} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | %configure \ | |
72851d35 | 119 | --disable-silent-rules \ |
1292e098 | 120 | --enable-deprecated \ |
d0951904 | 121 | --enable-gtk-doc \ |
409b1d2c ŁK |
122 | --with-html-dir=%{_gtkdocdir} \ |
123 | --with-systemdsystemunitdir=%{systemdunitdir} | |
d0951904 MB |
124 | |
125 | %{__make} | |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
9744188f | 133 | %find_lang upower |
7f03a8d5 | 134 | |
d0951904 MB |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
e24563a8 JB |
138 | %post libs -p /sbin/ldconfig |
139 | %postun libs -p /sbin/ldconfig | |
58850157 | 140 | |
48f5336e AM |
141 | %post |
142 | %systemd_post upower.service | |
143 | ||
144 | %preun | |
48f5336e AM |
145 | %systemd_preun upower.service |
146 | ||
147 | %postun | |
148 | %systemd_reload | |
149 | ||
9744188f | 150 | %files -f upower.lang |
d0951904 | 151 | %defattr(644,root,root,755) |
38abef6e | 152 | %doc AUTHORS HACKING NEWS README |
7f03a8d5 | 153 | %attr(755,root,root) %{_bindir}/upower |
7f03a8d5 | 154 | %attr(755,root,root) %{_libdir}/upowerd |
7f03a8d5 | 155 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf |
9744188f MB |
156 | %dir %{_sysconfdir}/UPower |
157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf | |
7f03a8d5 MB |
158 | %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service |
159 | %{_datadir}/polkit-1/actions/org.freedesktop.upower.policy | |
160 | %{_datadir}/polkit-1/actions/org.freedesktop.upower.qos.policy | |
409b1d2c | 161 | %{systemdunitdir}/upower.service |
e24563a8 | 162 | %attr(755,root,root) /lib/systemd/system-sleep/notify-upower.sh |
7f03a8d5 MB |
163 | /lib/udev/rules.d/95-upower-battery-recall-dell.rules |
164 | /lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules | |
165 | /lib/udev/rules.d/95-upower-battery-recall-gateway.rules | |
166 | /lib/udev/rules.d/95-upower-battery-recall-ibm.rules | |
167 | /lib/udev/rules.d/95-upower-battery-recall-lenovo.rules | |
168 | /lib/udev/rules.d/95-upower-battery-recall-toshiba.rules | |
169 | /lib/udev/rules.d/95-upower-csr.rules | |
170 | /lib/udev/rules.d/95-upower-hid.rules | |
171 | /lib/udev/rules.d/95-upower-wup.rules | |
172 | %{_mandir}/man1/upower.1* | |
173 | %{_mandir}/man7/UPower.7* | |
174 | %{_mandir}/man8/upowerd.8* | |
cc36b8c0 | 175 | %dir /var/lib/upower |
d0951904 | 176 | |
e24563a8 | 177 | %files libs |
d0951904 | 178 | %defattr(644,root,root,755) |
e24563a8 JB |
179 | %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* |
180 | %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.1 | |
181 | %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib | |
58850157 PZ |
182 | |
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
7f03a8d5 | 185 | %attr(755,root,root) %{_libdir}/libupower-glib.so |
7f03a8d5 MB |
186 | %{_libdir}/libupower-glib.la |
187 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml | |
3f2f1e01 | 188 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml |
7f03a8d5 MB |
189 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml |
190 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml | |
191 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
192 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
7f03a8d5 | 193 | %{_includedir}/libupower-glib |
7f03a8d5 | 194 | %{_pkgconfigdir}/upower-glib.pc |
e24563a8 JB |
195 | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
198 | %{_libdir}/libupower-glib.a | |
199 | ||
200 | %files apidocs | |
201 | %defattr(644,root,root,755) | |
202 | %{_gtkdocdir}/UPower |