]>
Commit | Line | Data |
---|---|---|
d0951904 MB |
1 | Summary: Power management service |
2 | Summary(pl.UTF-8): Usługa zarządzania energią | |
dafd6455 | 3 | Name: upower |
b1b32a2e JB |
4 | Version: 0.99.4 |
5 | Release: 1 | |
d0951904 MB |
6 | License: GPL v2+ |
7 | Group: Libraries | |
b1b32a2e JB |
8 | Source0: https://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 78800e1ac7f92b24aabdf433e38f75d2 | |
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 | |
d0951904 | 31 | Requires: pm-utils |
48f5336e | 32 | Requires: systemd-units >= 38 |
a46b24de | 33 | Requires: udev-glib >= 1:147 |
be7c1173 | 34 | Obsoletes: DeviceKit-power < 0.15 |
3ea6d0a8 | 35 | Obsoletes: UPower < 0.9.8-2 |
d1d687c3 | 36 | Obsoletes: upower-pm-utils |
d0951904 MB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
dafd6455 | 40 | upower provides a daemon, API and command line tools for managing |
7f03a8d5 | 41 | power devices attached to the system. |
d0951904 MB |
42 | |
43 | %description -l pl.UTF-8 | |
3cf57ee9 | 44 | upower dostarcza demona, API i narzędzia linii poleceń do zarządzania |
7f03a8d5 | 45 | urządzeniami energii dołączonymi do systemu. |
d0951904 | 46 | |
e24563a8 JB |
47 | %package libs |
48 | Summary: UPower shared library | |
49 | Summary(pl.UTF-8): Biblioteka współdzielona UPower | |
50 | Group: Libraries | |
b1b32a2e | 51 | Requires: glib2 >= 1:2.34.0 |
e24563a8 | 52 | Conflicts: upower < 0.9.18 |
d0951904 | 53 | |
e24563a8 JB |
54 | %description libs |
55 | UPower shared library. | |
d0951904 | 56 | |
e24563a8 JB |
57 | %description libs -l pl.UTF-8 |
58 | Biblioteka współdzielona UPower. | |
d0951904 | 59 | |
58850157 | 60 | %package devel |
7f03a8d5 | 61 | Summary: Header files for UPower library |
e24563a8 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower |
58850157 | 63 | Group: Development/Libraries |
e24563a8 | 64 | Requires: %{name}-libs = %{version}-%{release} |
b1b32a2e | 65 | Requires: glib2-devel >= 1:2.34.0 |
3ea6d0a8 ER |
66 | Obsoletes: DeviceKit-power-devel |
67 | Obsoletes: UPower-devel | |
d1d687c3 | 68 | Obsoletes: upower-pm-utils-devel |
58850157 PZ |
69 | |
70 | %description devel | |
7f03a8d5 | 71 | Header files for UPower library. |
58850157 PZ |
72 | |
73 | %description devel -l pl.UTF-8 | |
e24563a8 JB |
74 | Pliki nagłówkowe biblioteki UPower. |
75 | ||
76 | %package static | |
77 | Summary: Static UPower library | |
78 | Summary(pl.UTF-8): Statyczna biblioteka UPower | |
79 | Group: Development/Libraries | |
80 | Requires: %{name}-devel = %{version}-%{release} | |
d1d687c3 | 81 | Obsoletes: upower-pm-utils-static |
e24563a8 JB |
82 | |
83 | %description static | |
84 | Static UPower library. | |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Statyczna biblioteka UPower. | |
88 | ||
89 | %package apidocs | |
90 | Summary: UPower API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API UPower | |
92 | Group: Documentation | |
93 | Requires: gtk-doc-common | |
94 | Obsoletes: DeviceKit-power-apidocs | |
95 | Obsoletes: UPower-apidocs | |
d1d687c3 | 96 | Obsoletes: upower-pm-utils-apidocs |
2cbad77f ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
e24563a8 JB |
100 | |
101 | %description apidocs | |
102 | UPower API documentation. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API UPower. | |
58850157 | 106 | |
d0951904 | 107 | %prep |
dafd6455 | 108 | %setup -q |
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 | ||
48f5336e AM |
138 | %post |
139 | %systemd_post upower.service | |
140 | ||
141 | %preun | |
48f5336e AM |
142 | %systemd_preun upower.service |
143 | ||
144 | %postun | |
145 | %systemd_reload | |
146 | ||
a46b24de JB |
147 | %post libs -p /sbin/ldconfig |
148 | %postun libs -p /sbin/ldconfig | |
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 | 158 | %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service |
409b1d2c | 159 | %{systemdunitdir}/upower.service |
7f03a8d5 MB |
160 | /lib/udev/rules.d/95-upower-csr.rules |
161 | /lib/udev/rules.d/95-upower-hid.rules | |
162 | /lib/udev/rules.d/95-upower-wup.rules | |
163 | %{_mandir}/man1/upower.1* | |
164 | %{_mandir}/man7/UPower.7* | |
165 | %{_mandir}/man8/upowerd.8* | |
cc36b8c0 | 166 | %dir /var/lib/upower |
d0951904 | 167 | |
e24563a8 | 168 | %files libs |
d0951904 | 169 | %defattr(644,root,root,755) |
e24563a8 | 170 | %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* |
af09a8dc | 171 | %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.3 |
e24563a8 | 172 | %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib |
58850157 PZ |
173 | |
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
7f03a8d5 | 176 | %attr(755,root,root) %{_libdir}/libupower-glib.so |
7f03a8d5 MB |
177 | %{_libdir}/libupower-glib.la |
178 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml | |
3f2f1e01 | 179 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml |
7f03a8d5 MB |
180 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml |
181 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
182 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
7f03a8d5 | 183 | %{_includedir}/libupower-glib |
7f03a8d5 | 184 | %{_pkgconfigdir}/upower-glib.pc |
e24563a8 JB |
185 | |
186 | %files static | |
187 | %defattr(644,root,root,755) | |
188 | %{_libdir}/libupower-glib.a | |
189 | ||
190 | %files apidocs | |
191 | %defattr(644,root,root,755) | |
192 | %{_gtkdocdir}/UPower |