]>
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 |
2cbad77f | 5 | Release: 2 |
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 |
d1d687c3 | 56 | Obsoletes: upower-pm-utils-libs |
e24563a8 | 57 | Conflicts: upower < 0.9.18 |
d0951904 | 58 | |
e24563a8 JB |
59 | %description libs |
60 | UPower shared library. | |
d0951904 | 61 | |
e24563a8 JB |
62 | %description libs -l pl.UTF-8 |
63 | Biblioteka współdzielona UPower. | |
d0951904 | 64 | |
58850157 | 65 | %package devel |
7f03a8d5 | 66 | Summary: Header files for UPower library |
e24563a8 | 67 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower |
58850157 | 68 | Group: Development/Libraries |
e24563a8 | 69 | Requires: %{name}-libs = %{version}-%{release} |
2a28419b | 70 | Requires: dbus-devel >= 1.0.0 |
e24563a8 | 71 | Requires: dbus-glib-devel >= 0.76 |
2683572b | 72 | Requires: glib2-devel >= 1:2.34 |
3ea6d0a8 ER |
73 | Obsoletes: DeviceKit-power-devel |
74 | Obsoletes: UPower-devel | |
d1d687c3 | 75 | Obsoletes: upower-pm-utils-devel |
58850157 PZ |
76 | |
77 | %description devel | |
7f03a8d5 | 78 | Header files for UPower library. |
58850157 PZ |
79 | |
80 | %description devel -l pl.UTF-8 | |
e24563a8 JB |
81 | Pliki nagłówkowe biblioteki UPower. |
82 | ||
83 | %package static | |
84 | Summary: Static UPower library | |
85 | Summary(pl.UTF-8): Statyczna biblioteka UPower | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-devel = %{version}-%{release} | |
d1d687c3 | 88 | Obsoletes: upower-pm-utils-static |
e24563a8 JB |
89 | |
90 | %description static | |
91 | Static UPower library. | |
92 | ||
93 | %description static -l pl.UTF-8 | |
94 | Statyczna biblioteka UPower. | |
95 | ||
96 | %package apidocs | |
97 | Summary: UPower API documentation | |
98 | Summary(pl.UTF-8): Dokumentacja API UPower | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
101 | Obsoletes: DeviceKit-power-apidocs | |
102 | Obsoletes: UPower-apidocs | |
d1d687c3 | 103 | Obsoletes: upower-pm-utils-apidocs |
2cbad77f ER |
104 | %if "%{_rpmversion}" >= "5" |
105 | BuildArch: noarch | |
106 | %endif | |
e24563a8 JB |
107 | |
108 | %description apidocs | |
109 | UPower API documentation. | |
110 | ||
111 | %description apidocs -l pl.UTF-8 | |
112 | Dokumentacja API UPower. | |
58850157 | 113 | |
d0951904 | 114 | %prep |
dafd6455 | 115 | %setup -q |
d0951904 MB |
116 | |
117 | %build | |
09383712 | 118 | %{__gtkdocize} |
d0951904 MB |
119 | %{__intltoolize} |
120 | %{__libtoolize} | |
121 | %{__aclocal} | |
122 | %{__autoconf} | |
123 | %{__autoheader} | |
124 | %{__automake} | |
125 | %configure \ | |
72851d35 | 126 | --disable-silent-rules \ |
1292e098 | 127 | --enable-deprecated \ |
d0951904 | 128 | --enable-gtk-doc \ |
409b1d2c ŁK |
129 | --with-html-dir=%{_gtkdocdir} \ |
130 | --with-systemdsystemunitdir=%{systemdunitdir} | |
d0951904 MB |
131 | |
132 | %{__make} | |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %{__make} install \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | ||
9744188f | 140 | %find_lang upower |
7f03a8d5 | 141 | |
d0951904 MB |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
48f5336e AM |
145 | %post |
146 | %systemd_post upower.service | |
147 | ||
148 | %preun | |
48f5336e AM |
149 | %systemd_preun upower.service |
150 | ||
151 | %postun | |
152 | %systemd_reload | |
153 | ||
a46b24de JB |
154 | %post libs -p /sbin/ldconfig |
155 | %postun libs -p /sbin/ldconfig | |
156 | ||
9744188f | 157 | %files -f upower.lang |
d0951904 | 158 | %defattr(644,root,root,755) |
38abef6e | 159 | %doc AUTHORS HACKING NEWS README |
7f03a8d5 | 160 | %attr(755,root,root) %{_bindir}/upower |
7f03a8d5 | 161 | %attr(755,root,root) %{_libdir}/upowerd |
7f03a8d5 | 162 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf |
9744188f MB |
163 | %dir %{_sysconfdir}/UPower |
164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf | |
7f03a8d5 | 165 | %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service |
409b1d2c | 166 | %{systemdunitdir}/upower.service |
7f03a8d5 MB |
167 | /lib/udev/rules.d/95-upower-csr.rules |
168 | /lib/udev/rules.d/95-upower-hid.rules | |
169 | /lib/udev/rules.d/95-upower-wup.rules | |
170 | %{_mandir}/man1/upower.1* | |
171 | %{_mandir}/man7/UPower.7* | |
172 | %{_mandir}/man8/upowerd.8* | |
cc36b8c0 | 173 | %dir /var/lib/upower |
d0951904 | 174 | |
e24563a8 | 175 | %files libs |
d0951904 | 176 | %defattr(644,root,root,755) |
e24563a8 | 177 | %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* |
af09a8dc | 178 | %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.3 |
e24563a8 | 179 | %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib |
58850157 PZ |
180 | |
181 | %files devel | |
182 | %defattr(644,root,root,755) | |
7f03a8d5 | 183 | %attr(755,root,root) %{_libdir}/libupower-glib.so |
7f03a8d5 MB |
184 | %{_libdir}/libupower-glib.la |
185 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml | |
3f2f1e01 | 186 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml |
7f03a8d5 MB |
187 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml |
188 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
189 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
7f03a8d5 | 190 | %{_includedir}/libupower-glib |
7f03a8d5 | 191 | %{_pkgconfigdir}/upower-glib.pc |
e24563a8 JB |
192 | |
193 | %files static | |
194 | %defattr(644,root,root,755) | |
195 | %{_libdir}/libupower-glib.a | |
196 | ||
197 | %files apidocs | |
198 | %defattr(644,root,root,755) | |
199 | %{_gtkdocdir}/UPower |