Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1488666
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/KDE
Пакет: kdeedu

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%undefine __libtoolize
%define unstable 0

%define qtdir /usr/lib/qt3
%define cvsdate 20020401
%add_findprov_lib_path %_libdir/kde3

Name: kdeedu
Version: 3.3.2
Release: alt2.9.M24

Group: Graphical desktop/KDE
Summary: K Desktop Environment - kdeedu
URL: http://www.kde.org/
License: GPL

Source: kdeedu-%version.tar.bz2
#Source: kdeedu-3.0.98.tar.bz2
Source1: admin.tar.bz2
Patch10: 3.2.0-flags.patch
Patch11: kstars-3.2.2-fix-compile.patch
Patch10000: post-3.3.2-kdeedu-kstars.diff


#Requires: %name-flashkard = %version-%release

Requires: %name-kalzium = %version-%release
Requires: %name-kbruch = %version-%release
Requires: %name-keduca = %version-%release
Requires: %name-khangman = %version-%release
Requires: %name-kig = %version-%release
Requires: %name-kiten = %version-%release
Requires: %name-klettres = %version-%release
Requires: %name-kmessedwords = %version-%release
Requires: %name-kmplot = %version-%release
Requires: %name-kpercentage = %version-%release
Requires: %name-kstars = %version-%release
Requires: %name-ktouch = %version-%release
Requires: %name-kverbos = %version-%release
Requires: %name-kvoctrain = %version-%release
Requires: %name-kturtle = %version-%release
Requires: %name-klatin = %version-%release
Requires: %name-kwordquiz = %version-%release

# Automatically added by buildreq on Mon Apr 08 2002

#BuildRequires: XFree86-devel XFree86-libs freetype2 gcc-c++ kde-common kdebase kdelibs-devel libarts-devel libjpeg-devel liblcms libmng libpng-devel libqt3-devel libstdc++-devel zlib-devel

BuildRequires: XFree86-devel XFree86-libs freetype2 gcc-c++
BuildRequires: kde-common libarts-devel libart_lgpl-devel
BuildRequires: libjpeg-devel liblcms libmng libpng-devel
BuildRequires: libqt3-devel libstdc++-devel zlib-devel libpcre-devel
BuildRequires: kdelibs-devel-cxx = %__gcc_version_base
BuildRequires: kdelibs > 3.0 kdelibs-devel > 3.0

%description
kdeedu

%package common
Summary: Common empty package for %name
Group: Graphical desktop/KDE
Requires: kde-common >= 3.2
Conflicts: kdeedu <= 3.0.1
#
%description common
Common empty package for %name

%package klatin
Summary: Program to help revise Latin
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description klatin
KLatin is a program to help revise Latin

%package kwordquiz
Summary: Tool to master new vocabularies.
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kwordquiz
KWordquiz is a tool that gives you a powerful way to master new vocabularies.
It may be a language or any other kind of terminology.

%package kturtle
Summary: LOGO programming language for KDE
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kturtle
KTurtle is an educational programming environment
using the LOGO programming language.

%package kbruch
Summary: Fraction calculation teaching tool
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kbruch
KBruch  is  a program that generate tasks with fractions.
The user has to solve the given task by entering the right value
for numerator and denominator. The program checks the user's solution
and gives feedback.

%package khangman
Summary: Classical hangman game
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description khangman
KHangMan  is  a game based on the well known hangman game.
It is aimed for children aged 6 and above. It has four levels
of difficulty.

%package kig
Summary: Interactive geometry program
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Obsoletes: kdeedu-kgeo
#
%description kig
Kig is an application for interactive geometry. It is intended to
serve two purposes:
 - to allow students to interactively explore mathematical figures and
   concepts using the computer;
 - to serve as a WYSIWYG tool for drawing mathematical figures and
   including them in other documents.

%package libs
Summary: Base library for kdeedu programs
Group: Graphical desktop/KDE
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description libs
Base library for kdeedu programs

%package devel
Summary: Development files for %name-libs
Group: Graphical desktop/KDE
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: %name-libs %name-kstars
#
%description devel
Development files for %name-libs

%package flashkard
Summary: Questions on cards
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description flashkard
FlashKard is based on a rather old learning method
used to teach children facts. The teacher will present
a number of cards with questions on it, on which the
pupil will write down the answers on the back of the cards,
which will be checked later on by the teacher.
The cards with the correct answers will be removed
from the pile and the incorrectly answered question
will be repeated over and over again, until the answer
is drilled into the memory.

%package kalzium
Summary: Information about the PSE
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kalzium
Information about the PSE (Periodic System of Elements).

