[12445] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
[805] | 3 | Summary: Power Management Service |
---|
| 4 | Summary(ja): 電源管理サービス |
---|
| 5 | Name: upower |
---|
[12445] | 6 | Version: 0.99.11 |
---|
| 7 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
| 10 | |
---|
[805] | 11 | License: GPLv2+ |
---|
[12445] | 12 | URL: https://upower.freedesktop.org/ |
---|
| 13 | Source0: https://upower.freedesktop.org/releases/upower-%{version}.tar.xz |
---|
[805] | 14 | |
---|
| 15 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 16 | BuildRequires: sqlite3-devel |
---|
| 17 | BuildRequires: libtool |
---|
| 18 | BuildRequires: intltool |
---|
| 19 | BuildRequires: gettext |
---|
[2074] | 20 | BuildRequires: libusb1-devel |
---|
[805] | 21 | BuildRequires: glib2-devel >= 2.6.0 |
---|
| 22 | BuildRequires: dbus-devel >= 1.2 |
---|
| 23 | BuildRequires: dbus-glib-devel >= 0.82 |
---|
| 24 | BuildRequires: polkit-devel >= 0.92 |
---|
| 25 | BuildRequires: gobject-introspection-devel |
---|
[6011] | 26 | BuildRequires: libimobiledevice-devel |
---|
[12445] | 27 | BuildRequires: libgudev-devel |
---|
[805] | 28 | BuildRequires: gtk-doc |
---|
[3405] | 29 | BuildRequires: vim-tiny |
---|
[2074] | 30 | BuildRequires: autoconf |
---|
[805] | 31 | Requires: polkit >= 0.92 |
---|
[3405] | 32 | Requires: pm-utils >= 1.4.1 |
---|
[805] | 33 | Requires: gobject-introspection |
---|
| 34 | |
---|
[12445] | 35 | %if %{with systemd} |
---|
| 36 | BuildRequires: systemd-devel |
---|
| 37 | %{?systemd_requires} |
---|
| 38 | %else |
---|
| 39 | BuildRequires: eudev-libgudev1-devel |
---|
| 40 | Requires: eudev |
---|
| 41 | %endif |
---|
| 42 | |
---|
[805] | 43 | # Old project name |
---|
[8962] | 44 | Obsoletes: libupower09 < 0.9.24 |
---|
[805] | 45 | Obsoletes: DeviceKit-power < 1:0.9.0-2 |
---|
| 46 | Provides: DeviceKit-power |
---|
| 47 | |
---|
| 48 | %description |
---|
| 49 | UPower (formerly DeviceKit-power) provides a daemon, API and command |
---|
| 50 | line tools for managing power devices attached to the system. |
---|
| 51 | |
---|
| 52 | %package devel |
---|
| 53 | Summary: Headers and libraries for UPower |
---|
| 54 | Summary(ja): %{name} の開発ファイル |
---|
| 55 | Group: Development/Libraries |
---|
| 56 | Requires: %{name} = %{version}-%{release} |
---|
| 57 | Requires: gtk-doc |
---|
[8962] | 58 | Obsoletes: libupower09-devel < 0.9.24 |
---|
[805] | 59 | Obsoletes: DeviceKit-power-devel < 1:0.9.0-2 |
---|
| 60 | Provides: DeviceKit-power-devel |
---|
| 61 | |
---|
| 62 | %description devel |
---|
| 63 | Headers and libraries for UPower. |
---|
| 64 | |
---|
[12445] | 65 | |
---|
[805] | 66 | %prep |
---|
| 67 | %setup -q |
---|
| 68 | |
---|
[12445] | 69 | |
---|
[805] | 70 | %build |
---|
[6011] | 71 | %configure \ |
---|
| 72 | --enable-gtk-doc \ |
---|
| 73 | --disable-static \ |
---|
[10195] | 74 | --enable-introspection=yes \ |
---|
| 75 | --with-udevrulesdir=/lib/udev/rules.d |
---|
[6011] | 76 | make V=1 %{?_smp_mflags} |
---|
[805] | 77 | |
---|
[12445] | 78 | |
---|
[805] | 79 | %install |
---|
| 80 | rm -rf $RPM_BUILD_ROOT |
---|
| 81 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 82 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 83 | |
---|
[1001] | 84 | %find_lang %{name} |
---|
[805] | 85 | |
---|
[12445] | 86 | |
---|
[805] | 87 | %clean |
---|
| 88 | rm -rf $RPM_BUILD_ROOT |
---|
| 89 | |
---|
| 90 | |
---|
[12445] | 91 | %post |
---|
| 92 | /sbin/ldconfig |
---|
| 93 | %if %{with systemd} |
---|
| 94 | %systemd_post upower.service |
---|
| 95 | %endif |
---|
[805] | 96 | |
---|
[12445] | 97 | %if %{with systemd} |
---|
| 98 | %preun |
---|
| 99 | %systemd_preun upower.service |
---|
| 100 | %endif |
---|
| 101 | |
---|
| 102 | %postun |
---|
| 103 | /sbin/ldconfig |
---|
| 104 | %if %{with systemd} |
---|
| 105 | %systemd_postun_with_restart upower.service |
---|
| 106 | %endif |
---|
| 107 | |
---|
| 108 | |
---|
[1001] | 109 | %files -f %{name}.lang |
---|
[805] | 110 | %defattr(-,root,root,-) |
---|
[12445] | 111 | %license COPYING |
---|
| 112 | %doc NEWS AUTHORS HACKING README* |
---|
[805] | 113 | %{_libdir}/libupower-glib.so.* |
---|
[2074] | 114 | %{_libdir}/girepository-1.0/*.typelib |
---|
[1001] | 115 | %{_sysconfdir}/UPower/UPower.conf |
---|
[805] | 116 | /lib/udev/rules.d/*.rules |
---|
| 117 | %dir %{_localstatedir}/lib/upower |
---|
| 118 | %{_bindir}/* |
---|
| 119 | %{_libexecdir}/* |
---|
| 120 | %{_mandir}/man1/* |
---|
| 121 | %{_mandir}/man7/* |
---|
| 122 | %{_mandir}/man8/* |
---|
[12445] | 123 | %{_datadir}/dbus-1/system.d/*.conf |
---|
[805] | 124 | %{_datadir}/dbus-1/system-services/*.service |
---|
[12445] | 125 | %if %{with systemd} |
---|
| 126 | %{_unitdir}/*.service |
---|
| 127 | %endif |
---|
[805] | 128 | |
---|
| 129 | %files devel |
---|
| 130 | %defattr(-,root,root,-) |
---|
| 131 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
| 132 | %dir %{_datadir}/gtk-doc/html/UPower |
---|
| 133 | %{_datadir}/gtk-doc/html/UPower/* |
---|
| 134 | %{_libdir}/libupower-glib.so |
---|
| 135 | %{_libdir}/pkgconfig/*.pc |
---|
| 136 | %{_datadir}/gir-1.0/*.gir |
---|
| 137 | %dir %{_includedir}/libupower-glib |
---|
| 138 | %{_includedir}/libupower-glib/up-*.h |
---|
| 139 | %{_includedir}/libupower-glib/upower.h |
---|
| 140 | |
---|
[12445] | 141 | |
---|
[805] | 142 | %changelog |
---|
[12445] | 143 | * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.11-1 |
---|
| 144 | - new upstream release. |
---|
| 145 | - added systemd support (disabled as default). |
---|
| 146 | |
---|
[12005] | 147 | * Fri Dec 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.7-1 |
---|
| 148 | - new upstream release. |
---|
| 149 | |
---|
[10195] | 150 | * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.4-1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
[9583] | 153 | * Sat May 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.3-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[9572] | 156 | * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.99.2-2 |
---|
| 157 | - rebuilt with libimovbiledevice 1.2.0 |
---|
| 158 | |
---|
[9192] | 159 | * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.2-1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
[8962] | 162 | * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.1-1 |
---|
| 163 | - new upstream release |
---|
| 164 | - remove Patch0 (upower-0.99.0-git20140225.patch) |
---|
| 165 | - add Obsoletes: libupower09 |
---|
| 166 | |
---|
[8767] | 167 | * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.99.0-2 |
---|
| 168 | - rebuild with libimobiledevice-1.1.6, eudev |
---|
| 169 | |
---|
[8353] | 170 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.0-1 |
---|
| 171 | - new upstream release |
---|
| 172 | - add Patch0 (upower-0.99.0-git20140225.patch) |
---|
| 173 | |
---|
[8119] | 174 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[7786] | 177 | * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1 |
---|
| 178 | - new upstream release |
---|
| 179 | |
---|
[7582] | 180 | * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.20-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[7294] | 183 | * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.19-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[6890] | 186 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.18-1 |
---|
| 187 | - new upstream release |
---|
| 188 | |
---|
[6011] | 189 | * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.15-1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
[5038] | 192 | * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1 |
---|
| 193 | - new upstream release |
---|
| 194 | |
---|
[4850] | 195 | * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.13-1 |
---|
| 196 | - new upstream release |
---|
| 197 | |
---|
[4616] | 198 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1 |
---|
| 199 | - new upstream release |
---|
| 200 | |
---|
[3405] | 201 | * Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.9-1 |
---|
| 202 | - new upstream release |
---|
| 203 | - BR: vim-tiny instead of vim |
---|
| 204 | |
---|
[2074] | 205 | * Tue Oct 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1 |
---|
| 206 | - new upstream release |
---|
| 207 | - delete Patch0 |
---|
| 208 | - add BuildRequires: libimobiledevice-devel, vim, autoconf |
---|
| 209 | - change BuildRequires: libusb1-devel instead of libusb-devel |
---|
| 210 | - remove BuildRequires: gir-repository-devel |
---|
| 211 | - fix %files |
---|
| 212 | |
---|
[1957] | 213 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2 |
---|
| 214 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 215 | |
---|
[1001] | 216 | * Thu May 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1 |
---|
| 217 | - new upstream release |
---|
| 218 | - update URL: |
---|
| 219 | |
---|
[805] | 220 | * Sat Apr 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.2-1 |
---|
| 221 | - Initial build for Vine Linux |
---|
| 222 | - add BuildRequires: gtk-doc |
---|
| 223 | |
---|
| 224 | * Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4 |
---|
| 225 | - It seems people don't like pain. |
---|
| 226 | |
---|
| 227 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3 |
---|
| 228 | - Obsolete DeviceKit-power. |
---|
| 229 | |
---|
| 230 | * Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2 |
---|
| 231 | - Actually enable the introspection support. |
---|
| 232 | |
---|
| 233 | * Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1 |
---|
| 234 | - Initial release of 0.9.1 |
---|
| 235 | |
---|