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

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

# -*- mode: rpm-spec -*-

%def_with alsa

Name: icewm
Version: 1.2.28
Release: alt3.M24.1

Summary: X11 Window Manager
Summary(ru_RU.KOI8-R): Оконный менеджер для X11
Group: Graphical desktop/Icewm
License: LGPL
Url: http://www.icewm.org/

Source: http://download.sourceforge.net/%name/%name-%version.tar.gz
#Source2: themes.tar.bz2
Source3: %name.menu
Source4: %name.menu-method
Source5: %name-16.png
Source6: %name-32.png
Source7: %name-48.png
Source8: start%name
Source9: %name-toolbar
Source10: %name-winoptions
Source11: IceWM.xpm
Source12: %name.wmsession
Source13: %name.alternatives
Source14: README.pager
Source15: README.ALT
Source16: %name.desktop
Source17: restart

Patch0: %name-1.2.0-altconf.patch
Patch3: %name.env-var-in-menu-prog-line.patch
Patch8: %name-1.0.4-cpp-include.patch
Patch9: %name-1.0.4-fonts.patch
#Patch10: %name-defconf.patch
Patch10: %name-1.2.28-defconf.patch
Patch11: %name-1.2.5-lib64.patch
Patch12: %name-1.2.0pre1-libsupc++.patch
Patch15: %name-lock-icons.patch
Patch17: %name-alt-hist.patch
Patch18: %name-1.2.14-misc.patch
Patch19: %name-1.2.13-readline-fix.patch
Patch20: %name-1.2.23-reboot.patch
Patch21: %name-1.2.25-aworkspaces-1.4.1.patch
Patch22: %name-1.2.27-restart_script.patch
Patch23: %name-1.2.23-logouticon.patch
Patch24: %name-amailbox.patch
%if_with alsa
Patch25: %name-1.2.23-alsa.patch
%endif
Patch26: %name-1.2.28-task_bar_length.patch

Patch27: %name-multiByte.patch
Patch28: %name-LANG.menu.patch

Patch30: themes.patch
Patch31: themable_taskWidth_taskButtons_atrayPix_1.2.27.diff

Patch32: %name-1.2-qt4.2_app_fix_segfault.patch

PreReq: alternatives >= 0.1.0
PreReq: %name-light = %version-%release


BuildPreReq: rpm-build-compat

%if_with alsa
BuildPreReq: libsndfile-devel libalsa-devel
%endif

# Automatically added by buildreq on Mon Nov 13 2006

BuildRequires: XFree86-devel XFree86-utils fontconfig-devel freetype2-devel gcc-c++ hostinfo imlib-devel libalternatives-devel libstdc++-devel libreadline-devel libncurses-devel

%description
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

Recommends: iftop, mutt
%description -l ru_RU.KOI8-R
Оконный менеджер для системы X Window. Может эмулировать внешний вид
Windows , OS/2 Warp 3,4, Motif и другие. Включает в себя все лучшие возможности
из различных систем. Очень маленьнкий и очень быстрый.

Рекомендуется: iftop, mutt
%package light
Summary: A light version of Icewm
Summary(ru_RU.KOI8-R): Облегченная версия IceWM.
Group: Graphical desktop/Icewm
Requires: design-graphics design-icewm >= 1.0-alt2
PreReq: alternatives >= 0.1.0

%description light
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

Recommends: iftop, mutt
%description light -l ru_RU.KOI8-R
Оконный менеджер для системы X Window. Может эмулировать внешний вид
Windows , OS/2 Warp 3,4, Motif и другие. Включает в себя все лучшие возможности
из различных систем. Очень маленьнкий и очень быстрый.
Облегченная версия не содержит в себе панели задач.

Рекомендуется: iftop, mutt
%prep
%setup -q

%patch0 -p1
%patch3 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1 -b .default
%patch11 -p1
%patch12 -p1
%patch15 -p1
%patch17 -p0
%patch18 -p1 -b .misc
%patch19 -p1
%patch20 -p1
%patch21 -p0
%patch22 -p1 -b .restart_script
%patch23 -p1 -b .logouticon
%patch24 -p0 -b .amailbox
%if_with alsa
%patch25 -p1 -b .alsa
%endif
%patch26 -p1 -b .task_bar

%patch27 -p0
%patch28 -p1

%patch30 -p1 -b themes
%patch31 -p1 -b lxp

%patch32 -p1 -b qt4

%add_optflags %optflags_nocpp

%build
pushd po
%__rm -f ru.mo
msgfmt ru.po -o ru.mo
popd
./autogen.sh
%configure \
--sysconfdir=%_sysconfdir/X11 \
--without-debug \
--without-gnome-menus \
--with-imlib=%_bindir \
--with-cfgdir=%_sysconfdir/X11/%name \
--with-libdir=%_x11dir/lib/X11/%name \
--enable-i18n \
--enable-corefonts \
--disable-antialiasing \
--without-readline \
--disable-winmenu \
--disable-xinerama \
--enable-corefonts \
--disable-shaped-decorations \
--disable-xfreetype \
--disable-antialiasing
%make_build
%__mv src/%name src/%name-light

%__make distclean