%package kiten
Summary: Japanese Reference/Study Tool
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kiten
Japanese Reference/Study Tool

%package kmplot
Summary: Function Plotter
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kmplot
Kmplot supports functions with parameters
and functions in polar coordinates.
Several grid modes are possible.
Plots may be printed with high precision
in correct scale.

%package kpercentage
Summary: Calculating percentages
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kpercentage
Small math application that will help pupils
to improve their skills in calculating percentages.

%package kverbos
Summary: Learn the forms of Spanish verbs
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kverbos
Learn the forms of Spanish verbs

%package keduca
Summary: Tests and Exams
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description keduca
Tests and Exams

%package klettres
Summary: French alphabet tutor
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description klettres
French alphabet tutor

%package kmessedwords
Summary: Letter Order Game
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kmessedwords
Letter Order Game

%package kstars
Summary: Desktop Planetarium
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kstars
Desktop Planetarium

%package ktouch
Summary: Touch Typing Tutor
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description ktouch
Touch Typing Tutor

%package kvoctrain
Summary: Vocabulary Trainer
Group: Education
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kvoctrain
Vocabulary Trainer

%prep
%setup -q -n %name-%version
#%setup -q -n %name-3.0.98
[ -d admin ] || tar xfj %SOURCE1
%patch10 -p1
#%patch11 -p1

pushd kstars/kstars
%patch10000 -p0
popd

subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
subst "s/\.la/.so/g" admin/acinclude.m4.in
make -f admin/Makefile.common cvs ||:

%build
rm -rf %buildroot
export QTDIR=%qtdir
export KDEDIR=%prefix

export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH

export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3 -L%_libdir"

%configure \
%if %unstable
--enable-debug=full \
%else
--disable-debug \
%endif
                   --enable-final \
                   --enable-shared \
                   --disable-static \
   --disable-embedded \
   --disable-qtopia \
   --disable-rpath \
   --with-gnu-ld \
   --with-pic \
   --program-transform-name="" \
                   --with-xinerama

%make_build

%install
%if %unstable
%set_strip_method none
%endif
export PATH=%_bindir:$PATH

%make_build DESTDIR=%buildroot install
#%%make_build \
#    DESTDIR=%buildroot \
#    prefix=%prefix \
#    exec_prefix=%prefix \
#install

#

