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