2019-09-30 11:19:00 -04:00
|
|
|
Name: upower
|
2022-04-13 11:13:57 +08:00
|
|
|
Version: 0.99.17
|
|
|
|
|
Release: 1
|
2019-09-30 11:19:00 -04:00
|
|
|
Summary: Power Management Service
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://upower.freedesktop.org/
|
2022-04-13 11:13:57 +08:00
|
|
|
Source0: https://gitlab.freedesktop.org/upower/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
|
2019-09-30 11:19:00 -04:00
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
BuildRequires: libtool intltool gettext libgudev1-devel gobject-introspection-devel gtk-doc systemd libxslt
|
|
|
|
|
BuildRequires: libusbx-devel libimobiledevice-devel glib2-devel >= 2.34.0 libplist-devel
|
|
|
|
|
BuildRequires: meson
|
2019-12-13 16:13:22 +08:00
|
|
|
Requires: gobject-introspection udev
|
2022-04-13 11:13:57 +08:00
|
|
|
%{?systemd_requires}
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
UPower is an abstraction for enumerating power devices, listening to
|
|
|
|
|
device events and querying history and statistics. Any application or
|
|
|
|
|
service on the system can access the org.freedesktop.UPower service
|
|
|
|
|
via the system message bus. Some operations (such as suspending the
|
|
|
|
|
system) are restricted using PolicyKit.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Headers and libraries for UPower
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Headers and libraries for %{name}.
|
|
|
|
|
|
|
|
|
|
%package devel-docs
|
|
|
|
|
Summary: Developer documentation for for libupower-glib
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel-docs
|
|
|
|
|
Developer documentation for for libupower-glib.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-04-13 11:13:57 +08:00
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%build
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson \
|
|
|
|
|
-Dman=true \
|
|
|
|
|
-Dgtk-doc=true \
|
|
|
|
|
-Dintrospection=enabled \
|
2019-09-30 11:19:00 -04:00
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson_build
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%install
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson_install
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%find_lang upower
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
%post
|
|
|
|
|
%systemd_post upower.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun upower.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart upower.service
|
|
|
|
|
|
2019-09-30 11:19:00 -04:00
|
|
|
%files -f upower.lang
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS AUTHORS HACKING README
|
|
|
|
|
%{_libdir}/libupower-glib.so.*
|
2022-04-13 11:13:57 +08:00
|
|
|
%{_datadir}/dbus-1/system.d/*.conf
|
|
|
|
|
%{_udevrulesdir}/*.rules
|
2019-09-30 11:19:00 -04:00
|
|
|
%dir %{_localstatedir}/lib/upower
|
|
|
|
|
%dir %{_sysconfdir}/UPower
|
|
|
|
|
%config %{_sysconfdir}/UPower/UPower.conf
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libexecdir}/*
|
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
|
%{_mandir}/man*
|
|
|
|
|
%{_datadir}/dbus-1/system-services/*.service
|
2022-04-13 11:13:57 +08:00
|
|
|
%{_unitdir}/*.service
|
2019-09-30 11:19:00 -04:00
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
%exclude %{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
|
%{_libdir}/libupower-glib.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
|
%dir %{_includedir}/libupower-glib
|
|
|
|
|
%{_includedir}/libupower-glib/up-*.h
|
|
|
|
|
%{_includedir}/libupower-glib/upower.h
|
|
|
|
|
|
|
|
|
|
%files devel-docs
|
2022-04-13 11:13:57 +08:00
|
|
|
%dir %{_datadir}/gtk-doc
|
2019-09-30 11:19:00 -04:00
|
|
|
%dir %{_datadir}/gtk-doc/html/UPower
|
|
|
|
|
%{_datadir}/gtk-doc/html/UPower/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-04-13 11:13:57 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.99.17-1
|
|
|
|
|
- Update to 0.99.17
|
|
|
|
|
|
2019-12-13 16:13:22 +08:00
|
|
|
* Wed Nov 20 2019 mengxian <mengxian@huawei.com> - 0.99.8-5
|
|
|
|
|
- Fix compilation problem in x86_64
|
|
|
|
|
|
2019-09-30 11:19:00 -04:00
|
|
|
* Fri Aug 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.99.8-4
|
|
|
|
|
- Package init
|