chmod a-s %buildroot/%_bindir/*

#mv %buildroot/%_datadir/applnk/klettres/level*.txt %buildroot/%_datadir/apps/klettres



# Create LMDK menu entries

install -d %buildroot/%_menudir/

%Kd2m %name-kiten Applications/Edutainment/Languages %Kbmenudir/kiten.desktop %Kb_menudir/%name-kiten
%Kd2m %name-klettres Applications/Edutainment/Languages %Kbmenudir/klettres.desktop %Kb_menudir/%name-klettres
%Kd2m %name-kmessedwords Applications/Edutainment/Languages %Kbmenudir/kmessedwords.desktop %Kb_menudir/%name-kmessedwords
%Kd2m %name-kverbos Applications/Edutainment/Languages %Kbmenudir/kverbos.desktop %Kb_menudir/%name-kverbos
%Kd2m %name-kvoctrain Applications/Edutainment/Languages %Kbmenudir/kvoctrain.desktop %Kb_menudir/%name-kvoctrain

%Kd2m %name-kmplot Applications/Edutainment/Mathematics %Kbmenudir/kmplot.desktop %Kb_menudir/%name-kmplot
%Kd2m %name-kpercentage Applications/Edutainment/Mathematics %Kbmenudir/kpercentage.desktop %Kb_menudir/%name-kpercentage

#%Kd2m %name-flashkard Applications/Edutainment/Other %Kbmenudir/flashkard.desktop %Kb_menudir/%name-flashkard

%Kd2m %name-ktouch Applications/Edutainment/Other %Kbmenudir/ktouch.desktop %Kb_menudir/%name-ktouch

%Kd2m %name-kalzium Applications/Edutainment/Science %Kbmenudir/kalzium.desktop %Kb_menudir/%name-kalzium
%Kd2m %name-kstars Applications/Edutainment/Science %Kbmenudir/kstars.desktop %Kb_menudir/%name-kstars

%Kd2m %name-keduca Applications/Edutainment/Other %Kbmenudir/keduca.desktop %Kb_menudir/%name-keduca
%Kd2m %name-keduca Applications/Edutainment/Tools %Kbmenudir/keducabuilder.desktop %Kb_menudir/%name-keducabuilder

%Kd2m %name-kig Applications/Edutainment/Mathematics %Kbmenudir/kig.desktop %Kb_menudir/%name-kig
%Kd2m %name-khangman Applications/Edutainment/Languages %Kbmenudir/khangman.desktop %Kb_menudir/%name-khangman
%Kd2m %name-kbruch Applications/Edutainment/Mathematics %Kbmenudir/kbruch.desktop %Kb_menudir/%name-kbruch

%Kd2m %name-kturtle Applications/Edutainment/Other %Kbmenudir/kturtle.desktop %Kb_menudir/%name-kturtle
%Kd2m %name-klatin Applications/Edutainment/Languages %Kbmenudir/klatin.desktop %Kb_menudir/kdeedu-klatin
%Kd2m %name-kwordquiz Applications/Edutainment/Tools %Kbapplnk/Edutainment/Miscellaneous/kwordquiz.desktop %Kb_menudir/kdeedu-kwordquiz


%post kturtle
%update_menus
%postun kturtle
%clean_menus

%post keduca
%update_menus
%postun keduca
%clean_menus

%post klettres
%update_menus
%postun klettres
%clean_menus

%post kmessedwords
%update_menus
%postun kmessedwords
%clean_menus

%post kstars
%update_menus
%postun kstars
%clean_menus

%post ktouch
%update_menus
%postun ktouch
%clean_menus

%post kvoctrain
%update_menus
%postun kvoctrain
%clean_menus

%post libs
%post_ldconfig
%postun libs
%postun_ldconfig

#%post flashkard

#%update_menus
#%postun flashkard
#%clean_menus

%post kalzium
%update_menus
%postun kalzium
%clean_menus

%post kiten
%update_menus
%postun kiten
%clean_menus

%post kmplot
%update_menus
%postun kmplot
%clean_menus

%post kpercentage
%update_menus
%postun kpercentage
%clean_menus

%post kverbos
%update_menus
%postun kverbos
%clean_menus

%post kbruch
%update_menus
%postun kbruch
%clean_menus

%post khangman
%update_menus
%postun khangman
%clean_menus

%post kig
%update_menus
%postun kig
%clean_menus

%post klatin
%update_menus
%postun klatin
%clean_menus

%post kwordquiz
%update_menus
%postun kwordquiz
%clean_menus


%files
%files common

%files klatin
%_bindir/klatin
%_datadir/apps/klatin/
%_iconsdir/*/*/apps/klatin.*
%_docdir/HTML/en/klatin/
%Kmenudir/klatin.desktop
%_menudir/kdeedu-klatin

%files kwordquiz
%_bindir/kwordquiz
%_datadir/apps/kwordquiz
%_datadir/mimelnk/application/x-kwordquiz.desktop
%_iconsdir/*/*/*/kwordquiz*
%_docdir/HTML/en/kwordquiz/
%Kapplnk/Edutainment/Miscellaneous/kwordquiz.desktop
%_menudir/kdeedu-kwordquiz

%files kturtle
%_bindir/kturtle
%_datadir/apps/kturtle/
%_datadir/apps/katepart/syntax/logohighlightstyle.*
%_iconsdir/*/*/apps/kturtle.*
%_docdir/HTML/en/kturtle
%Kmenudir/kturtle.desktop
%_menudir/kdeedu-kturtle

%files kbruch
%_bindir/kbruch
%_datadir/apps/kbruch/kbruchui.rc
%_iconsdir/*/*/apps/kbruch.*
%_iconsdir/*/*/*/kbruch_*
%_docdir/HTML/en/kbruch
%Kmenudir/kbruch.desktop
%_menudir/%name-kbruch

%files khangman
%_bindir/khangman
%_datadir/apps/khangman
%_iconsdir/*/*/apps/khangman.*
%_docdir/HTML/en/khangman
%Kmenudir/khangman.desktop
%_menudir/%name-khangman

%files kig
%_bindir/kig
%_libdir/kde3/libkigpart.*
%_datadir/apps/kig
#%_datadir/apps/kigpart
%_iconsdir/*/*/apps/kig.*
%_datadir/mimelnk/application/x-kig.desktop
%_datadir/mimelnk/application/x-kgeo.desktop
#
%_datadir/mimelnk/application/x-kseg.desktop
%_datadir/mimelnk/application/x-drgeo.desktop
%_datadir/mimelnk/application/x-cabri.desktop
#
%_datadir/services/kig_part.desktop
%_docdir/HTML/en/kig
%Kmenudir/kig.desktop
%_menudir/%name-kig
# kfile
%_libdir/kde3/kfile_drgeo.*
%_libdir/kde3/kfile_kig.*
%_datadir/services/kfile_drgeo.desktop
%_datadir/services/kfile_kig.desktop

