123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- %bcond_with systemd
- Summary: Power Management Service
- Summary(ja): 電源管理サービス
- Name: upower
- Version: 0.99.11
- Release: 1%{?_dist_release}%{?with_systemd:.systemd}
- Vendor: Project Vine
- Distribution: Vine Linux
- License: GPLv2+
- URL: https://upower.freedesktop.org/
- Source0: https://upower.freedesktop.org/releases/upower-%{version}.tar.xz
- BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
- BuildRequires: sqlite3-devel
- BuildRequires: libtool
- BuildRequires: intltool
- BuildRequires: gettext
- BuildRequires: libusb1-devel
- BuildRequires: glib2-devel >= 2.6.0
- BuildRequires: dbus-devel >= 1.2
- BuildRequires: dbus-glib-devel >= 0.82
- BuildRequires: polkit-devel >= 0.92
- BuildRequires: gobject-introspection-devel
- BuildRequires: libimobiledevice-devel
- BuildRequires: libgudev-devel
- BuildRequires: gtk-doc
- BuildRequires: vim-tiny
- BuildRequires: autoconf
- Requires: polkit >= 0.92
- Requires: pm-utils >= 1.4.1
- Requires: gobject-introspection
- %if %{with systemd}
- BuildRequires: systemd-devel
- %{?systemd_requires}
- %else
- BuildRequires: eudev-libgudev1-devel
- Requires: eudev
- %endif
- # Old project name
- Obsoletes: libupower09 < 0.9.24
- Obsoletes: DeviceKit-power < 1:0.9.0-2
- Provides: DeviceKit-power
- %description
- UPower (formerly DeviceKit-power) provides a daemon, API and command
- line tools for managing power devices attached to the system.
- %package devel
- Summary: Headers and libraries for UPower
- Summary(ja): %{name} の開発ファイル
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: gtk-doc
- Obsoletes: libupower09-devel < 0.9.24
- Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
- Provides: DeviceKit-power-devel
- %description devel
- Headers and libraries for UPower.
- %prep
- %setup -q
- %build
- %configure \
- --enable-gtk-doc \
- --disable-static \
- --enable-introspection=yes \
- --with-udevrulesdir=/lib/udev/rules.d
- make V=1 %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT
- rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
- %find_lang %{name}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- /sbin/ldconfig
- %if %{with systemd}
- %systemd_post upower.service
- %endif
- %if %{with systemd}
- %preun
- %systemd_preun upower.service
- %endif
- %postun
- /sbin/ldconfig
- %if %{with systemd}
- %systemd_postun_with_restart upower.service
- %endif
- %files -f %{name}.lang
- %defattr(-,root,root,-)
- %license COPYING
- %doc NEWS AUTHORS HACKING README*
- %{_libdir}/libupower-glib.so.*
- %{_libdir}/girepository-1.0/*.typelib
- %{_sysconfdir}/UPower/UPower.conf
- /lib/udev/rules.d/*.rules
- %dir %{_localstatedir}/lib/upower
- %{_bindir}/*
- %{_libexecdir}/*
- %{_mandir}/man1/*
- %{_mandir}/man7/*
- %{_mandir}/man8/*
- %{_datadir}/dbus-1/system.d/*.conf
- %{_datadir}/dbus-1/system-services/*.service
- %if %{with systemd}
- %{_unitdir}/*.service
- %endif
- %files devel
- %defattr(-,root,root,-)
- %{_datadir}/dbus-1/interfaces/*.xml
- %dir %{_datadir}/gtk-doc/html/UPower
- %{_datadir}/gtk-doc/html/UPower/*
- %{_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
- %changelog
- * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.11-1
- - new upstream release.
- - added systemd support (disabled as default).
- * Fri Dec 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.7-1
- - new upstream release.
- * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.4-1
- - new upstream release
- * Sat May 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.3-1
- - new upstream release
- * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.99.2-2
- - rebuilt with libimovbiledevice 1.2.0
- * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.2-1
- - new upstream release
- * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.1-1
- - new upstream release
- - remove Patch0 (upower-0.99.0-git20140225.patch)
- - add Obsoletes: libupower09
- * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.99.0-2
- - rebuild with libimobiledevice-1.1.6, eudev
- * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.0-1
- - new upstream release
- - add Patch0 (upower-0.99.0-git20140225.patch)
- * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1
- - new upstream release
- * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1
- - new upstream release
- * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.20-1
- - new upstream release
- * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.19-1
- - new upstream release
- * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.18-1
- - new upstream release
- * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1
- - new upstream release
- * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1
- - new upstream release
- * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1
- - new upstream release
- * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
- - new upstream release
- * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1
- - new upstream release
- - BR: vim-tiny instead of vim
- * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
- - new upstream release
- - delete Patch0
- - add BuildRequires: libimobiledevice-devel, vim, autoconf
- - change BuildRequires: libusb1-devel instead of libusb-devel
- - remove BuildRequires: gir-repository-devel
- - fix %files
- * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
- - rebuilt with rpm-4.8.1 for pkg-config
- * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
- - new upstream release
- - update URL:
- * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1
- - Initial build for Vine Linux
- - add BuildRequires: gtk-doc
- * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
- - It seems people don't like pain.
- * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
- - Obsolete DeviceKit-power.
- * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
- - Actually enable the introspection support.
- * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
- - Initial release of 0.9.1
|