]> git.pld-linux.org Git - packages/icewm.git/blame - icewm.spec
- remove duplicate locale (no -> nb)
[packages/icewm.git] / icewm.spec
CommitLineData
25f07c49
JB
1# TODO:
2# - make a PLD-theme - default :]
c3c05e60 3#
747634b9 4# Conditional build:
efc175b0
JB
5%bcond_without gradients # gradients (requires antialiasing which requires freetype)
6%bcond_without freetype # xfreetype support (implies no antialiasing)
25f07c49
JB
7%bcond_without guievents # GUI events
8%bcond_without alsa # ALSA sound for GUI events
9%bcond_with esd # EsounD sound for GUI events
10%bcond_without yiff # YIFF sound for GUI events
11%bcond_with gnome2 # support for GNOME2 menus and wm-properties
f1701bad 12
25f07c49
JB
13%if %{without guievents}
14%undefine with_alsa
15%undefine with_esd
16%undefine with_yiff
17%endif
5450fc43 18Summary: IceWM X11 Window Manager
6497299f 19Summary(de.UTF-8): IceWM ist ein Window Manager für X
e71b1c56
ER
20Summary(es.UTF-8): Administrador de Ventanas X11
21Summary(pl.UTF-8): IceWM - zarządca okienek X11
22Summary(pt_BR.UTF-8): Gerenciador de Janelas X11
23Summary(ru.UTF-8): Оконный менеджер для X11
24Summary(uk.UTF-8): Віконний менеджер для X11
5450fc43 25Name: icewm
4ce4af62 26Version: 1.4.2
efc175b0 27%define iceicons_ver 0.6
8852bbec 28Release: 2
1e98fedb 29Epoch: 2
efc175b0 30License: LGPL v2
5450fc43 31Group: X11/Window Managers
25f07c49
JB
32#Source0Download: https://github.com/ice-wm/icewm/releases
33Source0: https://github.com/ice-wm/icewm/archive/%{version}/%{name}-%{version}.tar.gz
4ce4af62 34# Source0-md5: db9900056366adc163b2e501a5247bbc
0c3991fa 35Source1: IceWM.desktop
efc175b0 36Source3: http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz
a5b4d509 37# Source3-md5: 53ed111a3c4d1e609bd1604ddccd4701
2e7a9eeb 38Source4: icewm-startup.sh
4037b355 39Patch0: %{name}-build-fixes.patch
efc175b0 40URL: https://ice-wm.org/
25f07c49 41%{?with_alsa:BuildRequires: alsa-lib-devel}
4ce4af62 42BuildRequires: asciidoc
25f07c49 43BuildRequires: autoconf >= 2.69
4ce4af62 44BuildRequires: automake >= 1:1.13.4
25f07c49
JB
45%{?with_esd:BuildRequires: esound-devel}
46BuildRequires: fontconfig-devel
47BuildRequires: fribidi-devel >= 0.10.4
efc175b0 48BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0
25f07c49
JB
49BuildRequires: gettext-tools >= 0.19.6
50BuildRequires: glib2-devel >= 2.0
51%{?with_gnome2:BuildRequires: gnome-desktop2-devel >= 2.0}
52%{?with_gnome2:BuildRequires: gnome-vfs2-devel >= 2.0}
53%{?with_gnome2:BuildRequires: libgnomeui-devel >= 2.0}
54%{?with_alsa:BuildRequires: libsndfile-devel}
ad3dbd79 55BuildRequires: libstdc++-devel
25f07c49 56BuildRequires: libtool >= 2:2.4.2
6497299f 57BuildRequires: pkgconfig
25f07c49 58BuildRequires: sed >= 4.0
6497299f 59BuildRequires: xorg-lib-libICE-devel
60BuildRequires: xorg-lib-libSM-devel
61BuildRequires: xorg-lib-libX11-devel
efc175b0 62BuildRequires: xorg-lib-libXext-devel
6e664482 63%{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1}
6497299f 64BuildRequires: xorg-lib-libXinerama-devel
efc175b0 65BuildRequires: xorg-lib-libXrandr-devel
25f07c49 66%{?with_yiff:BuildRequires: yiff-devel >= 2.14.7-3}
efc175b0
JB
67Requires(pre): /bin/rm
68Requires(pre): /usr/bin/test
6e420e6f 69Requires: shared-mime-info
6e664482 70Requires: xinitrc-ng
adf9ec40 71Suggests: vfmg >= 0.9.95
493ede44 72Conflicts: filesystem < 3.0-20
6d982d2b 73BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ae00d23e 74
493ede44 75%define _wmpropsdir /usr/share/gnome/wm-properties
adf9ec40 76%define specflags_ia32 -fomit-frame-pointer
4b050385 77
ae00d23e 78%description
1a5be8e2 79Window Manager for X Window System. Can emulate the look of
80Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of
81the above systems. Features multiple workspaces, opaque move/resize,
82task bar, window list, mailbox status, digital clock. Fast and small.
ae00d23e 83
4c581f51 84%description -l es.UTF-8
ddb1aa5d 85Administrador de Ventanas para el X Window. Puede emular la apariencia
86del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores
4c581f51 87características de los sistemas citados. Características: varios
ddb1aa5d 88ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de
89tareas, lista de ventanas, estado de la caja de entrada del correo y
4c581f51 90reloj digital. Rápido y pequeño.
ddb1aa5d 91
4c581f51
JR
92%description -l pl.UTF-8
93Zarządca okienek pod X11. Może emulować wygląd Windows'95, OS/2 Warp
943, 4, MWM. Zarządca ten próbuje przejąć z powyższych środowisk ich
95najlepsze cechy, takie jak: wiele jednocześnie obecnych przestrzeni
96roboczych, paski narzędziowe, status skrzynki z pocztą, cyfrowy zegar.
97Jest przy tym mały i szybki.
ae00d23e 98
4c581f51
JR
99%description -l pt_BR.UTF-8
100Gerenciador de Janelas para o X Window. Pode emular a aparência do
ddb1aa5d 101Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores
4c581f51
JR
102características dos sistemas citados. Características: vários
103ambientes de trabalho, movimentação/ redimensionamento opaco, barra de
ddb1aa5d 104tarefas, lista de janelas, status da caixa de entrada do correio e
4c581f51 105relógio digital. É rápido e pequeno.
ddb1aa5d 106
4c581f51
JR
107%description -l ru.UTF-8
108Оконный менеджер для X Window System. Может эмулировать внешний вид
109Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых
110систем. Поддерживает несколько рабочих поверхностей, непрозрачное
111перемещение окон, полоску заданий, список окон, статус почтового
112ящика, цифровые часы. Быстрый и компактный.
ddb1aa5d 113
4c581f51
JR
114%description -l uk.UTF-8
115Віконний менеджер для X Window System. Може емулювати зовнішній вигляд
116Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із
117згаданих систем. Підтримує кілька робочих площин, непрозоре
118переміщення вікон, смужку завдань, список вікон, стан поштової
119скриньки, цифровий годинник. Швидкий та компактний.
ddb1aa5d 120
4c581f51 121%description -l de.UTF-8
1dc87219 122IceWM ist ein in C++ programmierter, unter GPL stehender
4c581f51 123Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist
1dc87219 124Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit.
125
126In der Standardeinstellung erinnert das Design von IceWM stark an
4c581f51
JR
127Microsoft Windows: Er verfügt über eine Taskleiste am unteren
128Bildrand, das aktive Fenster lässt sich mit der Tastenkombination
1dc87219 129ALT-TAB wechseln, etc.
130
66cf1d33 131%package themes-base
215be0a2 132Summary: Pack of themes for IceWM
e71b1c56 133Summary(pl.UTF-8): Zestaw motywów dla IceWM-a
1de8817c 134Group: Themes
1de8817c
PG
135Requires: icewm
136
66cf1d33 137%description themes-base
4ce4af62
JB
138Standard pack of themes delivered with IceWM:
139- CrystalBlue by BlueScorpio
140- Helix by RudeSka and TigerT
141- NanoBlue by lion1810
142- metal2, motif, win32 by Marko Macek
143
144This package contains also old themes, no longer installed by default
145in IceWM 1.4:
146- gtk2, nice, nice2, warp3, warp4 by Marko Macek
147- yellowmotif by Andreas Leitgeb
1de8817c 148
4c581f51 149%description themes-base -l pl.UTF-8
4ce4af62
JB
150Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim:
151- CrystalBlue autorstwa BlueScorpio
152- Helix autorstwa RudeSka i TigerT
153- NanoBlue autorstwa lion1810
154- metal2, motif, win32 autorstwa Marko Macka
155
156Pakiet zawiera także stare motywy, nie instalowane domyślnie wraz z
157IceWM-em 1.4:
158- gtk2, nice, nice2, warp3, warp4 autorstwa Marko Macka
159- yellowmotif autorstwa Andreasa Leitgeba
1de8817c 160
e3ce326c 161%prep
8210023f 162%setup -q
d7fd3e93 163%patch0 -p1
a57c0865 164
25f07c49 165tar -xzf %{SOURCE3} -C lib/icons
efc175b0 166
25f07c49 167%{__sed} -i -e '/po\/Makefile.in/d' configure.ac
88a00d08 168
ae00d23e 169%build
25f07c49
JB
170%{__gettextize}
171%{__libtoolize}
172%{__aclocal} -I m4
f1701bad 173%{__autoconf}
bee131a8 174%{__autoheader}
25f07c49 175%{__automake}
9c2161ab 176%configure \
4ce4af62 177 ASCIIDOC=/usr/bin/asciidoc \
7b9b8cad 178 %{!?with_gradients:--disable-gradients} \
25f07c49
JB
179 %{?with_guievents:--enable-guievents --with-icesound=%{?with_alsa:ALSA,}OSS%{?with_yiff:,Y}%{?with_esd:,ESound}} \
180 %{!?with_gnome2:--disable-menus-gnome2} \
a0563aeb 181 --enable-shaped-decorations \
efc175b0 182 %{!?with_freetype:--disable-xfreetype --enable-corefonts} \
d6cdaeb0 183 --with-cfgdir=%{_sysconfdir}/X11/%{name} \
6e364d8f 184 --with-docdir=%{_docdir}
3bac607c 185%{__make}
ae00d23e 186
187%install
4d5a15a4 188rm -rf $RPM_BUILD_ROOT
25f07c49 189install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_wmpropsdir},%{_sysconfdir}/X11/%{name}}
0c3991fa 190
6166ac1f
JB
191%{__make} install \
192 DESTDIR=$RPM_BUILD_ROOT
ae00d23e 193
25f07c49
JB
194%{__sed} -e 's|^# IconPath=""|IconPath="%{_datadir}/pixmaps:%{_datadir}/icons"|' -i $RPM_BUILD_ROOT%{_datadir}/icewm/preferences
195
196# packaged as %doc
197%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/icewm
198
efc175b0
JB
199%{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
200cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup
efc175b0 201cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys
efc175b0
JB
202cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar
203cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions
87dff741
TP
204echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup
205:> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart
3c3df5cc 206
ad3dbd79 207ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm
3ad3dd29 208
6e664482 209echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu
f358545f 210
4ce4af62
JB
211# old themes, no longer installed
212cp -pr lib/themes/{gtk2,nice,nice2,warp3,warp4,yellowmotif} $RPM_BUILD_ROOT%{_datadir}/icewm/themes
213
8852bbec
JR
214# duplicate locale
215%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
216
6e364d8f 217%find_lang %{name}
cdb55b8b 218
ae00d23e 219%clean
4d5a15a4 220rm -rf $RPM_BUILD_ROOT
ae00d23e 221
afc8af6e 222%pre
4af6cac8 223test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm
afc8af6e 224
cdb55b8b 225%files -f %{name}.lang
5450fc43 226%defattr(644,root,root,755)
4ce4af62 227%doc AUTHORS BUGS CHANGES ChangeLog NEWS PLATFORMS README.md THANKS TODO doc/*.html
efc175b0
JB
228%attr(755,root,root) %{_bindir}/icehelp
229%attr(755,root,root) %{_bindir}/icesh
230%if %{with guievents}
231%attr(755,root,root) %{_bindir}/icesound
232%endif
233%attr(755,root,root) %{_bindir}/icewm
25f07c49 234%attr(755,root,root) %{_bindir}/icewm-menu-fdo
efc175b0
JB
235%attr(755,root,root) %{_bindir}/icewm-session
236%attr(755,root,root) %{_bindir}/icewm-set-gnomewm
237%attr(755,root,root) %{_bindir}/icewmbg
238%attr(755,root,root) %{_bindir}/icewmhint
239%attr(755,root,root) %{_bindir}/icewmtray
d6cdaeb0 240%dir %{_sysconfdir}/X11/%{name}
efc175b0
JB
241%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/keys
242%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/menu
efc175b0
JB
243%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/toolbar
244%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/winoptions
245%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/restart
246%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/startup
95624d68 247%{_pixmapsdir}/icewm
ad3dbd79
TP
248%dir %{_datadir}/icewm
249%{_datadir}/icewm/icons
efc175b0
JB
250%{_datadir}/icewm/keys
251%{_datadir}/icewm/menu
ad3dbd79
TP
252%{_datadir}/icewm/ledclock
253%{_datadir}/icewm/mailbox
efc175b0 254%{_datadir}/icewm/preferences
25f07c49 255%{_datadir}/icewm/programs
2e7a9eeb 256%attr(755,root,root) %{_datadir}/icewm/startup
efc175b0 257%{_datadir}/icewm/toolbar
ad3dbd79 258%{_datadir}/icewm/taskbar
efc175b0 259%{_datadir}/icewm/winoptions
ad3dbd79
TP
260%dir %{_datadir}/icewm/themes
261%{_datadir}/icewm/themes/Infadel2
4ce4af62 262%{_datadir}/icewm/themes/default
10c19d56 263%{_datadir}/icewm/themes/icedesert
efc175b0 264%{_datadir}/xsessions/icewm.desktop
25f07c49 265%{_datadir}/xsessions/icewm-session.desktop
efc175b0 266%{?with_gnome2:%{_wmpropsdir}/IceWM.desktop}
25f07c49 267%{_mandir}/man1/icewm.1*
1de8817c 268
66cf1d33 269%files themes-base
c0e8bfc7 270%defattr(644,root,root,755)
4ce4af62
JB
271%{_datadir}/icewm/themes/CrystalBlue
272%{_datadir}/icewm/themes/Helix
273%{_datadir}/icewm/themes/NanoBlue
ad3dbd79
TP
274%{_datadir}/icewm/themes/metal2
275%{_datadir}/icewm/themes/motif
4ce4af62
JB
276%{_datadir}/icewm/themes/win95
277# old themes, no longer installed in 1.4.x
278%{_datadir}/icewm/themes/gtk2
ad3dbd79
TP
279%{_datadir}/icewm/themes/nice
280%{_datadir}/icewm/themes/nice2
281%{_datadir}/icewm/themes/warp3
282%{_datadir}/icewm/themes/warp4
61d539bc 283%{_datadir}/icewm/themes/yellowmotif
This page took 0.112584 seconds and 4 git commands to generate.