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