Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37681945
en ru br
Репозитории ALT
S:3.4.2-alt1
5.1: 1.2.38pre1-alt1
4.1: 1.2.35-alt2.1
4.0: 1.2.32-alt2.1
3.0: 1.2.23-alt1
+backports:1.2.30-alt1.M30.1
www.altlinux.org/Changes

Группа :: Графические оболочки/Icewm
Пакет: icewm

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

# -*- mode: rpm-spec -*-
%def_with alsa
%def_with menu

Name: icewm
Version: 1.2.30
Release: alt1.M30.1

Summary: X11 Window Manager
Summary(ru_RU.KOI8-R): Оконный менеджер для X11
Group: Graphical desktop/Icewm
License: LGPL
Url: http://www.%name.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-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.30-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.29-icewmtray.patch

Patch34: %name-1.2.30-ru-po.patch

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

# Automatically added by buildreq on Wed Dec 14 2006

BuildRequires: xorg-x11-devel gcc-c++ imlib-devel libncurses-devel libreadline-devel xorg-x11-font-utils xorg-x11-utils fontconfig-devel freetype2-devel

BuildPreReq: desktop-file-utils
BuildPreReq: rpm-build-compat
%if_with alsa
BuildPreReq: libsndfile-devel libalsa-devel
%endif

%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-%name >= 1.0-alt2
PreReq: alternatives >= 0.2.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 .icewmtray

%patch34 -p1

%add_optflags %optflags_nocpp

%build
pushd po
%__rm -f ru.mo
msgfmt ru.po -o ru.mo
popd
%set_automake_version 1.9
./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


%if_with menu
%__mkdir_p %buildroot%_menudir
%__install -m 644 %SOURCE3 %buildroot%_menudir/%name
%endif
%__mkdir_p %buildroot%_sysconfdir/menu-methods
%__install -m 755 %SOURCE4 %buildroot%_sysconfdir/menu-methods/%name

%__install -pD -m644 %SOURCE5 %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE6 %buildroot%_niconsdir/%name.png
%__install -pD -m644 %SOURCE7 %buildroot%_liconsdir/%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} %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

%if_without menu
desktop-file-install --vendor alt --dir %buildroot%_desktopdir %SOURCE16
%endif

%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}hint
#%_x11libdir/X11/%name/isdn/*
%exclude %_x11dir/lib/X11/%name/icons/app*
%exclude %_x11dir/lib/X11/%name/icons/xterm*

%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
%_bindir/%name-light
%_bindir/%name-session
%_bindir/start%name
%_bindir/%{name}tray
%_bindir/%{name}bg
%dir %_x11dir/lib/X11/%name
%_x11dir/lib/X11/%name/mailbox
%dir %_sysconfdir/X11/%name
%ghost %config(noreplace) %_sysconfdir/X11/%name/menu
%config(noreplace) %_sysconfdir/X11/%name/preferences
%config(noreplace) %_sysconfdir/X11/%name/restart
%config(noreplace) %_sysconfdir/X11/%name/toolbar
%config(noreplace) %_sysconfdir/X11/%name/keys
%config(noreplace) %_sysconfdir/X11/%name/winoptions
%_x11dir/lib/X11/%name/taskbar
%_x11dir/lib/X11/%name/ledclock
%_x11dir/lib/X11/%name/icons/app*
%_x11dir/lib/X11/%name/icons/xterm*
#%_x11libdir/X11/%name/isdn/*
%if_with menu
%_menudir/*
%else
%_desktopdir/*
%endif
%_niconsdir/*.*
%_miconsdir/*
%_liconsdir/*

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin