summaryrefslogtreecommitdiffstats
path: root/redhat/extras
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/extras')
-rw-r--r--redhat/extras/ksensors/ksensors-0.7.3-18-lmsensors_2x_fix.patch14
-rw-r--r--redhat/extras/ksensors/ksensors_0.7.3-18.diff.gzbin0 -> 16897 bytes
-rw-r--r--redhat/extras/ksensors/ksensors_0.7.3_naming.diff61
-rw-r--r--redhat/extras/ksensors/trinity-ksensors.spec45
-rw-r--r--redhat/extras/trinity-live/fedora-live-tde-base.ks18
-rw-r--r--redhat/extras/trinity-live/fedora-livecd-tde.ks21
-rw-r--r--redhat/extras/trinity-live/trinity-live.spec10
7 files changed, 122 insertions, 47 deletions
diff --git a/redhat/extras/ksensors/ksensors-0.7.3-18-lmsensors_2x_fix.patch b/redhat/extras/ksensors/ksensors-0.7.3-18-lmsensors_2x_fix.patch
new file mode 100644
index 000000000..99a681ffc
--- /dev/null
+++ b/redhat/extras/ksensors/ksensors-0.7.3-18-lmsensors_2x_fix.patch
@@ -0,0 +1,14 @@
+--- ksensors-0.7.3/src/lmsensor.cpp.ORI 2011-12-22 06:57:39.285341486 -0500
++++ ksensors-0.7.3/src/lmsensor.cpp 2011-12-22 06:58:33.596092430 -0500
+@@ -43,7 +43,11 @@
+ char *label = NULL;
+ QString uniqueSensorName;
+
++#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
++ uniqueSensorName.sprintf("%s_%d_%d.%s", chip_name->prefix, chip_name->bus, chip_name->addr, main_name);
++#else
+ uniqueSensorName.sprintf("%s_%d_%d.%s", chip_name->prefix, chip_name->bus.nr, chip_name->addr, main_name);
++#endif
+ setName(uniqueSensorName.latin1());
+
+ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
diff --git a/redhat/extras/ksensors/ksensors_0.7.3-18.diff.gz b/redhat/extras/ksensors/ksensors_0.7.3-18.diff.gz
new file mode 100644
index 000000000..1ea0e2152
--- /dev/null
+++ b/redhat/extras/ksensors/ksensors_0.7.3-18.diff.gz
Binary files differ
diff --git a/redhat/extras/ksensors/ksensors_0.7.3_naming.diff b/redhat/extras/ksensors/ksensors_0.7.3_naming.diff
new file mode 100644
index 000000000..7e503d1b8
--- /dev/null
+++ b/redhat/extras/ksensors/ksensors_0.7.3_naming.diff
@@ -0,0 +1,61 @@
+--- ksensors-0.7.3.orig/src/lmsensor.cpp 2008-11-16 20:38:33.000000000 +0100
++++ ksensors-0.7.3/src/lmsensor.cpp 2008-11-16 20:27:16.000000000 +0100
+@@ -40,9 +40,12 @@ bool LMSensor::init(const sensors_featur
+ const sensors_chip_name *chip_name= getChipName();
+ const char* main_name = (*data)->name;
+ feature= (*data)->number;
+- char *label;
+- QString str;
++ char *label = NULL;
++ QString uniqueSensorName;
+
++ uniqueSensorName.sprintf("%s_%d_%d.%s", chip_name->prefix, chip_name->bus.nr, chip_name->addr, main_name);
++ setName(uniqueSensorName.latin1());
++
+ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
+ bool min_found=false;
+ bool max_found=false;
+@@ -98,12 +101,18 @@ bool LMSensor::init(const sensors_featur
+ min= -16;
+ }
+
+- str.sprintf("%s.%s", chip_name->prefix, main_name);
+- setName( str.latin1() );
+-
+ sensors_get_label(*chip_name,feature,&label);
+- setDescription(QString(label));
+-
++ if (label)
++ {
++ setDescription(QString(label));
++ delete label;
++ label = NULL;
++ }
++ else
++ {
++ setDescription(uniqueSensorName.latin1());
++ }
++
+ if(min_found)
+ min = valMin;
+
+@@ -189,14 +198,15 @@ bool LMSensor::init(const sensors_featur
+ return false;
+ }
+
+- str.sprintf("%s.%s", chip_name->prefix, main_name);
+- setName( str.latin1() );
+-
+ label = sensors_get_label(chip_name, feature_data);
+ if (label)
+- setDescription(QString(label));
++ {
++ setDescription(QString(label));
++ delete label;
++ label = NULL;
++ }
+ else
+- setDescription( str.latin1() );
++ setDescription( uniqueSensorName.latin1() );
+
+ #endif /* libsensors3 / libsensors4 code */
diff --git a/redhat/extras/ksensors/trinity-ksensors.spec b/redhat/extras/ksensors/trinity-ksensors.spec
index 7b0f5c20d..529d2623e 100644
--- a/redhat/extras/ksensors/trinity-ksensors.spec
+++ b/redhat/extras/ksensors/trinity-ksensors.spec
@@ -6,22 +6,29 @@
Name: trinity-ksensors
Version: 0.7.3
-Release: 19p1%{?dist}
+Release: 19p2%{?dist}
+
Summary: KDE frontend to lm_sensors
Group: Applications/System
License: GPLv2+
URL: http://ksensors.sourceforge.net/
+
Source0: http://downloads.sourceforge.net/ksensors/ksensors-%{version}.tar.gz
-Patch1: ksensors-desktop.patch
-Patch2: http://ftp.debian.org/debian/pool/main/k/ksensors/ksensors_0.7.3-15.diff.gz
-Patch3: ksensors-0.7.3-po.patch
-Patch4: ksensors-0.7.3-fix-min-max.patch
-Patch5: ksensors-0.7.3-lm_sensors-3.x.patch
+
+# Debian (upstream) patch
+Patch2: http://ftp.debian.org/debian/pool/main/k/ksensors/ksensors_0.7.3-18.diff.gz
+
+# Fix building on TDE
Patch6: ksensors-0.7.3-trinity.patch
+
+# Fix 'lmsensor.cpp' for older lm_sensors API (< 3.x)
+Patch7: ksensors-0.7.3-18-lmsensors_2x_fix.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: trinity-kdelibs-devel
BuildRequires: lm_sensors-devel gettext desktop-file-utils
Requires: hicolor-icon-theme
+
# Keep archs in sync with lm_sensors
ExcludeArch: s390 s390x
@@ -33,42 +40,39 @@ temperatures with KSensors.
%prep
%setup -q -n ksensors-%{version}
-%patch1 -p1 -z .desktop
%patch2 -p1
-%patch3 -p1 -z .po
-%patch4 -p1 -z .minmax
-%patch5 -p1 -z .lm_sensors3x
%patch6 -p1
-sed -i -e 's|$(kde_datadir)/sounds|$(kde_sounddir)|' src/sounds/Makefile.*
+%patch7 -p1
+%__sed -i -e 's|$(kde_datadir)/sounds|$(kde_sounddir)|' src/sounds/Makefile.*
for f in ChangeLog LIESMICH LISEZMOI ; do
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
done
%build
-unset QTDIR ; . %{_sysconfdir}/profile.d/qt.sh
+unset QTDIR ; . /etc/profile.d/qt.sh
%configure \
--disable-dependency-tracking \
--disable-rpath \
--with-extra-includes=%{_includedir}/tqt
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install --vendor fedora --mode 644 --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/ksensors.desktop
-install -dm 755 $RPM_BUILD_ROOT%{_datadir}/autostart
-ln -s ../applications/fedora-ksensors.desktop \
+%__install -dm 755 $RPM_BUILD_ROOT%{_datadir}/autostart
+%__ln_s ../applications/fedora-ksensors.desktop \
$RPM_BUILD_ROOT%{_datadir}/autostart
-rm -rf $RPM_BUILD_ROOT%{_docdir}/HTML
+%__rm -rf $RPM_BUILD_ROOT%{_docdir}/HTML
%find_lang ksensors
%clean
-rm -rf $RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
%post
@@ -100,6 +104,9 @@ done
%changelog
+* Thu Dec 22 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-19p2
+- Update Debian patch to -18 release
+
* Mon Nov 07 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-19p1
- Rebuilt for RHEL 6, RHEL 5, Fedora 15 with TDE 3.5.13
diff --git a/redhat/extras/trinity-live/fedora-live-tde-base.ks b/redhat/extras/trinity-live/fedora-live-tde-base.ks
index ed912dfff..827a0b2bf 100644
--- a/redhat/extras/trinity-live/fedora-live-tde-base.ks
+++ b/redhat/extras/trinity-live/fedora-live-tde-base.ks
@@ -51,7 +51,7 @@ if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /usr/share/apps/kdm/faces/fedora.face.icon
fi
-# make liveuser use KDE
+# make liveuser use TDE
echo "/opt/trinity/bin/startkde" > /home/liveuser/.xsession
chmod a+x /home/liveuser/.xsession
chown liveuser:liveuser /home/liveuser/.xsession
@@ -95,19 +95,9 @@ sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink
EOF
+### TDE LIVECD specific features ###
+
# Sets 'nm-applet' to run automatically
-mkdir -p /home/liveuser/.trinity/Autostart
-cat <<EOF >/home/liveuser/.trinity/Autostart/nm-applet
-#!/bin/sh
-
-# Waits until kicker is started, so that
-# nm-applet can dock correctly.
-while ! pidof kicker; do
- sleep 1
-done
-sleep 3
-/usr/bin/nm-applet
-EOF
-chmod +x /home/liveuser/.trinity/Autostart/nm-applet
+ln -sf /usr/share/applications/nm-applet.desktop /opt/trinity/share/autostart/nm-applet.desktop
%end
diff --git a/redhat/extras/trinity-live/fedora-livecd-tde.ks b/redhat/extras/trinity-live/fedora-livecd-tde.ks
index 88ab2f91a..efc379f6a 100644
--- a/redhat/extras/trinity-live/fedora-livecd-tde.ks
+++ b/redhat/extras/trinity-live/fedora-livecd-tde.ks
@@ -10,10 +10,6 @@
%include fedora-live-tde-base.ks
%include fedora-live-minimization.ks
-# 3rd party for VLC
-#repo --name=atrpms --baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
-
-
%packages
# Additional packages that are not default in trinity-desktop but useful
trinity-desktop-extras
@@ -21,33 +17,36 @@ trinity-live-openbox
# Some TDE applications
trinity-amarok
-#trinity-digikam
+trinity-digikam
trinity-dolphin
+trinity-gtk-qt-engine
trinity-gwenview
trinity-k3b
trinity-kaffeine
+trinity-kasablanca
trinity-kbookreader
+trinity-kde-style-lipstik
+trinity-kgtk-qt3
+trinity-kio-umountwrapper
+trinity-kwin-style-crystal
#trinity-knetworkmanager
trinity-konversation
+trinity-kpowersave
trinity-ksensors
trinity-kstreamripper
+trinity-smb4k
trinity-yakuake
# Some TDE translations
trinity-kde-i18n-French
#trinity-kde-i18n-German
-trinity-kde-i18n-Spanish
+#trinity-kde-i18n-Spanish
trinity-kde-i18n-Chinese-Big5
-# 3rd party stuff
-#vlc
# Fedora stuff
fuse
liveusb-creator
-#wlassistant
-#wicd
-#wicd-gtk
### more desktop stuff
diff --git a/redhat/extras/trinity-live/trinity-live.spec b/redhat/extras/trinity-live/trinity-live.spec
index 95733ae80..89f09e7f9 100644
--- a/redhat/extras/trinity-live/trinity-live.spec
+++ b/redhat/extras/trinity-live/trinity-live.spec
@@ -2,7 +2,7 @@
%if "%{?version}" == ""
%define version 3.5.13
%endif
-%define release 1
+%define release 2
%define _datadir %{_usr}/share
@@ -67,8 +67,7 @@ EOF
%__install -m 644 %{SOURCE1} %{?buildroot}%{_datadir}/spin-kickstarts
# Openbox
-%__mkdir_p "%{?buildroot}/usr/local/bin"
-%__install -m 755 openbox "%{?buildroot}/usr/local/bin"
+%__install -D -m 755 openbox "%{?buildroot}/usr/local/bin/openbox"
%files
@@ -80,5 +79,10 @@ EOF
%changelog
+* Mon Dec 02 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-2
+- More TDE 3.5.13 specific visual settings
+- Updates all packages to fix TDE bugs
+- Add more applications
+
* Wed Nov 09 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1
- Initial build