From b683e306b9437c92b554f78af83917ca47ce2979 Mon Sep 17 00:00:00 2001 From: albator Date: Sun, 11 Sep 2011 17:32:14 +0200 Subject: Some more packages for RHEL 6 / TDE 3.5.12 --- redhat/kdeedu/trinity-kdeedu-3.5.12.spec | 214 +++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 redhat/kdeedu/trinity-kdeedu-3.5.12.spec (limited to 'redhat/kdeedu/trinity-kdeedu-3.5.12.spec') diff --git a/redhat/kdeedu/trinity-kdeedu-3.5.12.spec b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec new file mode 100644 index 000000000..ea7d9774f --- /dev/null +++ b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec @@ -0,0 +1,214 @@ +# Default version for this component +%if "%{?version}" == "" +%define version 3.5.12 +%endif +%define release 1 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.12 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir} +%define tde_includedir %{_includedir}/kde +%define tde_libdir %{_libdir}/kde3 + + +Name: trinity-kdeedu +Summary: Educational/Edutainment applications +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2 +Group: Amusements/Games + +Vendor: Trinity Project +Packager: Francois Andriot +URL: http://www.trinitydesktop.org/ + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: kdeedu-%{version}.tar.gz + +Provides: kdeedu3 = %{version}-%{release} + +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +Requires: %{name}-libs = %{version}-%{release} + +BuildRequires: desktop-file-utils +BuildRequires: trinity-kdelibs-devel +BuildRequires: python-devel python +BuildRequires: boost-devel +BuildRequires: ocaml(compiler) +#BuildRequires: ocaml-facile-devel + + +%description +Educational/Edutainment applications, including: +* blinken: Simon Says Game +* kalzium: Periodic Table of Elements +* kanagram: Letter Order Game +* kbruch: Exercise Fractions +* keduca: Tests and Exams +* kgeography: Geography Trainer +* khangman: Hangman Game +* kig: Interactive Geometry +* kiten: Japanese Reference/Study Tool +* klatin: Latin Reviser +* klettres: French alphabet tutor +* kmplot: Mathematical Function Plotter +* kpercentage: Excersie Percentages +* kstars: Desktop Planetarium +* ktouch: Touch Typing Tutor +* kturtle: Logo Programming Environment +* kverbos: Study Spanish Verbforms +* kvoctrain: Vocabulary Trainer +* kwordquiz: Vocabulary Trainer + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Provides: kdeedu3-devel = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} +%description devel +%{summary}. + +%package libs +Summary: %{name} runtime libraries +Group: System Environment/Libraries +Requires: trinity-kdelibs +# include to be paranoid, installing libs-only is still mostly untested -- Rex +Requires: %{name} = %{version}-%{release} +%description libs +%{summary}. + + +%prep +%setup -q -n kdeedu + +%if 0%{?rhel} > 1 +rm -rf doc/kgeography kgeography +perl -pi -e "s|kgeography||" subdirs +%endif + +%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" + + +%build +unset QTDIR || : ; . /etc/profile.d/qt.sh +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +# Fix link with kparts +export CXXFLAGS="${CXXFLAGS} -lkparts" + +%configure \ + --enable-new-ldflags \ + --disable-dependency-tracking \ + --disable-rpath \ + --enable-kig-python-scripting \ + --disable-debug \ + --disable-warnings \ + --enable-final \ + --includedir=%{_includedir}/kde \ + --disable-ocamlsolver \ + --with-extra-includes=%{_includedir}/tqt + + +%__make %{?_smp_mflags} \ + OCAMLLIB=$(ocamlc -where) FACILELIB=$(ocamlc -where) + + +%install +%__rm -rf %{buildroot} +%make_install + +# locale's +%find_lang %{name} || touch %{name}.lang +HTML_DIR=$(kde-config --expandvars --install html) +if [ -d %{buildroot}$HTML_DIR ]; then +for lang_dir in %{buildroot}$HTML_DIR/* ; do + if [ -d $lang_dir ]; then + lang=$(basename $lang_dir) + echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang + # replace absolute symlinks with relative ones + pushd $lang_dir + for i in *; do + [ -d $i -a -L $i/common ] && ln -nsf ../common $i/common + done + popd + fi +done +fi + +# rpmdocs +for dir in blinken k* ; do + for file in AUTHORS ChangeLog README TODO ; do + test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file" + done +done + + +%clean +%__rm -rf %{buildroot} + + +%post +for i in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$i 2>/dev/null || : + gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || : +done +update-desktop-database >& /dev/null ||: + +%postun +for i in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$i 2>/dev/null || : + gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || : +done +update-desktop-database >& /dev/null ||: + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc README COPYING +%doc rpmdocs/* +%{_bindir}/* +%{_datadir}/applications/kde/* +# FIXME +%{_datadir}/applnk/Edutainment/ +%{_datadir}/apps/* +%config %{_datadir}/config*/* +%{_datadir}/mimelnk/*/* +%{_datadir}/icons/crystalsvg/*/*/* +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/icons/locolor/*/*/* +%{_datadir}/services/* +%{tde_libdir}/* + +%files libs +%defattr(-,root,root,-) +%{_libdir}/lib*.so.* +%{_libdir}/lib*.la + +%files devel +%defattr(-,root,root,-) +%doc libkdeedu/AUTHORS libkdeedu/README +%{tde_includedir}/* +%{_libdir}/lib*.so + + +%changelog +* Sun Sep 11 2011 Francois Andriot - 3.5.12-1 +- Initial build for RHEL 6 +- Spec file based on Fedora 8 "kdeedu-3.5.10-1" +- Import to GIT -- cgit v1.2.1 From f6ce92a24ffe2ccb16db56a14655a01e0caf106a Mon Sep 17 00:00:00 2001 From: albator Date: Tue, 13 Sep 2011 19:34:56 +0200 Subject: Add kdeutils patches from Fedora8. Updated TDE 3.5.12 Spec file, confirmed working on RHEL6 and Fedora15. --- redhat/kdeedu/trinity-kdeedu-3.5.12.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'redhat/kdeedu/trinity-kdeedu-3.5.12.spec') diff --git a/redhat/kdeedu/trinity-kdeedu-3.5.12.spec b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec index ea7d9774f..dd7df51eb 100644 --- a/redhat/kdeedu/trinity-kdeedu-3.5.12.spec +++ b/redhat/kdeedu/trinity-kdeedu-3.5.12.spec @@ -90,7 +90,7 @@ Requires: %{name} = %{version}-%{release} %prep %setup -q -n kdeedu -%if 0%{?rhel} > 1 +%if 0%{?rhel} > 0 rm -rf doc/kgeography kgeography perl -pi -e "s|kgeography||" subdirs %endif @@ -108,6 +108,10 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}" # Fix link with kparts export CXXFLAGS="${CXXFLAGS} -lkparts" +%if 0%{?fedora} +export CXXFLAGS="${CXXFLAGS} -fpermissive" +%endif + %configure \ --enable-new-ldflags \ --disable-dependency-tracking \ @@ -116,6 +120,7 @@ export CXXFLAGS="${CXXFLAGS} -lkparts" --disable-debug \ --disable-warnings \ --enable-final \ + --enable-closure \ --includedir=%{_includedir}/kde \ --disable-ocamlsolver \ --with-extra-includes=%{_includedir}/tqt @@ -126,6 +131,7 @@ export CXXFLAGS="${CXXFLAGS} -lkparts" %install +export PATH="%{_bindir}:${PATH}" %__rm -rf %{buildroot} %make_install -- cgit v1.2.1