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

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

%undefine __libtoolize
%define qtdir /usr/lib/qt3
%define cvsdate 20020401
%define unstable 0
%add_findprov_lib_path %_libdir/kde3

Name: kdetoys
Version: 3.3.2
Release: alt0.0.M24

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

Requires: %{get_dep kdelibs}

Source: kdetoys-%version.tar.bz2
#Source: kdetoys-3.0.98.tar.bz2
#
Patch10: kdetoys-3.1.0-kweather_start_hack.patch
Patch11: 3.2.0-flags.patch

Requires: %name-amor = %version-%release
Requires: %name-eyes = %version-%release
Requires: %name-fifteen = %version-%release
Requires: %name-kmoon = %version-%release
Requires: %name-kodo = %version-%release
Requires: %name-kteatime = %version-%release
Requires: %name-ktux = %version-%release
Requires: %name-kweather = %version-%release
Requires: %name-kworldclock = %version-%release

# Automatically added by buildreq on Tue Apr 09 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 libtiff-devel zlib-devel

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

%description
Toys for the K Desktop Environment.

Software included in this package are:
- amor: Amusing Misuse Of Resources put's comic figures above your windows
- eyes: a kicker applet similar to XEyes
- fifteen: kicker applet, order 15 pieces in a 4x4 square by moving them
- kmoon: system tray applet showing the moon phase
- kodo: mouse movement meter
- kteatime: system tray applet that makes sure your tea doesn't get too strong
- ktux: Tux-in-a-Spaceship screen saver
- kweather: kicker applet that will display the current weather outside
- kworldwatch: application and kicker applet showing daylight area on the world globe

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

%package devel
Summary: Headers files for kdetoys
Group: Development/KDE and QT
Requires: %name-common = %version-%release
Requires: %name-amor = %version-%release

%description devel
Headers files for kdetoys.

%package amor
Summary: Put's comic figures above your windows
Group: Toys
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description amor
Amusing Misuse Of Resources put's comic figures above your windows

%package eyes
Summary: KDE kicker applet similar to XEyes
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description eyes
KDE kicker applet similar to XEyes

%package fifteen
Summary: KDE kicker applet, order 15 pieces in a 4x4 square by moving them
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description fifteen
KDE kicker applet, order 15 pieces in a 4x4 square by moving them

%package kmoon
Summary: KDE system tray applet showing the moon phase
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kmoon
KDE system tray applet showing the moon phase

%package kodo
Summary: Mouse movement meter
Group: Toys
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kodo
Mouse movement meter

%package kteatime
Summary: KDE applet that makes sure your tea doesn't get too strong
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kteatime
KDE system tray applet that makes sure your tea
doesn't get too strong

%package ktux
Summary: Tux-in-a-Spaceship screen saver for KDE
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description ktux
Tux-in-a-Spaceship screen saver for KDE

%package kweather
Summary: KDE kicker applet to display the current weather
Group: Toys
Requires: kdebase-wm, %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kweather
KDE kicker applet that will display the current weather outside

%package kworldclock
Summary: Showing daylight area on the world globe
Group: Toys
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kworldclock
Application and KDE kicker applet showing daylight area
on the world globe

%prep
%setup -q -n kdetoys-%version
#%setup -q -n kdetoys-3.0.98
#
#%patch10 -p1
%patch11 -p1

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-palmtop \
   --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 \
   prefix=%_prefix \
   exec_prefix=%_prefix \
install

# Create LMDK menu entries

install -d %buildroot/%_menudir/

# %%_datadir/System/ScreenSavers/

%Kd2m kdetoys .hidden/ScreenSavers %Kbapplnk/System/ScreenSavers/ktux.desktop %Kb_menudir/%name-ktux kde

# %%_datadir/Toys/

