From d7491fce7864ba058980188493d312c572864712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 2 Sep 2013 23:21:56 +0200 Subject: RPM Packaging: update R14 applications --- .../tdepowersave/tdepowersave-14.0.0.spec | 42 ++++++++++++++-------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'redhat/applications/tdepowersave') diff --git a/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec b/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec index 30bfe0567..2dd719162 100644 --- a/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec +++ b/redhat/applications/tdepowersave/tdepowersave-14.0.0.spec @@ -41,6 +41,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz +Patch1: trinity-cmake-translations.patch +Patch2: tdepowersave-cmake-add-translation-and-documentation.patch +Patch3: tdepowersave-14.0.0-test.patch + BuildRequires: trinity-tqtinterface-devel >= %{tde_version} BuildRequires: trinity-arts-devel >= 1:1.5.10 BuildRequires: trinity-tdelibs-devel >= %{tde_version} @@ -87,6 +91,9 @@ settings for: %prep %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} +%patch1 -p1 -b .lang +%patch2 -p1 -b .lang +#patch3 -p1 -b .test %build @@ -113,6 +120,8 @@ cd build -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \ -DLIB_INSTALL_DIR=%{tde_libdir} \ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ + \ + -DBUILD_ALL=ON \ .. %__make %{?_smp_mflags} @@ -123,6 +132,8 @@ export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -C build +%find_lang %{tde_pkg} + %clean %__rm -rf %{buildroot} @@ -134,6 +145,11 @@ update-desktop-database %{tde_appdir} > /dev/null touch --no-create %{tde_datadir}/icons/hicolor || : gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +# Disables automatic poweroff, make sure we match both "kpowersave" and "tdepowersave" +if [ $1 = 1 ] && [ -r /etc/acpi/actions/power.sh ]; then + %__cp -f "/etc/acpi/actions/power.sh" "/etc/acpi/actions/power.sh.tdepowersavebackup" + %__sed -i "/etc/acpi/actions/power.sh" -e "s|kpowersave|powersave|" +fi %postun update-desktop-database %{tde_appdir} > /dev/null @@ -141,8 +157,12 @@ update-desktop-database %{tde_appdir} > /dev/null touch --no-create %{tde_datadir}/icons/hicolor || : gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : +if [ $1 = 0 ] && [ -r "/etc/acpi/actions/power.sh.tdepowersavebackup" ]; then + %__mv -f "/etc/acpi/actions/power.sh.tdepowersavebackup" "/etc/acpi/actions/power.sh" +fi -%files + +%files -f %{tde_pkg}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO %{tde_bindir}/tdepowersave @@ -157,20 +177,14 @@ gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : %{tde_datadir}/autostart/tdepowersave-autostart.desktop %{tde_datadir}/config/tdepowersaverc +%lang(cs) %{tde_tdedocdir}/HTML/cs/tdepowersave/ +%lang(de) %{tde_tdedocdir}/HTML/de/tdepowersave/ +%lang(en) %{tde_tdedocdir}/HTML/en/tdepowersave/ +%lang(fi) %{tde_tdedocdir}/HTML/fi/tdepowersave/ +%lang(hu) %{tde_tdedocdir}/HTML/hu/tdepowersave/ +%lang(nb) %{tde_tdedocdir}/HTML/nb/tdepowersave/ + %changelog * Thu Jul 04 2013 Francois Andriot - 0.7.3-5 - Initial release for TDE 14.0.0 - -* Mon Jun 03 2013 Francois Andriot - 0.7.3-4 -- Initial release for TDE 3.5.13.2 - -* Wed Oct 03 2012 Francois Andriot - 0.7.3-3 -- Initial release for TDE 3.5.13.1 - -* Sat Nov 26 2011 Francois Andriot - 0.7.3-2 -- Add missing /sbin/ldconfig -- Add missing doc file - -* Sat Nov 19 2011 Francois Andriot - 0.7.3-1 -- Initial release for RHEL 5, RHEL 6, Fedora 15, Fedora 16 -- cgit v1.2.1