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