%Kd2m %name-amor Amusement/Toys %Kbmenudir/amor.desktop %Kb_menudir/%name-amor
#%Kd2m %name-kmoon Amusement/Toys %Kbmenudir/kmoon.desktop %Kb_menudir/%name-kmoon kde
%Kd2m %name-kodo Amusement/Toys %Kbmenudir/kodo.desktop %Kb_menudir/%name-kodo kde
%Kd2m %name-kteatime Amusement/Toys %Kbmenudir/kteatime.desktop %Kb_menudir/%name-kteatime kde

#%Kd2m %name-kfortune Amusement/Toys %Kbmenudir/kfortune.desktop %Kb_menudir/%name-kfortune

%Kd2m %name-kworldclock Amusement/Toys %Kbmenudir/kworldclock.desktop %Kb_menudir/%name-kworldclock


%post amor
%update_menus
%postun amor
%clean_menus

%post eyes
%update_menus
%postun eyes
%clean_menus

%post fifteen
%update_menus
%postun fifteen
%clean_menus

%post kodo
%update_menus
%postun kodo
%clean_menus

%post kteatime
%update_menus
%postun kteatime
%clean_menus

%post ktux
%update_menus
%postun ktux
%clean_menus

%post kweather
%post_ldconfig
%update_menus
%postun kweather
%postun_ldconfig
%clean_menus

%post kworldclock
%update_menus
%postun kworldclock
%clean_menus


%files
%files common

%files amor
%_bindir/amor
%_datadir/apps/amor
%_iconsdir/*/*/apps/amor.png
%doc %_docdir/HTML/en/amor
%_menudir/kdetoys-amor
%Kmenudir/amor.desktop

%files eyes
%_libdir/kde3/eyes_panelapplet.*
%_datadir/apps/kicker/applets/eyesapplet.desktop

%files fifteen
%_libdir/kde3/fifteen_panelapplet.*
%_datadir/apps/kicker/applets/kfifteenapplet.desktop

%files kmoon
%_libdir/kde3/kmoon_panelapplet.*
%_datadir/apps/kmoon
%_iconsdir/*/*/apps/kmoon.png
%_datadir/apps/kicker/applets/kmoonapplet.desktop
%doc %_docdir/HTML/en/kmoon/

%files kodo
%_bindir/kodo
%Kmenudir/kodo.desktop
%_datadir/apps/kodo
%_iconsdir/*/*/apps/kodo.png
%doc %_docdir/HTML/en/kodo/
%_menudir/kdetoys-kodo

%files kteatime
%_bindir/kteatime
%Kmenudir/kteatime.desktop
%_datadir/apps/kteatime
%doc %_docdir/HTML/en/kteatime/
%_iconsdir/*/*/apps/kteatime.png
%_menudir/kdetoys-kteatime

%files ktux
%_bindir/ktux
%Kapplnk/System/ScreenSavers/ktux.desktop
%_datadir/apps/ktux
%_iconsdir/*/*/apps/ktux.png
#%_menudir/kdetoys-ktux

%files kweather
%_bindir/kweatherservice
%_bindir/kweatherreport
%_libdir/libkdeinit_kweatherreport.so*
%_libdir/kde3/weather_panelapplet.*
%_libdir/kde3/kcm_weather.*
%_libdir/kde3/kcm_weatherservice.*
%_libdir/kde3/kweatherreport.*
%_datadir/apps/kicker/applets/kweather.desktop
%_datadir/apps/kweather
%_datadir/apps/kweatherservice
%_datadir/services/k*weather*.desktop
%_iconsdir/*/*/apps/kweather.png
%doc %_docdir/HTML/en/kweather/

%files kworldclock
%_bindir/kworldclock
%_libdir/kde3/ww_panelapplet.*
%Kmenudir/kworldclock.desktop
%_datadir/apps/kdesktop/programs/kdeworld.desktop
%_datadir/apps/kicker/applets/kwwapplet.desktop
%_datadir/apps/kworldclock
%_iconsdir/*/*/apps/kworldclock.png
%doc %_docdir/HTML/en/kworldclock/
%_menudir/kdetoys-kworldclock

%files devel
%_includedir/*.h

%changelog

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

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