%configure \
--sysconfdir=%_sysconfdir/X11 \
--with-imlib=%_bindir \
--without-debug \
--with-libdir=%_x11dir/lib/X11/%name \
--enable-nls \
--enable-i18n \
--without-gnome-menus \
--enable-shaped-decorations \
--enable-gradients \
--enable-movesize-fx \
--enable-antialiasing \
--enable-xfreetype \
--enable-guievents \
--enable-gradients \
--with-cfgdir=%_sysconfdir/X11/%name \
--enable-movesize-fx \
--with-icesound=oss \
--enable-wm-session \
--enable-xinerama \
--with-readline

touch src/Makefile
%make_build
%if_with alsa
%__rm src/icesound src/icesound.o
%make_build -C src icesound DEBUG="-DENABLE_ALSA" AUDIO_LIBS="-lasound -lsndfile"
%endif
%__cp -p src/%name src/%name-full

%install

%make_install \
BINDIR=%buildroot%_bindir \
       LIBDIR=%buildroot%_x11dir/lib/X11/%name \
       ETCDIR=%buildroot%_sysconfdir/X11/%name \
       DOCDIR=%buildroot%_docdir \
LOCDIR=%buildroot%_datadir/locale \
install

%__rm -f %buildroot%_bindir/%name
%__install src/%name-light %buildroot%_bindir/
%__install src/%name-full %buildroot%_bindir/

#mkdir -p %buildroot%_libdir/X11/%name


%__mkdir -p %buildroot%_sysconfdir/menu-methods %buildroot%_menudir
%__install -m 644 %SOURCE3 %buildroot%_menudir/%name
%__install -m 755 %SOURCE4 %buildroot%_sysconfdir/menu-methods/%name

%__install -pD -m644 %SOURCE5 %buildroot%_iconsdir/mini/%name.png
%__install -pD -m644 %SOURCE6 %buildroot%_iconsdir/%name.png
%__install -pD -m644 %SOURCE7 %buildroot%_iconsdir/large/%name.png
%__install -p -m644 %SOURCE11 %buildroot%_iconsdir/
%__install -pD -m644 %SOURCE12 %buildroot%_sysconfdir/X11/wmsession.d/04IceWM
%__install -pD -m644 %SOURCE13 %buildroot%_altdir/%name
%__install -m 644 %SOURCE14 doc/README.pager
%__install -m 644 %SOURCE15 doc/README.ALT

(cd %buildroot%prefix ; find share/X11/%name/icons ! -type d -printf "%prefix/%%p\n") > other.list
(cd %buildroot%prefix ; find share/X11/%name/icons   -type d -printf "%%%%dir %prefix/%%p\n") >> other.list

%__mkdir -p %buildroot%_sysconfdir/X11/%name

%__mv %buildroot%_x11dir/lib/X11/%name/{menu,preferences,keys,toolbar,winoptions} %buildroot%_sysconfdir/X11/%name/

%__install -m 755 %SOURCE8 %buildroot%_bindir/start%name
%__install -m 644 %SOURCE9 %buildroot%_sysconfdir/X11/%name/toolbar
%__install -m 644 %SOURCE10 %buildroot%_sysconfdir/X11/%name/winoptions
%__install -m 755 %SOURCE17 %buildroot%_sysconfdir/X11/%name/restart

# .desktop file currently broken

#desktop-file-install --vendor alt --dir %buildroot%_desktopdir %SOURCE16

%find_lang  %name

%post light
%register_alternatives %name -- %name
%update_menus
%update_wms

%triggerpostun light -- %name < 1.0.9-alt15
%register_alternatives %name -- %name

%preun light
%unregister_alternatives %name

%postun light
%clean_menus
%clean_wms

%post
%update_alternatives

%preun
%remove_alternatives %_bindir/%name-full


%files -f other.list
%_bindir/%name-full
%_bindir/icesound
%_bindir/icesh
%_bindir/icehelp
%_bindir/%{name}bg
%_bindir/%{name}hint
#%_x11libdir/X11/%name/isdn/*
%doc README CHANGES TODO BUGS AUTHORS %name.lsm  doc/*.html doc/%name.sgml doc/README*

%files light -f %name.lang
%config(noreplace) %_sysconfdir/menu-methods/*
%_sysconfdir/X11/wmsession.d/*
%_altdir/%name
#%dir %_sysconfdir/X11/%name
%_bindir/%name-light
%_bindir/%name-session
%_bindir/start%name
%_bindir/%{name}tray
%dir %_x11dir/lib/X11/%name
%_x11dir/lib/X11/%name/mailbox
%_sysconfdir/X11/%name/menu
%_sysconfdir/X11/%name/preferences
%_sysconfdir/X11/%name/restart
%_x11dir/lib/X11/%name/taskbar
%config(noreplace) %_sysconfdir/X11/%name/toolbar
%config(noreplace) %_sysconfdir/X11/%name/keys
%config(noreplace) %_sysconfdir/X11/%name/winoptions
%_x11dir/lib/X11/%name/ledclock
%_x11dir/lib/X11/%name/icons/app*
%_x11dir/lib/X11/%name/icons/xterm*
#%_x11libdir/X11/%name/isdn/*
%_menudir/*
#%_desktopdir/*
%_iconsdir/mini/*
%_iconsdir/large/*
%_iconsdir/*.*

%changelog

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

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