2024-01-05 18:50:25 +01:00
|
|
|
%define gitver %(echo %version | tr . _)
|
2024-01-05 18:50:25 +01:00
|
|
|
Name: upower
|
2024-04-11 10:23:59 +02:00
|
|
|
Version: 1.90.4
|
2024-01-05 18:50:25 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 18:50:25 +01:00
|
|
|
Summary: Power Management Service
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 18:50:25 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:50:25 +01:00
|
|
|
URL: https://upower.freedesktop.org/
|
2024-01-05 18:50:25 +01:00
|
|
|
Source: https://gitlab.freedesktop.org/upower/upower.git/v%{version}/upower-%{version}.tar.bz2
|
2024-01-05 18:50:25 +01:00
|
|
|
Patch0: upower-0.9.6-ensure-gerror-is-init.patch
|
|
|
|
Patch1: upower-dbus-fixes.patch
|
|
|
|
Patch2: %{name}-0.9.15-use_percentage_when_noly_energy_full_is_unavailable.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libglib-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
BuildRequires: libgudev-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
BuildRequires: libimobiledevice-devel
|
|
|
|
BuildRequires: libplist-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
BuildRequires: libimobiledevice-devel >= 1.1.4
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libelf-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
BuildRequires: libplist-devel >= 1.11
|
2024-01-05 18:50:25 +01:00
|
|
|
Requires: libimobiledevice >= 1.1.4
|
2024-01-05 18:50:25 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 18:50:25 +01: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.
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Group: Development/Libraries
|
2024-01-05 18:50:25 +01:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: upower-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
Obsoletes: upower-devel < 0.99.18
|
2024-01-05 18:50:25 +01:00
|
|
|
Provides: %{name}-static
|
2024-01-05 18:50:25 +01:00
|
|
|
Obsoletes: %{name}-static < 0.99.18
|
|
|
|
Provides: lib%{name}-static
|
|
|
|
Obsoletes: lib%{name}-static < 0.99.18
|
2024-01-05 18:50:25 +01:00
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%description -n lib%{name}-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system.
|
2024-01-05 18:50:25 +01:00
|
|
|
This package contains libraries and header files needed for development.
|
2024-01-05 18:50:25 +01:00
|
|
|
|
|
|
|
%package apidocs
|
|
|
|
Summary: %{name} API documentation
|
|
|
|
Group: Documentation
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description apidocs
|
|
|
|
UPower (formerly DeviceKit-power) provides a daemon, API and command
|
|
|
|
line tools for managing power devices attached to the system.
|
|
|
|
This package contains %{name} API documentation.
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 18:50:25 +01:00
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%build
|
2024-01-05 18:50:25 +01:00
|
|
|
%meson
|
2024-01-05 18:50:25 +01:00
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%meson_build
|
2024-01-05 18:50:25 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 18:50:25 +01:00
|
|
|
%meson_install
|
2024-01-05 18:50:25 +01:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%pre
|
|
|
|
%systemd_per %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%systemd_post %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%systemd_postun %{name}
|
|
|
|
:
|
2024-01-05 18:50:25 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/UPower
|
|
|
|
%config %{_sysconfdir}/UPower/UPower.conf
|
|
|
|
%{_bindir}/upower
|
|
|
|
%dir %{_localstatedir}/lib/upower
|
|
|
|
%{_libdir}/girepository-*/UPowerGlib-*.typelib
|
2024-01-05 18:50:26 +01:00
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
%{_datadir}/dbus-1/system-services/*.service
|
2024-01-05 18:50:25 +01:00
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.UPower.conf
|
|
|
|
%{_udevrulesdir}/95-upower-*.rules
|
2024-01-05 18:50:25 +01:00
|
|
|
%{_udevhwdbdir}/95-upower-hid.hwdb
|
2024-01-05 18:50:26 +01:00
|
|
|
%{_unitdir}/upower.service
|
|
|
|
%{_datadir}/installed-tests/upower/upower-integration.test
|
2024-01-05 18:50:25 +01:00
|
|
|
%{_mandir}/man1/upower.1*
|
|
|
|
%{_mandir}/man7/UPower.7*
|
|
|
|
%{_mandir}/man8/upowerd.8*
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libexecdir}/upowerd
|
|
|
|
%{_libdir}/libupower-glib.so.*
|
2024-01-05 18:50:26 +01:00
|
|
|
%dir %{_libexecdir}/upower
|
|
|
|
%{_libexecdir}/upower/*
|
2024-01-05 18:50:25 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
%files -n lib%{name}-devel
|
2024-01-05 18:50:25 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/libupower-glib
|
|
|
|
%{_includedir}/libupower-glib/*.h
|
|
|
|
%{_libdir}/libupower-glib.so
|
|
|
|
%{_libdir}/pkgconfig/upower-glib.pc
|
|
|
|
%{_datadir}/gir-*/UPowerGlib-*.gir
|
|
|
|
%doc HACKING NEWS README
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
#%files -n lib%{name}-static
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
#%{_libdir}/libupower-glib.*a
|
2024-01-05 18:50:25 +01:00
|
|
|
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/gtk-doc/html/UPower
|
|
|
|
%{_datadir}/gtk-doc/html/UPower/*
|
|
|
|
|
|
|
|
%changelog
|
2024-04-11 10:23:59 +02:00
|
|
|
* Tue Apr 09 2024 Automatic Build System <autodist@openmamba.org> 1.90.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 08 2024 Automatic Build System <autodist@openmamba.org> 1.90.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:26 +01:00
|
|
|
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 1.90.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Thu Jul 06 2023 Automatic Build System <autodist@mambasoft.it> 1.90.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Mon Jul 25 2022 Automatic Build System <autodist@mambasoft.it> 1.90.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Thu Jul 14 2022 Automatic Build System <autodist@mambasoft.it> 0.99.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Thu Jun 09 2022 Automatic Build System <autodist@mambasoft.it> 0.99.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Sat May 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.18-1mamba
|
|
|
|
- update to 0.99.18
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Sun Aug 22 2021 Automatic Build System <autodist@mambasoft.it> 0.99.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Fri Jun 18 2021 Automatic Build System <autodist@mambasoft.it> 0.99.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Fri Oct 04 2019 Automatic Build System <autodist@mambasoft.it> 0.99.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Sun Mar 24 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.10-1mamba
|
|
|
|
- update to 0.99.10
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Tue Dec 19 2017 Automatic Build System <autodist@mambasoft.it> 0.99.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Sat Sep 23 2017 Automatic Build System <autodist@mambasoft.it> 0.99.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Fri Feb 19 2016 Automatic Build System <autodist@mambasoft.it> 0.99.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Mon Jul 13 2015 Automatic Build System <autodist@mambasoft.it> 0.99.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Fri Apr 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.2-2mamba
|
|
|
|
- add libupower subpackage
|
|
|
|
|
|
|
|
* Sun Apr 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.2-1mamba
|
|
|
|
- update to 0.99.2
|
2024-01-05 18:50:25 +01:00
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Sat Sep 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.0-2mamba
|
|
|
|
- rebuilt with libplist 1.11
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Mon Apr 21 2014 Automatic Build System <autodist@mambasoft.it> 0.99.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:50:25 +01:00
|
|
|
* Mon Oct 28 2013 Automatic Build System <autodist@mambasoft.it> 0.9.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 27 2013 Automatic Build System <autodist@mambasoft.it> 0.9.21-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 19 2013 Automatic Build System <autodist@mambasoft.it> 0.9.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jan 07 2013 Automatic Build System <autodist@mambasoft.it> 0.9.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 0.9.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon May 14 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.16-1mamba
|
|
|
|
- update to 0.9.16
|
|
|
|
|
|
|
|
* Tue Feb 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.15-2mamba
|
|
|
|
- added a patch to use percentage (capacity) when energy_full or charge_full is not provided by driver
|
|
|
|
|
|
|
|
* Tue Feb 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.15-1mamba
|
|
|
|
- update to 0.9.15
|
|
|
|
|
|
|
|
* Fri Oct 07 2011 Automatic Build System <autodist@mambasoft.it> 0.9.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Automatic Build System <autodist@mambasoft.it> 0.9.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jul 26 2011 Automatic Build System <autodist@mambasoft.it> 0.9.12-1mamba
|
|
|
|
- update to 0.9.12
|
|
|
|
|
|
|
|
* Sat Jun 25 2011 Automatic Build System <autodist@mambasoft.it> 0.9.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 28 2011 Automatic Build System <autodist@mambasoft.it> 0.9.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 01 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-2mamba
|
|
|
|
- rebuilt in openmamba devel
|
|
|
|
|
|
|
|
* Wed Sep 22 2010 gil <puntogil@libero.it> 0.9.5-1mamba
|
|
|
|
- package created by autospec
|