Author: rotom Date: Sat Aug 9 21:38:53 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - initial
---- Files affected: SPECS: guidance-power-manager.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/guidance-power-manager.spec diff -u /dev/null SPECS/guidance-power-manager.spec:1.1 --- /dev/null Sat Aug 9 23:38:53 2008 +++ SPECS/guidance-power-manager.spec Sat Aug 9 23:38:47 2008 @@ -0,0 +1,83 @@ +# $Revision$, $Date$ +Summary: KDE Guidance Power Manager +Summary(pl.UTF-8): KDE Guidance Power Manager +Name: guidance-power-manager +Version: 4.1.0 +Release: 0.1 +License: GPL v2+ +Group: X11/Libraries +Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/extragear/%{name}-%{version}.tar.bz2 +# Source0-md5: e8f9c98901eb263c55700a8cca47e22e +Patch0: guidance-power-manager-CMakeLists.patch +URL: http://www.simonzone.com/software/guidance/ +BuildRequires: python-PyKDE4 +BuildRequires: rpmbuild(macros) >= 1.164 +BuildRequires: xorg-lib-libXScrnSaver-devel +BuildRequires: xorg-proto-scrnsaverproto-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A power management applet to indicate battery levels and perform +hibernate or suspend using HAL. + +%description -l pl.UTF-8 +A power management applet to indicate battery levels and perform +hibernate or suspend using HAL. + +%prep +%setup -q +%patch0 -p0 + +cat <<'EOF' > guidance-power-manager +#!/bin/sh +exec python %{_datadir}/apps/guidance-power-manager/guidance-power-manager.pyc $@ +EOF + +%build +install -d build +cd build + +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -LCMS_DIR=%{_libdir} \ + ../ +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT \ + kde_htmldir=%{_kdedocdir} \ + kde_libs_htmldir=%{_kdedocdir} + +%py_comp $RPM_BUILD_ROOT%{py_sitedir} +%py_ocomp $RPM_BUILD_ROOT%{py_sitedir} +%py_comp $RPM_BUILD_ROOT%{_datadir}/apps/guidance-power-manager +%py_ocomp $RPM_BUILD_ROOT%{_datadir}/apps/guidance-power-manager +%py_postclean + +%find_lang %{name} --with-kde + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/guidance-power-manager +%{py_sitedir}/ixf86misc.so +%{py_sitedir}/xf86misc.py[co] +%dir %{_datadir}/apps/guidance-power-manager +%{_datadir}/apps/guidance-power-manager/guidance-power-manager.py[co] +%{_datadir}/apps/guidance-power-manager/guidance-power-manager.ui +%{_datadir}/apps/guidance-power-manager/powermanage.py[co] +%{_datadir}/autostart/guidance-power-manager.desktop + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org +$Log$ +Revision 1.1 2008/08/09 21:38:47 rotom +- initial + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
