add libupower subpackage [release 0.99.2-2mamba;Fri Apr 24 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 18:50:25 +01:00
parent e96554db7f
commit fc77903f1b

View File

@ -1,6 +1,6 @@
Name: upower Name: upower
Version: 0.99.0 Version: 0.99.2
Release: 3mamba Release: 2mamba
Summary: Power Management Service Summary: Power Management Service
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -17,7 +17,6 @@ Patch2: %{name}-0.9.15-use_percentage_when_noly_energy_full_is_unavailabl
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: libdbus-devel BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel BuildRequires: libdbus-glib-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
@ -25,43 +24,49 @@ BuildRequires: libglib-devel
BuildRequires: libimobiledevice-devel BuildRequires: libimobiledevice-devel
BuildRequires: libplist-devel BuildRequires: libplist-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: libudev-devel
BuildRequires: libusb-devel BuildRequires: libusb-devel
BuildRequires: libz-devel BuildRequires: libz-devel
BuildRequires: pkg-config
BuildRequires: polkit-devel
BuildRequires: udev-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: gobject-introspection-devel BuildRequires: gobject-introspection-devel
BuildRequires: libimobiledevice-devel >= 1.1.4 BuildRequires: libimobiledevice-devel >= 1.1.4
BuildRequires: intltool BuildRequires: intltool
BuildRequires: libelf-devel BuildRequires: libelf-devel
BuildRequires: libplist-devel >= 1.12 BuildRequires: libplist-devel >= 1.11
Requires: libimobiledevice >= 1.1.4 Requires: libimobiledevice >= 1.1.4
Obsoletes: DeviceKit-power Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: DeviceKit-power
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %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
Summary: Devel package for %{name} Summary: Devel package for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: DeviceKit-power-devel Obsoletes: upower-devel
Provides: DeviceKit-power-devel Provides: upower-devel
%description devel %description -n lib%{name}-devel
UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system. UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system.
This package contains libraries and header files need for development. This package contains libraries and header files need for development.
%package static %package -n lib%{name}-static
Summary: Static package for %{name} Summary: Static package for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
Provides: %{name}-static
Obsoletes: %{name}-static
%description static %description -n lib%{name}-static
UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system. UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system.
This package contains static libraries need for development. This package contains static libraries need for development.
@ -78,7 +83,6 @@ line tools for managing power devices attached to the system.
This package contains %{name} API documentation. This package contains %{name} API documentation.
%prep %prep
%setup -q %setup -q
#%patch0 -p1 #%patch0 -p1
#%patch1 -p1 #%patch1 -p1
@ -100,8 +104,8 @@ This package contains %{name} API documentation.
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig %post -n lib%{name} -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
@ -110,8 +114,6 @@ This package contains %{name} API documentation.
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.UPower.conf %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UPower.conf
%{_bindir}/upower %{_bindir}/upower
%dir %{_localstatedir}/lib/upower %dir %{_localstatedir}/lib/upower
%{_libexecdir}/upowerd
%{_libdir}/libupower-glib.so.*
#%{_libdir}/libdevkit-power-gobject.so.* #%{_libdir}/libdevkit-power-gobject.so.*
%{_libdir}/girepository-*/UPowerGlib-*.typelib %{_libdir}/girepository-*/UPowerGlib-*.typelib
#/lib/udev/rules.d/95-upower-battery-recall-*.rules #/lib/udev/rules.d/95-upower-battery-recall-*.rules
@ -123,12 +125,17 @@ This package contains %{name} API documentation.
%{_datadir}/dbus-1/interfaces/*.xml %{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/dbus-1/system-services/*.service %{_datadir}/dbus-1/system-services/*.service
#%{_datadir}/polkit-1/actions/*.policy #%{_datadir}/polkit-1/actions/*.policy
%{_mandir}/man1/upower.1.gz %{_mandir}/man1/upower.1*
%{_mandir}/man7/UPower.7.gz %{_mandir}/man7/UPower.7*
%{_mandir}/man8/upowerd.8.gz %{_mandir}/man8/upowerd.8*
%files -n lib%{name}
%defattr(-,root,root)
%{_libexecdir}/upowerd
%{_libdir}/libupower-glib.so.*
%doc AUTHORS COPYING %doc AUTHORS COPYING
%files devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/libupower-glib %dir %{_includedir}/libupower-glib
%{_includedir}/libupower-glib/*.h %{_includedir}/libupower-glib/*.h
@ -137,7 +144,7 @@ This package contains %{name} API documentation.
%{_datadir}/gir-*/UPowerGlib-*.gir %{_datadir}/gir-*/UPowerGlib-*.gir
%doc HACKING NEWS README %doc HACKING NEWS README
%files static %files -n lib%{name}-static
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libupower-glib.*a %{_libdir}/libupower-glib.*a
@ -147,8 +154,11 @@ This package contains %{name} API documentation.
%{_datadir}/gtk-doc/html/UPower/* %{_datadir}/gtk-doc/html/UPower/*
%changelog %changelog
* Mon Apr 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.0-3mamba * Fri Apr 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.2-2mamba
- rebuilt with libplist 1.12 - add libupower subpackage
* Sun Apr 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.2-1mamba
- update to 0.99.2
* Sat Sep 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.0-2mamba * Sat Sep 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.0-2mamba
- rebuilt with libplist 1.11 - rebuilt with libplist 1.11