summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeedu
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-11-27 21:34:48 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2018-11-27 21:34:48 +0100
commita615d19df88eb2e989316b480519161945dbc7dc (patch)
tree369970b98042998b86c11024598155e037b76fec /redhat/main/tdeedu
parent76a93e0011ade1583a1ec672f33411dfd35454f3 (diff)
downloadtde-packaging-a615d19df88eb2e989316b480519161945dbc7dc.tar.gz
tde-packaging-a615d19df88eb2e989316b480519161945dbc7dc.zip
RPM: merge redhat directory with master branch
Diffstat (limited to 'redhat/main/tdeedu')
-rw-r--r--redhat/main/tdeedu/tdeedu-14.0.0.spec395
-rw-r--r--redhat/main/tdeedu/tdeedu-3.5.13.2.spec14
-rw-r--r--redhat/main/tdeedu/trinity-tdeedu-rpmlintrc2
3 files changed, 55 insertions, 356 deletions
diff --git a/redhat/main/tdeedu/tdeedu-14.0.0.spec b/redhat/main/tdeedu/tdeedu-14.0.0.spec
index e31a8b741..94434b8ed 100644
--- a/redhat/main/tdeedu/tdeedu-14.0.0.spec
+++ b/redhat/main/tdeedu/tdeedu-14.0.0.spec
@@ -1,5 +1,5 @@
#
-# spec file for package tdeedu (version R14.0.0)
+# spec file for package tdeedu (version R14)
#
# Copyright (c) 2014 Trinity Desktop Environment
#
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
-# Please submit bugfixes or comments via http:/www.trinitydesktop.org/
+# Please submit bugfixes or comments via http://www.trinitydesktop.org/
#
# BUILD WARNING:
@@ -21,10 +21,13 @@
# TDE variables
%define tde_epoch 2
+%if "%{?tde_version}" == ""
%define tde_version 14.0.0
+%endif
%define tde_pkg tdeedu
%define tde_prefix /opt/trinity
%define tde_bindir %{tde_prefix}/bin
+%define tde_confdir %{_sysconfdir}/trinity
%define tde_datadir %{tde_prefix}/share
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
@@ -35,17 +38,12 @@
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
-# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
-%if "%{?tde_prefix}" != "/usr"
-%define _variant .opt
-%endif
-
Name: trinity-%{tde_pkg}
Summary: Educational/Edutainment applications
Group: System/GUI/Other
Version: %{tde_version}
-Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
+Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
URL: http://www.trinitydesktop.org/
%if 0%{?suse_version}
@@ -61,6 +59,7 @@ Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
+Source1: %{name}-rpmlintrc
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
@@ -77,12 +76,12 @@ BuildRequires: update-desktop-files
BuildRequires: brp-check-trinity
%endif
+BuildRequires: gcc-c++
+BuildRequires: fdupes
+
# PYTHON support
BuildRequires: python-devel
BuildRequires: python
-BuildRequires: gcc-c++
-BuildRequires: desktop-file-utils
-BuildRequires: fdupes
# BOOST support
BuildRequires: boost-devel
@@ -94,6 +93,15 @@ BuildRequires: ocaml(compiler)
BuildRequires: ocaml
%endif
+# KIG python scripting support
+%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+%if 0%{?suse_version} == 1330 || 0%{?suse_version} >= 1500
+%define with_kig 0
+%else
+%define with_kig 1
+%endif
+%endif
+
Obsoletes: trinity-kdeedu < %{version}-%{release}
Provides: trinity-kdeedu = %{version}-%{release}
Obsoletes: trinity-kdeedu-libs < %{version}-%{release}
@@ -163,7 +171,7 @@ Group: System/GUI/Other
%description data
This package contains shared data necessary for running the
-educational applications provided with KDE (the K Desktop
+educational applications provided with TDE (the Trinity Desktop
Environment).
This package is part of Trinity, as a component of the TDE education module.
@@ -205,20 +213,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/blinken.svgz
%{tde_tdedocdir}/HTML/en/blinken/
-%post -n trinity-blinken
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-blinken
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kalzium
@@ -255,20 +249,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/kalzium.svgz
%{tde_tdedocdir}/HTML/en/kalzium/
-%post -n trinity-kalzium
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kalzium
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kalzium-data
@@ -277,7 +257,7 @@ Group: System/GUI/Other
%description -n trinity-kalzium-data
This package contains architecture-independent data files for
-Kalzium, the KDE periodic table application. This includes pictures
+Kalzium, the TDE periodic table application. This includes pictures
of various chemical equipment and of samples of several elements, in
addition to the actual chemical data.
@@ -321,20 +301,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/kanagram.svgz
%{tde_tdedocdir}/HTML/en/kanagram/
-%post -n trinity-kanagram
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kanagram
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kbruch
@@ -360,20 +326,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/crystalsvg/*/actions/kbruch_*.png
%{tde_tdedocdir}/HTML/en/kbruch/
-%post -n trinity-kbruch
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kbruch
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-keduca
@@ -403,20 +355,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/services/keduca_part.desktop
%{tde_tdedocdir}/HTML/en/keduca/
-%post -n trinity-keduca
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-keduca
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kgeography
@@ -443,20 +381,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/*/apps/kgeography.png
%{tde_tdedocdir}/HTML/en/kgeography
-%post -n trinity-kgeography
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kgeography
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kgeography-data
@@ -465,7 +389,7 @@ Group: System/GUI/Other
%description -n trinity-kgeography-data
This package contains architecture-independent data files for
-KGeography, the geography learning tool for KDE. This includes map
+KGeography, the geography learning tool for TDE. This includes map
and flag images.
See the kgeography package for further information.
@@ -498,7 +422,7 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-khangman
%defattr(-,root,root,-)
-%{tde_datadir}/config/khangmanrc
+%{tde_confdir}/khangmanrc
%{tde_bindir}/khangman
%{tde_tdeappdir}/khangman.desktop
%{tde_datadir}/apps/khangman/
@@ -507,24 +431,10 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/khangman.svgz
%{tde_tdedocdir}/HTML/en/khangman/
-%post -n trinity-khangman
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-khangman
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kig
-Summary: Interactive geometry program for KDE
+Summary: Interactive geometry program for TDE
Group: System/GUI/Other
Requires: trinity-tdeedu-data = %{version}-%{release}
@@ -550,8 +460,8 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-kig
%defattr(-,root,root,-)
-%{tde_datadir}/config/magic/cabri.magic
-%{tde_datadir}/config/magic/drgeo.magic
+%{tde_confdir}/magic/cabri.magic
+%{tde_confdir}/magic/drgeo.magic
%{tde_bindir}/kig
%{tde_bindir}/pykig.py*
%{tde_tdelibdir}/tdefile_drgeo.la
@@ -561,7 +471,7 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_tdelibdir}/libkigpart.la
%{tde_tdelibdir}/libkigpart.so
%{tde_tdeappdir}/kig.desktop
-%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+%if 0%{?with_kig}
%{tde_datadir}/apps/katepart/syntax/python-kig.xml
%endif
%{tde_datadir}/apps/kig/
@@ -578,20 +488,8 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/services/tdefile_kig.desktop
%{tde_datadir}/services/kig_part.desktop
%{tde_tdedocdir}/HTML/en/kig/
-
-%post -n trinity-kig
-for i in crystalsvg hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kig
-for i in crystalsvg hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
+%{tde_confdir}/magic/cabri.magic.mgc
+%{tde_confdir}/magic/drgeo.magic.mgc
##########
@@ -602,7 +500,7 @@ Requires: trinity-tdeedu-data = %{version}-%{release}
#Requires: ttf-kochi-gothic | ttf-kochi-mincho
%description -n trinity-kiten
-Kiten is a Japanese reference and study tool for KDE. It is an
+Kiten is a Japanese reference and study tool for TDE. It is an
application with multiple functions. Firstly, it is a convenient
English to Japanese and Japanese to English dictionary. Secondly, it
is a Kanji dictionary, with multiple ways to look up specific
@@ -619,20 +517,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/*/apps/kiten.png
%{tde_datadir}/icons/hicolor/scalable/apps/kiten.svgz
-%post -n trinity-kiten
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kiten
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-klatin
@@ -667,20 +551,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/klatin.svgz
%{tde_tdedocdir}/HTML/en/klatin/
-%post -n trinity-klatin
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-klatin
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-klettres
@@ -702,7 +572,7 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-klettres
%defattr(-,root,root,-)
-%{tde_datadir}/config/klettresrc
+%{tde_confdir}/klettresrc
%{tde_bindir}/klettres
%{tde_tdeappdir}/klettres.desktop
%{tde_datadir}/config.kcfg/klettres.kcfg
@@ -710,20 +580,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/klettres.svgz
%{tde_tdedocdir}/HTML/en/klettres/
-%post -n trinity-klettres
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-klettres
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-klettres-data
@@ -732,7 +588,7 @@ Group: System/GUI/Other
%description -n trinity-klettres-data
This package contains architecture-independent data files for
-KLettres, the foreign alphabet tutor for KDE. This includes sound
+KLettres, the foreign alphabet tutor for TDE. This includes sound
files and graphics.
See the klettres package for further information.
@@ -751,7 +607,7 @@ Group: System/GUI/Other
Requires: trinity-tdeedu-data = %{version}-%{release}
%description -n trinity-kmplot
-KmPlot is a mathematical function plotter for KDE. It has a powerful
+KmPlot is a mathematical function plotter for TDE. It has a powerful
built-in parser. You can plot different functions simultaneously and
combine them to build new functions.
@@ -780,20 +636,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/services/kmplot_part.desktop
%{tde_tdedocdir}/HTML/en/kmplot/
-%post -n trinity-kmplot
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kmplot
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kpercentage
@@ -820,20 +662,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/kpercentage.svgz
%{tde_tdedocdir}/HTML/en/kpercentage/
-%post -n trinity-kpercentage
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kpercentage
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kstars
@@ -844,7 +672,7 @@ Requires: trinity-kstars-data = %{version}-%{release}
Requires: trinity-indi = %{version}-%{release}
%description -n trinity-kstars
-KStars is a graphical desktop planetarium for KDE. It depicts an
+KStars is a graphical desktop planetarium for TDE. It depicts an
accurate simulation of the night sky, including stars,
constellations, star clusters, nebulae, galaxies, all planets, the
Sun, the Moon, comets and asteroids. You can see the sky as it
@@ -860,7 +688,7 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-kstars
%defattr(-,root,root,-)
-%{tde_datadir}/config/kstarsrc
+%{tde_confdir}/kstarsrc
%{tde_bindir}/kstars
%{tde_tdeappdir}/kstars.desktop
%{tde_datadir}/config.kcfg/kstars.kcfg
@@ -868,20 +696,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/kstars.svgz
%{tde_tdedocdir}/HTML/en/kstars/
-%post -n trinity-kstars
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kstars
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kstars-data
@@ -890,7 +704,7 @@ Group: System/GUI/Other
%description -n trinity-kstars-data
This package contains architecture-independent data files for KStars,
-the graphical desktop planetarium for KDE. This includes star
+the graphical desktop planetarium for TDE. This includes star
catalogues and astronomical images.
See the kstars package for further information.
@@ -930,20 +744,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/ktouch.svgz
%{tde_tdedocdir}/HTML/en/ktouch/
-%post -n trinity-ktouch
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-ktouch
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kturtle
@@ -981,20 +781,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/*/apps/kturtle.png
%{tde_tdedocdir}/HTML/en/kturtle/
-%post -n trinity-kturtle
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kturtle
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kverbos
@@ -1024,20 +810,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/scalable/apps/kverbos.svgz
%{tde_tdedocdir}/HTML/en/kverbos/
-%post -n trinity-kverbos
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kverbos
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kvoctrain
@@ -1067,7 +839,7 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-kvoctrain
%defattr(-,root,root,-)
-%{tde_datadir}/config/kvoctrainrc
+%{tde_confdir}/kvoctrainrc
%{tde_bindir}/kvoctrain
%{tde_bindir}/spotlight2kvtml
%{tde_libdir}/libkvoctraincore.so.*
@@ -1080,22 +852,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/hicolor/*/apps/kvoctrain.png
%{tde_tdedocdir}/HTML/en/kvoctrain/
-%post -n trinity-kvoctrain
-/sbin/ldconfig || :
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kvoctrain
-/sbin/ldconfig || :
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-kwordquiz
@@ -1108,7 +864,7 @@ KWordQuiz is a flashcard-based tool that helps you to master new
vocabularies. It may be a language or any other kind of terminology.
KWordQuiz can open several types of vocabulary data. Supported are
-kvtml files used by other KDE programs such as KVocTrain, wql files
+kvtml files used by other TDE programs such as KVocTrain, wql files
used by WordQuiz for Windows, csv files with comma-separated text,
and xml.gz files created by Pauker (http://pauker.sourceforge.net).
@@ -1116,7 +872,7 @@ This package is part of Trinity, as a component of the TDE education module.
%files -n trinity-kwordquiz
%defattr(-,root,root,-)
-%{tde_datadir}/config/kwordquizrc
+%{tde_confdir}/kwordquizrc
%{tde_bindir}/kwordquiz
%{tde_tdeappdir}/kwordquiz.desktop
%{tde_datadir}/apps/kwordquiz/
@@ -1128,20 +884,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/mimelnk/application/x-kwordquiz.desktop
%{tde_tdedocdir}/HTML/en/kwordquiz/
-%post -n trinity-kwordquiz
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
-%postun -n trinity-kwordquiz
-for i in hicolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-update-desktop-database %{tde_datadir}/applications > /dev/null 2>&1 || :
-
##########
%package -n trinity-libtdeedu3
@@ -1149,7 +891,7 @@ Summary: Library for use with Trinity educational apps
Group: System/GUI/Other
%description -n trinity-libtdeedu3
-The KDE-based library libtdeedu is used with educational
+The TDE-based library libtdeedu is used with educational
applications. It currently provides support for data plotting and
vocabulary items (including a parser for kvtml vocabulary files).
@@ -1162,12 +904,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_libdir}/libtdeeduplot.so.*
%{tde_libdir}/libtdeeduui.so.*
-%post -n trinity-libtdeedu3
-/sbin/ldconfig || :
-
-%postun -n trinity-libtdeedu3
-/sbin/ldconfig || :
-
##########
%package -n trinity-libtdeedu-devel
@@ -1176,7 +912,7 @@ Group: Development/Libraries/Other
Requires: trinity-libtdeedu3 = %{version}-%{release}
%description -n trinity-libtdeedu-devel
-The KDE-based library libtdeedu is used with educational
+The TDE-based library libtdeedu is used with educational
applications. It currently provides support for data plotting and
vocabulary items (including a parser for kvtml vocabulary files).
@@ -1196,13 +932,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_libdir}/libtdeeduplot.la
%{tde_libdir}/libtdeeduplot.so
-%post -n trinity-libtdeedu-devel
-/sbin/ldconfig || :
-
-%postun -n trinity-libtdeedu-devel
-/sbin/ldconfig || :
-
-
##########
%package -n trinity-libkiten1
@@ -1211,7 +940,7 @@ Group: System/GUI/Other
#Requires: kanjidic
%description -n trinity-libkiten1
-Kiten is a Japanese reference/study tool for KDE. The library
+Kiten is a Japanese reference/study tool for TDE. The library
libkiten contains portions of Kiten that may be useful for other
applications. These portions include dictionary, character lookup
and widget classes.
@@ -1234,20 +963,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_datadir}/icons/locolor/16x16/actions/edit_add.png
%{tde_datadir}/icons/locolor/16x16/actions/edit_remove.png
-%post -n trinity-libkiten1
-for i in crystalsvg locolor locolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-/sbin/ldconfig || :
-
-%postun -n trinity-libkiten1
-for i in crystalsvg locolor locolor ; do
- touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
- gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
-done
-/sbin/ldconfig || :
-
##########
%package -n trinity-libkiten-devel
@@ -1257,7 +972,7 @@ Requires: trinity-libkiten1 = %{version}-%{release}
Requires: trinity-tdelibs-devel >= %{version}
%description -n trinity-libkiten-devel
-Kiten is a Japanese reference/study tool for KDE. The library
+Kiten is a Japanese reference/study tool for TDE. The library
libkiten contains portions of Kiten that may be useful for other
applications. These portions include dictionary, character lookup
and widget classes.
@@ -1273,12 +988,6 @@ This package is part of Trinity, as a component of the TDE education module.
%{tde_libdir}/libkiten.la
%{tde_libdir}/libkiten.so
-%post -n trinity-libkiten-devel
-/sbin/ldconfig || :
-
-%postun -n trinity-libkiten-devel
-/sbin/ldconfig || :
-
##########
%package -n trinity-indi
@@ -1341,12 +1050,6 @@ This package contains the development files for tdeedu.
%{tde_libdir}/libkvoctraincore.la
%{tde_libdir}/libkvoctraincore.so
-%post devel
-/sbin/ldconfig || :
-
-%postun devel
-/sbin/ldconfig || :
-
##########
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
@@ -1359,14 +1062,20 @@ This package contains the development files for tdeedu.
%prep
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
+# RHEL5 strange FTBFS on V4L stuff
+%if 0%{?rhel} == 5
+%__sed -i "admin/acinclude.m4.in" -e "s|-ansi||"
+%endif
+
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
+export kde_confdir="%{tde_confdir}"
# Specific path for RHEL4
if [ -d "/usr/X11R6" ]; then
@@ -1391,7 +1100,7 @@ fi
--enable-rpath \
--disable-gcc-hidden-visibility \
\
-%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+%if 0%{?with_kig}
--enable-kig-python-scripting \
%else
--disable-kig-python-scripting \
@@ -1441,5 +1150,3 @@ export PATH="%{tde_bindir}:${PATH}"
%changelog
-* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
-- Initial release for TDE R14.0.0
diff --git a/redhat/main/tdeedu/tdeedu-3.5.13.2.spec b/redhat/main/tdeedu/tdeedu-3.5.13.2.spec
index 3c9a88fce..336316c10 100644
--- a/redhat/main/tdeedu/tdeedu-3.5.13.2.spec
+++ b/redhat/main/tdeedu/tdeedu-3.5.13.2.spec
@@ -1,8 +1,3 @@
-# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
-%if "%{?tde_prefix}" != "/usr"
-%define _variant .opt
-%endif
-
%define tde_version 3.5.13.2
# TDE specific building variables
@@ -22,7 +17,7 @@
Name: trinity-tdeedu
Summary: Educational/Edutainment applications
Version: %{tde_version}
-Release: %{?!preversion:2}%{?preversion:1_%{preversion}}%{?dist}%{?_variant}
+Release: %{?!preversion:2}%{?preversion:1_%{preversion}}%{?dist}
License: GPLv2
Group: Amusements/Games
@@ -1314,7 +1309,7 @@ Provides: trinity-kdeedu-devel = %{version}-%{release}
%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
@@ -1370,8 +1365,3 @@ export PATH="%{tde_bindir}:${PATH}"
%changelog
-* Fri Aug 16 2013 Francois Andriot <francois.andriot@free.fr> - 3.5.13.2-2
-- Build for Fedora 19
-
-* Mon Jun 03 2013 Francois Andriot <francois.andriot@free.fr> - 3.5.13.2-1
-- Initial release for TDE 3.5.13.2
diff --git a/redhat/main/tdeedu/trinity-tdeedu-rpmlintrc b/redhat/main/tdeedu/trinity-tdeedu-rpmlintrc
new file mode 100644
index 000000000..529351884
--- /dev/null
+++ b/redhat/main/tdeedu/trinity-tdeedu-rpmlintrc
@@ -0,0 +1,2 @@
+setBadness('library-without-ldconfig-postun', 0)
+setBadness('library-without-ldconfig-postin', 0)