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