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