summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
Diffstat (limited to 'redhat')
-rw-r--r--redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch18
-rw-r--r--redhat/tdelibs/tdelibs-14.0.0-ftbfs.patch44
-rw-r--r--redhat/tdelibs/tdelibs-14.0.0.spec26
3 files changed, 10 insertions, 78 deletions
diff --git a/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch b/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
deleted file mode 100644
index 2b09620bb..000000000
--- a/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp.batterycharge 2013-07-07 11:55:57.000000000 +0200
-+++ trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp 2013-07-08 20:21:00.196653825 +0200
-@@ -4704,6 +4704,15 @@
- if (nodename == "alarm") {
- bdevice->internalSetAlarmEnergy(line.toDouble()/1000000.0);
- }
-+ if (nodename == "charge_full") {
-+ bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
-+ }
-+ if (nodename == "charge_full_design") {
-+ bdevice->internalSetMaximumDesignEnergy(line.toDouble()/1000000.0);
-+ }
-+ if (nodename == "charge_now") {
-+ bdevice->internalSetEnergy(line.toDouble()/1000000.0);
-+ }
- if (nodename == "energy_full") {
- bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
- }
diff --git a/redhat/tdelibs/tdelibs-14.0.0-ftbfs.patch b/redhat/tdelibs/tdelibs-14.0.0-ftbfs.patch
deleted file mode 100644
index e53d4cfa0..000000000
--- a/redhat/tdelibs/tdelibs-14.0.0-ftbfs.patch
+++ /dev/null
@@ -1,44 +0,0 @@
---- trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/CMakeLists.txt.ftbfs 2013-07-16 15:59:42.000000000 +0200
-+++ trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/CMakeLists.txt 2013-07-17 14:39:37.553649801 +0200
-@@ -83,6 +83,7 @@
- ${TQT_LIBRARY_DIRS}
- ${LIBIDN_LIBRARY_DIRS}
- ${GAMIN_LIBDIR}
-+ ${LIBART_LIBRARY_DIRS}
- )
-
- ##### headers ###################################
---- trinity-tdelibs-14.0.0~pre599+bae79307/pics/CMakeLists.txt.ORI 2013-07-17 14:56:14.633297689 +0200
-+++ trinity-tdelibs-14.0.0~pre599+bae79307/pics/CMakeLists.txt 2013-07-17 14:56:25.145239757 +0200
-@@ -28,6 +28,7 @@
-
- link_directories(
- ${TQT_LIBRARY_DIRS}
-+ ${LIBART_LIBRARY_DIRS}
- )
-
-
---- trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/tdehardwaredevices.h.ORI 2013-07-17 14:47:03.918290078 +0200
-+++ trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/tdehardwaredevices.h 2013-07-17 14:47:22.080194401 +0200
-@@ -27,7 +27,9 @@
- #include "tdelibs_export.h"
-
- // udev includes
-+extern "C" {
- #include <libudev.h>
-+}
- #include <stdio.h>
- #include <stdlib.h>
- #include <locale.h>
---- trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/tdehardwaredevices.cpp.ORI 2013-07-17 14:47:29.718154173 +0200
-+++ trinity-tdelibs-14.0.0~pre599+bae79307/tdecore/tdehardwaredevices.cpp 2013-07-17 14:47:47.204062091 +0200
-@@ -33,7 +33,9 @@
- #include <tdeapplication.h>
- #include <dcopclient.h>
-
-+extern "C" {
- #include <libudev.h>
-+}
-
- #include <fcntl.h>
- #include <poll.h>
diff --git a/redhat/tdelibs/tdelibs-14.0.0.spec b/redhat/tdelibs/tdelibs-14.0.0.spec
index 776aa744b..3a0d2891c 100644
--- a/redhat/tdelibs/tdelibs-14.0.0.spec
+++ b/redhat/tdelibs/tdelibs-14.0.0.spec
@@ -35,12 +35,6 @@ Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
-# Fix FTBFS
-Patch0: tdelibs-14.0.0-ftbfs.patch
-# Fix categories in T-menu
-Patch1: tdelibs-14.0.0-fix_xdg_menu.patch
-# Fix battery charge detection
-Patch2: tdelibs-14.0.0-fix_battery_charge.patch
# Enable Devkit Power support (older than upower)
Patch3: tdelibs-14.0.0-devkitpower_support.patch
@@ -257,7 +251,7 @@ BuildRequires: NetworkManager-glib-devel
%endif
# Certificates support
-%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%if 0%{?rhel} || 0%{?fedora}
%define cacert %{_sysconfdir}/ssl/certs/ca-certificates.crt
Requires: ca-certificates
%endif
@@ -369,13 +363,12 @@ kimgio (image manipulation).
%{tde_tdedocdir}/HTML/en/common/*
%{tde_tdedocdir}/HTML/en/tdespell/
-%{_sysconfdir}/dbus-1/system.d/org.trinitydesktop.hardwarecontrol.conf
%{_sysconfdir}/xdg/menus/tde-applications.menu
%{_sysconfdir}/xdg/menus/tde-applications.menu-no-kde
%{_sysconfdir}/ld.so.conf.d/trinity.conf
+%{_sysconfdir}/dbus-1/system.d/org.trinitydesktop.hardwarecontrol.conf
%{_datadir}/dbus-1/system-services/org.trinitydesktop.hardwarecontrol.service
-
%pre
# TDE Bug #1074
if [ -d "%{tde_datadir}/locale/all_languages" ]; then
@@ -414,10 +407,10 @@ applications for TDE.
%{tde_libdir}/*.la
%{tde_libdir}/*.so
%{tde_libdir}/*.a
-%{tde_libdir}/pkgconfig/tdelibs.pc
%exclude %{tde_libdir}/libtdeinit_*.la
%exclude %{tde_libdir}/libtdeinit_*.so
%{tde_datadir}/cmake/tdelibs.cmake
+%{tde_libdir}/pkgconfig/tdelibs.pc
%post devel
/sbin/ldconfig || :
@@ -435,9 +428,6 @@ applications for TDE.
%prep
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
-%patch0 -p1 -b .ftbfs
-%patch1 -p1 -b .xdg
-%patch2 -p1 -b .batterycharge
%patch3 -p1 -b .devkitpower
%patch101 -p1 -b .xdg_path
@@ -471,6 +461,7 @@ cd build
-DCMAKE_CXX_FLAGS="-DNDEBUG" \
-DCMAKE_SKIP_RPATH=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DWITH_GCC_VISIBILITY=ON \
\
-DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
-DBIN_INSTALL_DIR="%{tde_bindir}" \
@@ -525,12 +516,15 @@ cat <<EOF >"%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf"
EOF
%endif
-# Appends TDE version to '.pc' file
-echo "Version: %{version}" >>"%{?buildroot}%{tde_libdir}/pkgconfig/tdelibs.pc"
-
# Use system-wide CA certificate
+%if "%{?cacert}" != ""
%__rm -f "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
%__ln_s "%{cacert}" "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
+%endif
+
+# Appends TDE version to '.pc' file
+echo "Version: %{version}" >>"%{?buildroot}%{tde_libdir}/pkgconfig/tdelibs.pc"
+
%clean
%__rm -rf "%{?buildroot}"