]>
Commit | Line | Data |
---|---|---|
d0951904 MB |
1 | Summary: Power management service |
2 | Summary(pl.UTF-8): Usługa zarządzania energią | |
dafd6455 | 3 | Name: upower |
0dc366a3 | 4 | Version: 0.99.11 |
f130a49a | 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 |
58711252 | 10 | # since 0.99.8 |
0574807b | 11 | #Source0Download: https://gitlab.freedesktop.org/upower/upower/tags |
0dc366a3 JB |
12 | Source0: https://gitlab.freedesktop.org/upower/upower/uploads/93cfe7c8d66ed486001c4f3f55399b7a/%{name}-%{version}.tar.xz |
13 | # Source0-md5: abe6acb617f11f2e8dbd9846fcf86e24 | |
f130a49a | 14 | Patch0: %{name}-libplist.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 |
0dc366a3 JB |
19 | BuildRequires: gettext-tools >= 0.19.8 |
20 | BuildRequires: glib2-devel >= 1:2.38.0 | |
0fd8623f | 21 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
ef6fd72b | 22 | BuildRequires: gtk-doc >= 1.11 |
cc36b8c0 | 23 | BuildRequires: libimobiledevice-devel >= 0.9.7 |
f130a49a | 24 | BuildRequires: libplist-devel >= 2.2.0 |
df436de5 | 25 | BuildRequires: libtool >= 2:2 |
e24563a8 | 26 | BuildRequires: libusb-devel >= 1.0.0 |
d0951904 | 27 | BuildRequires: pkgconfig |
df436de5 | 28 | BuildRequires: systemd-devel |
19b19e1c | 29 | BuildRequires: tar >= 1:1.22 |
e24563a8 | 30 | BuildRequires: udev-glib-devel >= 1:147 |
19b19e1c | 31 | BuildRequires: xz |
a46b24de JB |
32 | Requires(post,preun,postun): systemd-units >= 38 |
33 | Requires: libimobiledevice >= 0.9.7 | |
f130a49a | 34 | Requires: libplist >= 2.2.0 |
48f5336e | 35 | Requires: systemd-units >= 38 |
a46b24de | 36 | Requires: udev-glib >= 1:147 |
be7c1173 | 37 | Obsoletes: DeviceKit-power < 0.15 |
3ea6d0a8 | 38 | Obsoletes: UPower < 0.9.8-2 |
d1d687c3 | 39 | Obsoletes: upower-pm-utils |
d0951904 MB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
dafd6455 | 43 | upower provides a daemon, API and command line tools for managing |
7f03a8d5 | 44 | power devices attached to the system. |
d0951904 MB |
45 | |
46 | %description -l pl.UTF-8 | |
3cf57ee9 | 47 | upower dostarcza demona, API i narzędzia linii poleceń do zarządzania |
7f03a8d5 | 48 | urządzeniami energii dołączonymi do systemu. |
d0951904 | 49 | |
e24563a8 JB |
50 | %package libs |
51 | Summary: UPower shared library | |
52 | Summary(pl.UTF-8): Biblioteka współdzielona UPower | |
53 | Group: Libraries | |
0dc366a3 | 54 | Requires: glib2 >= 1:2.38.0 |
e24563a8 | 55 | Conflicts: upower < 0.9.18 |
d0951904 | 56 | |
e24563a8 JB |
57 | %description libs |
58 | UPower shared library. | |
d0951904 | 59 | |
e24563a8 JB |
60 | %description libs -l pl.UTF-8 |
61 | Biblioteka współdzielona UPower. | |
d0951904 | 62 | |
58850157 | 63 | %package devel |
7f03a8d5 | 64 | Summary: Header files for UPower library |
e24563a8 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower |
58850157 | 66 | Group: Development/Libraries |
e24563a8 | 67 | Requires: %{name}-libs = %{version}-%{release} |
0dc366a3 | 68 | Requires: glib2-devel >= 1:2.38.0 |
3ea6d0a8 ER |
69 | Obsoletes: DeviceKit-power-devel |
70 | Obsoletes: UPower-devel | |
d1d687c3 | 71 | Obsoletes: upower-pm-utils-devel |
58850157 PZ |
72 | |
73 | %description devel | |
7f03a8d5 | 74 | Header files for UPower library. |
58850157 PZ |
75 | |
76 | %description devel -l pl.UTF-8 | |
e24563a8 JB |
77 | Pliki nagłówkowe biblioteki UPower. |
78 | ||
79 | %package static | |
80 | Summary: Static UPower library | |
81 | Summary(pl.UTF-8): Statyczna biblioteka UPower | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
d1d687c3 | 84 | Obsoletes: upower-pm-utils-static |
e24563a8 JB |
85 | |
86 | %description static | |
87 | Static UPower library. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka UPower. | |
91 | ||
92 | %package apidocs | |
93 | Summary: UPower API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API UPower | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | Obsoletes: DeviceKit-power-apidocs | |
98 | Obsoletes: UPower-apidocs | |
d1d687c3 | 99 | Obsoletes: upower-pm-utils-apidocs |
f130a49a | 100 | %if "%{_rpmversion}" >= "4.6" |
2cbad77f ER |
101 | BuildArch: noarch |
102 | %endif | |
e24563a8 JB |
103 | |
104 | %description apidocs | |
105 | UPower API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API UPower. | |
58850157 | 109 | |
d0951904 | 110 | %prep |
dafd6455 | 111 | %setup -q |
f130a49a | 112 | %patch0 -p1 |
d0951904 MB |
113 | |
114 | %build | |
09383712 | 115 | %{__gtkdocize} |
d0951904 MB |
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 | ||
58711252 JB |
136 | # obsoleted by pkg-config |
137 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libupower-glib.la | |
138 | ||
9744188f | 139 | %find_lang upower |
7f03a8d5 | 140 | |
d0951904 MB |
141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
48f5336e AM |
144 | %post |
145 | %systemd_post upower.service | |
146 | ||
147 | %preun | |
48f5336e AM |
148 | %systemd_preun upower.service |
149 | ||
150 | %postun | |
151 | %systemd_reload | |
152 | ||
a46b24de JB |
153 | %post libs -p /sbin/ldconfig |
154 | %postun libs -p /sbin/ldconfig | |
155 | ||
9744188f | 156 | %files -f upower.lang |
d0951904 | 157 | %defattr(644,root,root,755) |
38abef6e | 158 | %doc AUTHORS HACKING NEWS README |
7f03a8d5 | 159 | %attr(755,root,root) %{_bindir}/upower |
3115add0 | 160 | %attr(755,root,root) %{_libexecdir}/upowerd |
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 |
0dc366a3 | 164 | %{_datadir}/dbus-1/system.d/org.freedesktop.UPower.conf |
409b1d2c | 165 | %{systemdunitdir}/upower.service |
7f03a8d5 MB |
166 | /lib/udev/rules.d/95-upower-csr.rules |
167 | /lib/udev/rules.d/95-upower-hid.rules | |
0dc366a3 | 168 | /lib/udev/rules.d/95-upower-hidpp.rules |
7f03a8d5 MB |
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 | 184 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml |
3f2f1e01 | 185 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml |
7f03a8d5 MB |
186 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml |
187 | %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml | |
188 | %{_datadir}/gir-1.0/UPowerGlib-1.0.gir | |
7f03a8d5 | 189 | %{_includedir}/libupower-glib |
7f03a8d5 | 190 | %{_pkgconfigdir}/upower-glib.pc |
e24563a8 JB |
191 | |
192 | %files static | |
193 | %defattr(644,root,root,755) | |
194 | %{_libdir}/libupower-glib.a | |
195 | ||
196 | %files apidocs | |
197 | %defattr(644,root,root,755) | |
198 | %{_gtkdocdir}/UPower |