]>
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 | |
f041d215 AM |
8 | # Source0: https://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz |
9 | Source0: https://gitlab.freedesktop.org/upower/upower/uploads/9125ab7ee96fdc4ecc68cfefb50c1cab/%{name}-%{version}.tar.xz | |
10 | # Source0-md5: eeb56bd91d2fb8a64c81eff6d899926b | |
8a609a3a AM |
11 | # https://gitlab.freedesktop.org/upower/upower/issues/68 |
12 | Patch0: upower-bug-68.patch | |
b1b32a2e | 13 | URL: https://upower.freedesktop.org/ |
7f03a8d5 | 14 | BuildRequires: autoconf >= 2.65 |
ef6fd72b | 15 | BuildRequires: automake >= 1:1.11 |
c123b058 | 16 | BuildRequires: docbook-dtd412-xml |
9b67ec1f | 17 | BuildRequires: gettext-tools >= 0.17 |
b1b32a2e | 18 | BuildRequires: glib2-devel >= 1:2.34.0 |
0fd8623f | 19 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
ef6fd72b | 20 | BuildRequires: gtk-doc >= 1.11 |
d0951904 | 21 | BuildRequires: intltool >= 0.40.0 |
cc36b8c0 | 22 | BuildRequires: libimobiledevice-devel >= 0.9.7 |
e24563a8 | 23 | BuildRequires: libplist-devel >= 0.12 |
df436de5 | 24 | BuildRequires: libtool >= 2:2 |
e24563a8 | 25 | BuildRequires: libusb-devel >= 1.0.0 |
d0951904 | 26 | BuildRequires: pkgconfig |
df436de5 | 27 | BuildRequires: systemd-devel |
19b19e1c | 28 | BuildRequires: tar >= 1:1.22 |
e24563a8 | 29 | BuildRequires: udev-glib-devel >= 1:147 |
19b19e1c | 30 | BuildRequires: xz |
a46b24de JB |
31 | Requires(post,preun,postun): systemd-units >= 38 |
32 | Requires: libimobiledevice >= 0.9.7 | |
33 | Requires: libplist >= 0.12 | |
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 | |
b1b32a2e | 53 | Requires: glib2 >= 1:2.34.0 |
e24563a8 | 54 | Conflicts: upower < 0.9.18 |
d0951904 | 55 | |
e24563a8 JB |
56 | %description libs |
57 | UPower shared library. | |
d0951904 | 58 | |
e24563a8 JB |
59 | %description libs -l pl.UTF-8 |
60 | Biblioteka współdzielona UPower. | |
d0951904 | 61 | |
58850157 | 62 | %package devel |
7f03a8d5 | 63 | Summary: Header files for UPower library |
e24563a8 | 64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower |
58850157 | 65 | Group: Development/Libraries |
e24563a8 | 66 | Requires: %{name}-libs = %{version}-%{release} |
b1b32a2e | 67 | Requires: glib2-devel >= 1:2.34.0 |
3ea6d0a8 ER |
68 | Obsoletes: DeviceKit-power-devel |
69 | Obsoletes: UPower-devel | |
d1d687c3 | 70 | Obsoletes: upower-pm-utils-devel |
58850157 PZ |
71 | |
72 | %description devel | |
7f03a8d5 | 73 | Header files for UPower library. |
58850157 PZ |
74 | |
75 | %description devel -l pl.UTF-8 | |
e24563a8 JB |
76 | Pliki nagłówkowe biblioteki UPower. |
77 | ||
78 | %package static | |
79 | Summary: Static UPower library | |
80 | Summary(pl.UTF-8): Statyczna biblioteka UPower | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
d1d687c3 | 83 | Obsoletes: upower-pm-utils-static |
e24563a8 JB |
84 | |
85 | %description static | |
86 | Static UPower library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczna biblioteka UPower. | |
90 | ||
91 | %package apidocs | |
92 | Summary: UPower API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API UPower | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
96 | Obsoletes: DeviceKit-power-apidocs | |
97 | Obsoletes: UPower-apidocs | |
d1d687c3 | 98 | Obsoletes: upower-pm-utils-apidocs |
2cbad77f ER |
99 | %if "%{_rpmversion}" >= "5" |
100 | BuildArch: noarch | |
101 | %endif | |
e24563a8 JB |
102 | |
103 | %description apidocs | |
104 | UPower API documentation. | |
105 | ||
106 | %description apidocs -l pl.UTF-8 | |
107 | Dokumentacja API UPower. | |
58850157 | 108 | |
d0951904 | 109 | %prep |
dafd6455 | 110 | %setup -q |
8a609a3a | 111 | %patch0 -p1 |
d0951904 MB |
112 | |
113 | %build | |
09383712 | 114 | %{__gtkdocize} |
d0951904 MB |
115 | %{__intltoolize} |
116 | %{__libtoolize} | |
117 | %{__aclocal} | |
118 | %{__autoconf} | |
119 | %{__autoheader} | |
120 | %{__automake} | |
121 | %configure \ | |
72851d35 | 122 | --disable-silent-rules \ |
1292e098 | 123 | --enable-deprecated \ |
d0951904 | 124 | --enable-gtk-doc \ |
409b1d2c ŁK |
125 | --with-html-dir=%{_gtkdocdir} \ |
126 | --with-systemdsystemunitdir=%{systemdunitdir} | |
d0951904 MB |
127 | |
128 | %{__make} | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
9744188f | 136 | %find_lang upower |
7f03a8d5 | 137 | |
d0951904 MB |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
48f5336e AM |
141 | %post |
142 | %systemd_post upower.service | |
143 | ||
144 | %preun | |
48f5336e AM |
145 | %systemd_preun upower.service |
146 | ||
147 | %postun | |
148 | %systemd_reload | |
149 | ||
a46b24de JB |
150 | %post libs -p /sbin/ldconfig |
151 | %postun libs -p /sbin/ldconfig | |
152 | ||
9744188f | 153 | %files -f upower.lang |
d0951904 | 154 | %defattr(644,root,root,755) |
38abef6e | 155 | %doc AUTHORS HACKING NEWS README |
7f03a8d5 | 156 | %attr(755,root,root) %{_bindir}/upower |
3115add0 | 157 | %attr(755,root,root) %{_libexecdir}/upowerd |
7f03a8d5 | 158 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf |
9744188f MB |
159 | %dir %{_sysconfdir}/UPower |
160 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf | |
7f03a8d5 | 161 | %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service |
409b1d2c | 162 | %{systemdunitdir}/upower.service |
7f03a8d5 MB |
163 | /lib/udev/rules.d/95-upower-csr.rules |
164 | /lib/udev/rules.d/95-upower-hid.rules | |
165 | /lib/udev/rules.d/95-upower-wup.rules | |
166 | %{_mandir}/man1/upower.1* | |
167 | %{_mandir}/man7/UPower.7* | |
168 | %{_mandir}/man8/upowerd.8* | |
cc36b8c0 | 169 | %dir /var/lib/upower |
d0951904 | 170 | |
e24563a8 | 171 | %files libs |
d0951904 | 172 | %defattr(644,root,root,755) |
e24563a8 | 173 | %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* |
af09a8dc | 174 | %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.3 |
e24563a8 | 175 | %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib |
58850157 PZ |
176 | |
177 | %files devel | |
178 | %defattr(644,root,root,755) | |
7f03a8d5 | 179 | %attr(755,root,root) %{_libdir}/libupower-glib.so |
7f03a8d5 MB |
180 | %{_libdir}/libupower-glib.la |
181 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml | |
3f2f1e01 | 182 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml |
7f03a8d5 MB |
183 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml |
184 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
185 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
7f03a8d5 | 186 | %{_includedir}/libupower-glib |
7f03a8d5 | 187 | %{_pkgconfigdir}/upower-glib.pc |
e24563a8 JB |
188 | |
189 | %files static | |
190 | %defattr(644,root,root,755) | |
191 | %{_libdir}/libupower-glib.a | |
192 | ||
193 | %files apidocs | |
194 | %defattr(644,root,root,755) | |
195 | %{_gtkdocdir}/UPower |