]> git.pld-linux.org Git - packages/icewm.git/blob - icewm.spec
- up to 1.2.32 (hidding kopete window by clicking on tray icon now works ;)
[packages/icewm.git] / icewm.spec
1 #
2 # Conditional build:
3 %bcond_without  gradients       # disable gradients (implies with_antialiasing)
4 %bcond_without  antialiasing    # disable antialiasing
5 %bcond_without  freetype        # disable xfreetype support (implies !with_antialiasing)
6 %bcond_without  guievents       # disable guievents
7 %bcond_without  imlib           # disable imlib support
8 #
9 # TODO:
10 # - make a PLD-theme - default :]
11 # - -home_etc.patch needs update
12
13 Summary:        IceWM X11 Window Manager
14 Summary(es.UTF-8):      Administrador de Ventanas X11
15 Summary(pl.UTF-8):      IceWM - zarządca okienek X11
16 Summary(pt_BR.UTF-8):   Gerenciador de Janelas X11
17 Summary(ru.UTF-8):      Оконный менеджер для X11
18 Summary(uk.UTF-8):      Віконний менеджер для X11
19 Summary(de.UTF-8):      IceWM ist ein Window Manager für X
20 Name:           icewm
21 Version:        1.2.32
22 #%define _pre pre1
23 %define _iceicons_ver           0.6
24 %define _netscapeicons_ver      0.2
25 Release:        1
26 Epoch:          2
27 License:        LGPL
28 Group:          X11/Window Managers
29 #Source0:       http://dl.sourceforge.net/icewm/%{name}-%{version}%{_pre}.tar.gz
30 Source0:        http://dl.sourceforge.net/icewm/%{name}-%{version}.tar.gz
31 # Source0-md5:  49084971689c04b739766a3f5d576d83
32 Source1:        IceWM.desktop
33 Source3:        http://dl.sourceforge.net/icewm/iceicons-%{_iceicons_ver}.tar.gz
34 # Source3-md5:  53ed111a3c4d1e609bd1604ddccd4701
35 Source4:        IceWM.RunWM
36 Source6:        http://dl.sourceforge.net/icewm/netscapeicons-%{_netscapeicons_ver}.tar.gz
37 # Source6-md5:  409aa9b02adc11309ed546c5120c01d2
38 Source7:        %{name}-xsession.desktop
39 Patch0:         %{name}-broken-xrandr.patch
40 #Patch1:                %{name}-home_etc.patch
41 Patch2:         %{name}-helpbrowser.patch
42 URL:            http://www.icewm.org/
43 BuildRequires:  xorg-lib-libX11-devel
44 BuildRequires:  autoconf >= 2.50
45 BuildRequires:  automake
46 %{?with_guievents:BuildRequires:        esound-devel}
47 BuildRequires:  gettext-devel
48 %{?with_imlib:BuildRequires:    imlib-devel}
49 BuildRequires:  libstdc++-devel
50 #%:wq
51 %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1}
52 %{?with_guievents:BuildRequires:        yiff-devel}
53 Requires(pre):  fileutils
54 Requires(pre):  sh-utils
55 Requires:       vfmg >= 0.9.95
56 Requires:       xinitrc-ng
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %define         _wmstyledir     /etc/sysconfig/wmstyle
60 %define         _wmpropsdir     /usr/share/wm-properties
61 %define         specflags_ia32   -fomit-frame-pointer
62
63 %description
64 Window Manager for X Window System. Can emulate the look of
65 Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of
66 the above systems. Features multiple workspaces, opaque move/resize,
67 task bar, window list, mailbox status, digital clock. Fast and small.
68
69 %description -l es.UTF-8
70 Administrador de Ventanas para el X Window. Puede emular la apariencia
71 del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores
72 características de los sistemas citados. Características: varios
73 ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de
74 tareas, lista de ventanas, estado de la caja de entrada del correo y
75 reloj digital. Rápido y pequeño.
76
77 %description -l pl.UTF-8
78 Zarządca okienek pod X11. Może emulować wygląd Windows'95, OS/2 Warp
79 3, 4, MWM. Zarządca ten próbuje przejąć z powyższych środowisk ich
80 najlepsze cechy, takie jak: wiele jednocześnie obecnych przestrzeni
81 roboczych, paski narzędziowe, status skrzynki z pocztą, cyfrowy zegar.
82 Jest przy tym mały i szybki.
83
84 %description -l pt_BR.UTF-8
85 Gerenciador de Janelas para o X Window. Pode emular a aparência do
86 Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores
87 características dos sistemas citados. Características: vários
88 ambientes de trabalho, movimentação/ redimensionamento opaco, barra de
89 tarefas, lista de janelas, status da caixa de entrada do correio e
90 relógio digital. É rápido e pequeno.
91
92 %description -l ru.UTF-8
93 Оконный менеджер для X Window System. Может эмулировать внешний вид
94 Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых
95 систем. Поддерживает несколько рабочих поверхностей, непрозрачное
96 перемещение окон, полоску заданий, список окон, статус почтового
97 ящика, цифровые часы. Быстрый и компактный.
98
99 %description -l uk.UTF-8
100 Віконний менеджер для X Window System. Може емулювати зовнішній вигляд
101 Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із
102 згаданих систем. Підтримує кілька робочих площин, непрозоре
103 переміщення вікон, смужку завдань, список вікон, стан поштової
104 скриньки, цифровий годинник. Швидкий та компактний.
105
106 %description -l de.UTF-8
107 IceWM ist ein in C++ programmierter, unter GPL stehender
108 Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist
109 Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit.
110
111 In der Standardeinstellung erinnert das Design von IceWM stark an
112 Microsoft Windows: Er verfügt über eine Taskleiste am unteren
113 Bildrand, das aktive Fenster lässt sich mit der Tastenkombination
114 ALT-TAB wechseln, etc.
115
116 %package themes-base
117 Summary:        Pack of themes for IceWM
118 Summary(pl.UTF-8):      Zestaw motywów dla IceWM-a
119 Group:          Themes
120 Requires:       icewm
121
122 %description themes-base
123 Standard pack of themes delivered with IceWM. All of them made by
124 Marko Macek: gtk2, metal2, motif, nice, nice2, warp3, warp4, win95.
125
126 %description themes-base -l pl.UTF-8
127 Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim.
128 Wszystkie stworzone przez Marko Macka: gtk2, metal2, motif, nice,
129 nice2, warp3, warp4, win95.
130
131 %prep
132 #setup -q -n %{name}-%{version}%{_pre}
133 %setup -q
134 %patch0 -p1
135 #patch1 -p1
136 #patch2 -p1
137
138 mv -f po/{zh_TW.Big5,zh_TW}.po
139
140 cd lib/icons
141 tar -xzf %{SOURCE3}
142 tar -xzf %{SOURCE6}
143
144 %build
145 cp -f /usr/share/automake/config.sub .
146 %{__aclocal}
147 %{__autoconf}
148 %{__autoheader}
149 %configure \
150         %{?with_gradients:--enable-gradients} \
151         %{?with_antialiasing:--enable-antialiasing} \
152         %{!?with_freetype:--disable-xfreetype --enable-corefonts} \
153         %{?with_guievents:--enable-guievents} \
154         %{!?with_imlib:--without-imlib} \
155         --disable-menus-gnome \
156         --enable-shaped-decorations \
157         --with-cfgdir=%{_sysconfdir}/X11/%{name} \
158         --with-docdir=%{_docdir}
159 %{__make}
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmstyledir}} \
164         $RPM_BUILD_ROOT{%{_wmpropsdir},%{_sysconfdir}/X11/%{name}}
165
166 %{__make} install \
167         DESTDIR=$RPM_BUILD_ROOT
168
169 install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
170 install %{SOURCE4} $RPM_BUILD_ROOT%{_wmstyledir}/%{name}-session.sh
171 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
172 install lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys
173 sed 's|^# IconPath=""|IconPath="%{_datadir}/pixmaps:%{_datadir}/icons"|' < lib/preferences > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/preferences
174 install lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar
175 install lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions
176 echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup
177 :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart
178
179 ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm
180
181 echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu
182
183 %find_lang %{name}
184
185 %clean
186 rm -rf $RPM_BUILD_ROOT
187
188 %pre
189 test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm
190
191 %files -f %{name}.lang
192 %defattr(644,root,root,755)
193 %doc AUTHORS BUGS CHANGES PLATFORMS README* TODO icewm.lsm doc/*.html
194 %attr(755,root,root) %{_bindir}/*
195 %dir %{_sysconfdir}/X11/%{name}
196 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/[!rs]*
197 %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/[rs]*
198 %{_pixmapsdir}/icewm
199 %dir %{_datadir}/icewm
200 %{_datadir}/icewm/icons
201 %{_datadir}/icewm/ledclock
202 %{_datadir}/icewm/mailbox
203 %{_datadir}/icewm/taskbar
204 %dir %{_datadir}/icewm/themes
205 %{_datadir}/icewm/themes/Infadel2
206 %{_datadir}/icewm/themes/icedesert
207 %{_datadir}/xsessions/%{name}.desktop
208 %{_wmpropsdir}/*
209 %attr(755,root,root) %{_wmstyledir}/%{name}-session.sh
210
211 %files themes-base
212 %defattr(644,root,root,755)
213 %{_datadir}/icewm/themes/gtk2
214 %{_datadir}/icewm/themes/metal2
215 %{_datadir}/icewm/themes/motif
216 %{_datadir}/icewm/themes/nice
217 %{_datadir}/icewm/themes/nice2
218 %{_datadir}/icewm/themes/warp3
219 %{_datadir}/icewm/themes/warp4
220 %{_datadir}/icewm/themes/win95
221 %{_datadir}/icewm/themes/yellowmotif
This page took 0.054854 seconds and 4 git commands to generate.