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