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