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