%files keduca
%_bindir/keduca*
%Kmenudir/keduca.desktop
%Kmenudir/keducabuilder.desktop
%_datadir/apps/keduca
%_datadir/mimelnk/application/x-edu.desktop
%_iconsdir/*/*/*/keduca*
%_docdir/HTML/en/keduca
%_menudir/%name-keduca
%_menudir/%name-keducabuilder

%files kiten
%_bindir/kiten
%_bindir/kitengen
#%_libdir/kiten.*
%_datadir/apps/kiten
%_docdir/HTML/en/kiten
%_iconsdir/*/*/apps/kiten.*
%_iconsdir/*/*/actions/edit_add.png
%_iconsdir/*/*/actions/edit_remove.png
%_iconsdir/*/*/actions/kanjidic.png
%Kmenudir/kiten.desktop
%_menudir/%name-kiten

%files kverbos
%_bindir/kverbos
%_datadir/apps/kverbos
%_docdir/HTML/en/kverbos
%_iconsdir/*/*/actions/kverbosuser.png
%_iconsdir/*/*/*/kverbos.*
%Kmenudir/kverbos.desktop
%_menudir/%name-kverbos

%files kmplot
%_bindir/kmplot
%_datadir/apps/kmplot
%_datadir/mimelnk/application/x-kmplot.desktop
%_iconsdir/*/*/apps/kmplot.*
%_docdir/HTML/en/kmplot
%Kmenudir/kmplot.desktop
%_menudir/%name-kmplot

#%files flashkard

#%_bindir/flashkard
#%_datadir/apps/flashkard
#%_docdir/HTML/en/flashkard
#%_iconsdir/*/*/apps/flashkard.*
#%Kmenudir/flashkard.desktop
#%_menudir/%name-flashkard

%files kpercentage
%_bindir/kpercentage
%_datadir/apps/kpercentage
%_docdir/HTML/en/kpercentage
%_iconsdir/*/*/apps/kpercentage.*
%Kmenudir/kpercentage.desktop
%_menudir/%name-kpercentage

%files kalzium
%_bindir/kalzium
%_datadir/apps/kalzium
%_docdir/HTML/en/kalzium
%_iconsdir/*/*/apps/kalzium.*
%Kmenudir/kalzium.desktop
%_menudir/%name-kalzium

%files klettres
%_bindir/klettres
%_datadir/apps/klettres
%_datadir/icons/*/*/*/klettres.*
%_datadir/icons/*/*/apps/grownup.png
%_datadir/icons/*/*/apps/kids.png
%_datadir/icons/*/*/apps/menubar.png
%Kmenudir/klettres.desktop
%doc %_docdir/HTML/en/klettres
%_menudir/%name-klettres

%files kmessedwords
%_bindir/kmessedwords
%_datadir/apps/kmessedwords
%_datadir/icons/*/*/*/kmessedwords*
%doc %_docdir/HTML/en/kmessedwords
%Kmenudir/kmessedwords.desktop
%_menudir/%name-kmessedwords

%files kstars
%_bindir/celestrongps
%_bindir/indiserver
%_bindir/fliccd
%_bindir/lx200*
%_bindir/kstars
%_bindir/v4ldriver
%_bindir/v4lphilips
%_includedir/kstarsinterface.h
%_includedir/simclockinterface.h
%Kmenudir/kstars.desktop
%_datadir/apps/kstars
%_datadir/icons/*/*/*/kstars*
%doc %_docdir/HTML/en/kstars
%_menudir/%name-kstars

%files ktouch
%_bindir/ktouch
%Kmenudir/ktouch.desktop
%_datadir/apps/ktouch
%_datadir/icons/*/*/*/ktouch*
%doc %_docdir/HTML/en/ktouch
%_menudir/%name-ktouch

%files kvoctrain
%_bindir/kvoctrain
%_bindir/*kvtml
%Kmenudir/kvoctrain.desktop
%_datadir/apps/kvoctrain
%_datadir/icons/*/*/*/kvoctrain*
#%_datadir/icons/kvoctrain*
%doc %_docdir/HTML/en/kvoctrain
%_menudir/%name-kvoctrain

%files libs
%_bindir/test_extdate*
%_libdir/libextdate.so*
%_libdir/libkdeeduplot.so*
%_libdir/libkdeeduui.so*
%_libdir/libkdeeducore.so*
%_iconsdir/*/*/apps/edu_*.png
%_datadir/applnk/Edutainment
%_datadir/mimelnk/application/x-edugallery.desktop

%files devel
%_includedir/*.h

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005