X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=upower-pm-utils.spec;h=92564ed78054cd18c0a6f2a348ce7297af592b19;hb=HEAD;hp=6b519ea824c701c8ba4e788ebd2d0daa887ff674;hpb=867116c08d5557228ab9117bdac5e174e2e6fe0f;p=packages%2Fupower-pm-utils.git diff --git a/upower-pm-utils.spec b/upower-pm-utils.spec index 6b519ea..b218f9f 100644 --- a/upower-pm-utils.spec +++ b/upower-pm-utils.spec @@ -1,15 +1,19 @@ +# NOTE: this package is the last version of upower from 0.9.x series, compatible with pm-utils %define orig_name upower Summary: Power management service with pm-utils backend Summary(pl.UTF-8): Usługa zarządzania energią z wykorzystaniem pm-utils Name: %{orig_name}-pm-utils Version: 0.9.23 -Release: 1 +Release: 12 +Epoch: 1 License: GPL v2+ Group: Libraries Source0: http://upower.freedesktop.org/releases/%{orig_name}-%{version}.tar.xz # Source0-md5: 39cfd97bfaf7d30908f20cf937a57634 Patch0: %{orig_name}-battery_range.patch +Patch1: %{orig_name}-glib-deprecated.patch +Patch2: %{orig_name}-libplist.patch URL: http://upower.freedesktop.org/ BuildRequires: autoconf >= 2.65 BuildRequires: automake >= 1:1.11 @@ -22,7 +26,7 @@ BuildRequires: gobject-introspection-devel >= 0.10.0 BuildRequires: gtk-doc >= 1.11 BuildRequires: intltool >= 0.40.0 BuildRequires: libimobiledevice-devel >= 0.9.7 -BuildRequires: libplist-devel >= 0.12 +BuildRequires: libplist-devel >= 2.2.0 BuildRequires: libtool >= 2:2 BuildRequires: libusb-devel >= 1.0.0 BuildRequires: pkgconfig @@ -32,27 +36,28 @@ BuildRequires: tar >= 1:1.22 BuildRequires: udev-glib-devel >= 1:147 BuildRequires: xz Requires(post,preun,postun): systemd-units >= 38 +Requires: %{name}-libs = %{epoch}:%{version}-%{release} Requires: libimobiledevice >= 0.9.7 -Requires: libplist >= 0.12 +Requires: libplist >= 2.2.0 Requires: pm-utils Requires: polkit >= 0.97 Requires: systemd-units >= 38 Requires: udev-glib >= 1:147 -Provides: %{orig_name} = %{version}-%{release} +Provides: %{orig_name} = %{epoch}:%{version}-%{release} +Obsoletes: %{orig_name} Obsoletes: DeviceKit-power < 0.15 Obsoletes: UPower < 0.9.8-2 -Obsoletes: %{orig_name} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description upower provides a daemon, API and command line tools for managing -power devices attached to the system. -upower-pm-utils use pm-utils as backend. +power devices attached to the system. upower-pm-utils use pm-utils as +backend. %description -l pl.UTF-8 upower dostarcza demona, API i narzędzia linii poleceń do zarządzania -urządzeniami energii dołączonymi do systemu. -upower-pm-utils wykorzystuje do działania pm-utils. +urządzeniami energii dołączonymi do systemu. upower-pm-utils +wykorzystuje do działania pm-utils. %package libs Summary: UPower shared library @@ -61,15 +66,7 @@ Group: Libraries Requires: dbus-glib >= 0.76 Requires: dbus-libs >= 1.0.0 Requires: glib2 >= 1:2.22.0 -Provides: %{orig_name}-libs = %{version}-%{release} -Provides: %{orig_name}-libs = 0.99.0 -%ifarch %{x8664} -Provides: libupower-glib.so.3()(64bit) -%else -Provides: libupower-glib.so.3 -%endif -Obsoletes: %{orig_name}-libs -Conflicts: %{orig_name} < 0.9.18 +Provides: %{orig_name}-libs = %{epoch}:%{version}-%{release} %description libs UPower shared library. @@ -81,11 +78,11 @@ Biblioteka współdzielona UPower. Summary: Header files for UPower library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UPower Group: Development/Libraries -Requires: %{name}-libs = %{version}-%{release} +Requires: %{name}-libs = %{epoch}:%{version}-%{release} Requires: dbus-devel >= 1.0.0 Requires: dbus-glib-devel >= 0.76 Requires: glib2-devel >= 1:2.22.0 -Provides: %{orig_name}-devel = %{version}-%{release} +Provides: %{orig_name}-devel = %{epoch}:%{version}-%{release} Obsoletes: %{orig_name}-devel Obsoletes: DeviceKit-power-devel Obsoletes: UPower-devel @@ -100,8 +97,8 @@ Pliki nagłówkowe biblioteki UPower. Summary: Static UPower library Summary(pl.UTF-8): Statyczna biblioteka UPower Group: Development/Libraries -Requires: %{orig_name}-devel = %{version}-%{release} -Provides: %{orig_name}-static = %{version}-%{release} +Requires: %{orig_name}-devel = %{epoch}:%{version}-%{release} +Provides: %{orig_name}-static = %{epoch}:%{version}-%{release} Obsoletes: %{orig_name}-static %description static @@ -115,9 +112,10 @@ Summary: UPower API documentation Summary(pl.UTF-8): Dokumentacja API UPower Group: Documentation Requires: gtk-doc-common +Obsoletes: %{orig_name}-apidocs Obsoletes: DeviceKit-power-apidocs Obsoletes: UPower-apidocs -Obsoletes: %{orig_name}-apidocs +BuildArch: noarch %description apidocs UPower API documentation. @@ -128,6 +126,8 @@ Dokumentacja API UPower. %prep %setup -q -n %{orig_name}-%{version} %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build %{__gtkdocize} @@ -152,7 +152,8 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -ln -s libupower-glib.so.1 $RPM_BUILD_ROOT/%{_libdir}/libupower-glib.so.3 +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libupower-glib.la %find_lang upower @@ -175,7 +176,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc AUTHORS HACKING NEWS README %attr(755,root,root) %{_bindir}/upower -%attr(755,root,root) %{_libdir}/upowerd +%attr(755,root,root) %{_libexecdir}/upowerd %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf %dir %{_sysconfdir}/UPower %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf @@ -202,13 +203,11 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.1 -%attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.3 %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libupower-glib.so -%{_libdir}/libupower-glib.la %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml