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