]> git.pld-linux.org Git - packages/icewm.git/blob - icewm.spec
- added icewm-helpbrowser.patch - help browser now usable
[packages/icewm.git] / icewm.spec
1 #
2 # Conditional build:
3 %bcond_with     gradients       # enable 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 #
12
13 Summary:        IceWM X11 Window Manager
14 Summary(es):    Administrador de Ventanas X11
15 Summary(pl):    IceWM - zarz±dca okienek X11
16 Summary(pt_BR): Gerenciador de Janelas X11
17 Summary(ru):    ïËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
18 Summary(uk):    ÷¦ËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
19 Name:           icewm
20 Version:        1.2.15
21 %define _pre pre1
22 Release:        1.%{_pre}.4
23 Epoch:          2
24 License:        LGPL
25 Group:          X11/Window Managers
26 Source0:        http://dl.sourceforge.net/icewm/%{name}-%{version}%{_pre}.tar.gz
27 # Source0-md5:  833578c36a47c70531f6c17f947d678d
28 Source1:        IceWM.desktop
29 Source3:        http://dl.sourceforge.net/icewm/iceicons-0.6.tar.gz
30 # Source3-md5:  53ed111a3c4d1e609bd1604ddccd4701
31 Source4:        IceWM.RunWM
32 Source6:        http://dl.sourceforge.net/icewm/netscapeicons-0.2.tar.gz
33 # Source6-md5:  409aa9b02adc11309ed546c5120c01d2
34 Source7:        %{name}-xsession.desktop
35 Patch0:         %{name}-broken-xrandr.patch
36 Patch1:         %{name}-home_etc.patch
37 Patch2:         %{name}-link_with_g++.patch
38 Patch3:         %{name}-showdesktopkey.patch
39 Patch4:         %{name}-gcc34.patch
40 Patch5:         %{name}-helpbrowser.patch
41 URL:            http://www.icewm.org/
42 BuildRequires:  XFree86-devel
43 BuildRequires:  autoconf >= 2.50
44 BuildRequires:  automake
45 %{?with_guievents:BuildRequires:        esound-devel}
46 BuildRequires:  gettext-devel
47 %{?with_gnome:BuildRequires:    gnome-desktop-devel}
48 %{?with_imlib:BuildRequires:    imlib-devel}
49 BuildRequires:  libstdc++-devel
50 %{?with_freetype:BuildRequires: xft-devel >= 2.1}
51 BuildRequires:  yiff-devel
52 Requires(pre):  fileutils
53 Requires(pre):  sh-utils
54 Requires:       vfmg
55 Requires:       xinitrc-ng
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %define         _wmstyledir     /etc/sysconfig/wmstyle
59 %define         _wmpropsdir     /usr/share/wm-properties
60 %define         specflags_ia32   -fomit-frame-pointer 
61
62 %description
63 Window Manager for X Window System. Can emulate the look of
64 Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of
65 the above systems. Features multiple workspaces, opaque move/resize,
66 task bar, window list, mailbox status, digital clock. Fast and small.
67
68 %description -l es
69 Administrador de Ventanas para el X Window. Puede emular la apariencia
70 del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores
71 características de los sistemas citados. Características: varios
72 ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de
73 tareas, lista de ventanas, estado de la caja de entrada del correo y
74 reloj digital. Rápido y pequeño.
75
76 %description -l pl
77 Zarz±dca okienek pod X11. Mo¿e emulowaæ wygl±d Windows'95, OS/2 Warp
78 3, 4, MWM. Zarz±dca ten próbuje przej±æ z powy¿szych ¶rodowisk ich
79 najlepsze cechy, takie jak: wiele jednocze¶nie obecnych przestrzeni
80 roboczych, paski narzêdziowe, status skrzynki z poczt±, cyfrowy zegar.
81 Jest przy tym ma³y i szybki.
82
83 %description -l pt_BR
84 Gerenciador de Janelas para o X Window. Pode emular a aparência do
85 Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores
86 características dos sistemas citados. Características: vários
87 ambientes de trabalho, movimentação/ redimensionamento opaco, barra de
88 tarefas, lista de janelas, status da caixa de entrada do correio e
89 relógio digital. É rápido e pequeno.
90
91 %description -l ru
92 ïËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X Window System. íÏÖÅÔ ÜÍÕÌÉÒÏ×ÁÔØ ×ÎÅÛÎÉÊ ×ÉÄ
93 Windows'95, OS/2 Warp 3,4, Motif. óÔÁÒÁÅÔÓÑ ×ÚÑÔØ ÌÕÞÛÅÅ ÉÚ ÕÐÏÍÑÎÕÔÙÈ
94 ÓÉÓÔÅÍ. ðÏÄÄÅÒÖÉ×ÁÅÔ ÎÅÓËÏÌØËÏ ÒÁÂÏÞÉÈ ÐÏ×ÅÒÈÎÏÓÔÅÊ, ÎÅÐÒÏÚÒÁÞÎÏÅ
95 ÐÅÒÅÍÅÝÅÎÉÅ ÏËÏÎ, ÐÏÌÏÓËÕ ÚÁÄÁÎÉÊ, ÓÐÉÓÏË ÏËÏÎ, ÓÔÁÔÕÓ ÐÏÞÔÏ×ÏÇÏ
96 ÑÝÉËÁ, ÃÉÆÒÏ×ÙÅ ÞÁÓÙ. âÙÓÔÒÙÊ É ËÏÍÐÁËÔÎÙÊ.
97
98 %description -l uk
99 ÷¦ËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X Window System. íÏÖÅ ÅÍÕÌÀ×ÁÔÉ ÚÏ×ΦÛΦʠ×ÉÇÌÑÄ
100 Windows'95, OS/2 Warp 3,4, Motif. îÁÍÁÇÁ¤ÔØÓÑ ×ÚÑÔÉ ÎÁÊËÒÁÝÅ ¦Ú
101 ÚÇÁÄÁÎÉÈ ÓÉÓÔÅÍ. ð¦ÄÔÒÉÍÕ¤ Ë¦ÌØËÁ ÒÏÂÏÞÉÈ ÐÌÏÝÉÎ, ÎÅÐÒÏÚÏÒÅ
102 ÐÅÒÅͦÝÅÎÎѠצËÏÎ, ÓÍÕÖËÕ ÚÁ×ÄÁÎØ, ÓÐÉÓÏˠצËÏÎ, ÓÔÁΠÐÏÛÔÏ×ϧ
103 ÓËÒÉÎØËÉ, ÃÉÆÒÏ×ÉÊ ÇÏÄÉÎÎÉË. û×ÉÄËÉÊ ÔÁ ËÏÍÐÁËÔÎÉÊ.
104
105 %package themes-base
106 Summary:        Pack of themes for IceWM
107 Summary(pl):    Zestaw motywów dla IceWM-a
108 Group:          Themes
109 Requires:       icewm
110
111 %description themes-base
112 Standard pack of themes delivered with IceWM. All of them made by
113 Marko Macek: gtk2, metal2, motif, nice, nice2, warp3, warp4, win95.
114
115 %description themes-base -l pl
116 Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim.
117 Wszystkie stworzone przez Marko Macka: gtk2, metal2, motif, nice,
118 nice2, warp3, warp4, win95.
119
120 %prep
121 %setup -q -n %{name}-%{version}%{_pre}
122 %patch0 -p1
123 %patch1 -p1
124 %patch2 -p1
125 %patch3 -p1
126 %patch4 -p1
127 %patch5 -p1
128
129 mv -f po/{no,nb}.po
130 mv -f po/{zh_TW.Big5,zh_TW}.po
131
132 cd lib/icons
133 tar -xzf %{SOURCE3}
134 tar -xzf %{SOURCE6}
135
136 %build
137 cp -f /usr/share/automake/config.sub .
138 %{__aclocal}
139 %{__autoconf}
140 %{__autoheader}
141 %configure \
142         %{?with_gradients:--enable-gradients} \
143         %{?with_antialiasing:--enable-antialiasing} \
144         %{!?with_freetype:--disable-xfreetype} \
145         %{?with_guievents:--enable-guievents} \
146         %{?with_gnome:--enable-menus-gnome} \
147         %{!?with_imlib:--without-imlib} \
148         --enable-shaped-decorations \
149         --with-cfgdir=%{_sysconfdir}/X11/%{name} \
150         --with-docdir=%{_docdir}
151 %{__make}
152
153 %install
154 rm -rf $RPM_BUILD_ROOT
155 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmstyledir}} \
156         $RPM_BUILD_ROOT{%{_wmpropsdir},%{_sysconfdir}/X11/%{name}}
157
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
162 install %{SOURCE4} $RPM_BUILD_ROOT%{_wmstyledir}/%{name}-session.sh
163 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
164 install lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys
165 install lib/preferences $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/preferences
166 install lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar
167 install lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions
168 echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup
169 :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart
170
171 ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm
172
173 echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu
174
175 %find_lang %{name}
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %pre
181 test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm
182
183 %files -f %{name}.lang
184 %defattr(644,root,root,755)
185 %doc AUTHORS BUGS CHANGES PLATFORMS README* TODO icewm.lsm doc/*.html
186 %attr(755,root,root) %{_bindir}/*
187 %dir %{_sysconfdir}/X11/%{name}
188 %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/X11/%{name}/[!rs]*
189 %config(noreplace,missingok) %verify(not md5 size mtime) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/[rs]*
190 %{_pixmapsdir}/icewm
191 %dir %{_datadir}/icewm
192 %{_datadir}/icewm/icons
193 %{_datadir}/icewm/ledclock
194 %{_datadir}/icewm/mailbox
195 %{_datadir}/icewm/taskbar
196 %dir %{_datadir}/icewm/themes
197 %{_datadir}/icewm/themes/Infadel2
198 %{_datadir}/icewm/themes/icedesert
199 %{_datadir}/xsessions/%{name}.desktop
200 %{_wmpropsdir}/*
201 %attr(755,root,root) %{_wmstyledir}/%{name}-session.sh
202
203 %files themes-base
204 %defattr(644,root,root,755)
205 %{_datadir}/icewm/themes/gtk2
206 %{_datadir}/icewm/themes/metal2
207 %{_datadir}/icewm/themes/motif
208 %{_datadir}/icewm/themes/nice
209 %{_datadir}/icewm/themes/nice2
210 %{_datadir}/icewm/themes/warp3
211 %{_datadir}/icewm/themes/warp4
212 %{_datadir}/icewm/themes/win95
213 %{_datadir}/icewm/themes/yellowmotif
This page took 2.723773 seconds and 4 git commands to generate.