2 # TODO: more updates in system.fvwm2rc (see warnings on run)
5 %bcond_without stroke # without mouse strokes (gestures) support
6 %bcond_without xft # without Xft (1 or 2) support
7 %bcond_with fribidi # with bidirectional text support
8 %bcond_with gnome # with gnome-libs and wm-properties
9 %bcond_with gtk # with gtk 1.x support
10 %bcond_with rplay # with internal sound support (through rplay)
12 %include /usr/lib/rpm/macros.perl
13 Summary: An improved version of the FVWM X-based window manager
14 Summary(de.UTF-8): F(?) Virtual Window Manager
15 Summary(es.UTF-8): Administrador de ventanas semejante al mwm
16 Summary(fr.UTF-8): F(?) Virtual Window Manager
17 Summary(ja.UTF-8): 改良版 FVWM - X 用ウィンドウマネージャ
18 Summary(pl.UTF-8): Ulepszona wersja zarządcy okien FVWM
19 Summary(pt_BR.UTF-8): Gerenciador de janelas semelhante ao mwm
20 Summary(ru.UTF-8): Виртуальный оконный менеджер F(?)
21 Summary(tr.UTF-8): Yaygın bir pencere denetleyicisi
26 Group: X11/Window Managers
27 Source0: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.bz2
28 # Source0-md5: 090ba4e0c517e8b94f71317951530f69
29 Source1: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm_icons-20070101.tar.bz2
30 # Source1-md5: 2ab5ee60a96830af23a43855e33afc7d
31 Source2: %{name}-system.%{name}rc.tar.gz
32 # Source2-md5: 22c1f6c5ab4bd84376daa37debd3e889
33 Source3: %{name}.RunWM
34 Source4: %{name}-xsession.desktop
35 Source5: %{name}.desktop
37 Patch0: %{name}-paths.patch
38 Patch1: FvwmPager.patch
39 Patch2: %{name}-locale_names.patch
40 Patch3: %{name}-varia.patch
41 Patch5: %{name}-xft2-link.patch
42 Patch7: %{name}-aclocal.patch
43 Patch8: %{name}-format-string.patch
44 URL: http://www.fvwm.org/
45 BuildRequires: autoconf
46 BuildRequires: automake
47 %{?with_fribidi:BuildRequires: fribidi-devel}
48 %{?with_gnome:BuildRequires: gnome-libs-devel}
49 BuildRequires: gtk+-devel
50 BuildRequires: libpng-devel >= 1.4
51 %{?with_stroke:BuildRequires: libstroke-devel}
52 BuildRequires: pkgconfig
53 BuildRequires: readline-devel >= 4.2
54 %{?with_rplay:BuildRequires: rplay-devel}
55 BuildRequires: rpm-perlprov
56 %{?with_xft:BuildRequires: xorg-lib-libXft-devel}
57 BuildRequires: xorg-lib-libXpm-devel
58 BuildRequires: xorg-lib-libXt-devel
59 BuildRequires: librsvg-devel
60 BuildRequires: imlib-devel
61 Requires(post): vfmg >= 0.9.95
62 Requires: fvwm2-icons = %{version}-%{release}
64 Requires: vfmg >= 0.9.18-2
66 Conflicts: filesystem < 3.0-20
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69 %define _sysconfdir /etc/X11/fvwm2
70 %define _wmpropsdir /usr/share/gnome/wm-properties
73 FVWM2 (the F stands for whatever you want, but the VWM stands for
74 Virtual Window Manager) is an improved version of the FVWM window
75 manager for the X Window System and shares the same characteristics as
78 %description -l es.UTF-8
79 Fvwm2 es una versión del popular administrador de ventanas "Feeble
80 Virtual Window Manager".
82 %description -l ja.UTF-8
83 FVWM2 (Fは好きなように解釈してください。ただし、 VWM は Virtual Window
84 Manager を省略したものです。)は FVWM と同じ特徴を持ち 更に拡張された X
85 Window System 用ウィンドウマネージャです。
87 %description -l pl.UTF-8
88 FVWM (za F można sobie podstawić co kto woli, lecz VWM pochodzi od
89 pierwszych liter "Virtual Window Manager", czyli wirtualny zarządca
90 okien) to ulepszona wersja zarządcy okien dla systemu X Window FVWM i
91 posiadająca te same cechy.
93 %description -l pt_BR.UTF-8
94 Fvwm2 é uma versão do popular gerenciador de janelas "Feeble Virtual
97 %description -l ru.UTF-8
98 fvwm2 - это версия популярного "Feeble Virtual Window Manager".
101 Summary: Graphic files used by the FVWM and FVWM2 window managers
102 Summary(de.UTF-8): Symbole und Pixmaps für fvwm
103 Summary(fr.UTF-8): Icônes et pixmaps pour fvwm
104 Summary(pl.UTF-8): Pliki graficzne używane przez zarządców okien FVWM i FVWM2
105 Summary(ru.UTF-8): Пиктограммы и растровые картинки для fvwm2
106 Summary(tr.UTF-8): Fvwm için çeşitli minik görüntü ve simgeler
107 Group: X11/Window Managers
108 Obsoletes: fvwm95-icons
111 This package contains icons, bitmaps and pixmaps for fvwm and fvwm2.
113 %description icons -l de.UTF-8
114 Dieses Paket enthält Symbole, Bitmaps und Pixmaps für fvwm und fvwm2.
116 %description icons -l fr.UTF-8
117 Ce package contient des icones, bitmaps et pixmaps pour fvwm et fvwm2.
119 %description icons -l pl.UTF-8
120 Ten pakiet zawiera ikony, bitmapy i pixmapy dla fvwm i fvwm2.
122 %description icons -l ru.UTF-8
123 Этот пакет содержит пиктограммы и прочие картинки для fvwm2.
125 %description icons -l tr.UTF-8
126 Fvwm için çeşitli minik görüntü ve simgeler.
129 Summary: fvwm-perllib, FvwmPerl and dependent modules
130 Summary(pl.UTF-8): fvwm-perllib, FvwmPerl i zależne moduły
131 Group: X11/Window Managers/Tools
132 Requires: %{name} = %{version}-%{release}
135 fvwm-perllib, FvwmPerl and dependent modules.
137 %description perl -l pl.UTF-8
138 fvwm-perllib, FvwmPerl i zależne moduły.
141 %setup -n fvwm-%{version} -q -a1 -a2
150 mv -f po/FvwmScript.sv{_SE,}.po
151 mv -f po/FvwmTaskBar.sv{_SE,}.po
152 mv -f po/fvwm.sv{_SE,}.po
162 --%{!?debug:dis}%{?debug:en}able-debug-msgs \
163 --disable-command-log \
164 %{!?with_fribidi:--disable-bidi} \
165 %{!?with_xft:--disable-xft} \
168 %{?with_gnome:--with-gnome}%{!?with_gnome:--without-gnome} \
169 %{!?with_gtk:--disable-gtk} \
171 %{!?with_rplay:--without-rplay-library} \
172 --with-stroke-library \
173 --with-ncurses-library \
174 --with-readline-library \
175 --with-ncurses-library \
176 --with-iconv-library=no \
177 --without-termcap-library
182 rm -rf $RPM_BUILD_ROOT
184 %{__make} -j1 install \
185 DESTDIR=$RPM_BUILD_ROOT
188 $RPM_BUILD_ROOT{%{_sysconfdir},%{_wmpropsdir}} \
189 $RPM_BUILD_ROOT{%{_datadir}/{locale,xsessions},%{_pixmapsdir}/mini}
191 install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/system.fvwm2rc
192 install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}
194 install fvwm_icons-20070101/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
196 mv $RPM_BUILD_ROOT%{_pixmapsdir}/mini.*.xpm \
197 $RPM_BUILD_ROOT%{_pixmapsdir}/mini
199 # Conflicts with wmmaker
200 mv $RPM_BUILD_ROOT%{_pixmapsdir}/xv{,-fvwm}.xpm
202 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/fvwm2-session
203 install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
204 %{?with_gnome:install %{SOURCE5} $RPM_BUILD_ROOT%{_wmpropsdir}}
205 install %{SOURCE6} $RPM_BUILD_ROOT%{_pixmapsdir}
207 touch $RPM_BUILD_ROOT%{_sysconfdir}/fvwm2.menu2
209 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
210 echo ".so fvwm-root.1" > $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
212 %find_lang %{name} --all-name
215 rm -rf $RPM_BUILD_ROOT
218 # generate initial menu
219 [ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg
220 [ "$FVWM2" = yes -o "$FVWM2" = 1 -o ! -f /etc/X11/fvwm2/fvwm2.menu2 ] && \
221 vfmg fvwm2 >/etc/X11/fvwm2/fvwm2.menu2 2>/dev/null ||:
223 %files -f %{name}.lang
224 %defattr(644,root,root,755)
225 %doc README AUTHORS NEWS docs
227 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fvwm2.menu.m4
228 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/system.fvwm2rc
229 %ghost %{_sysconfdir}/fvwm2.menu2
230 %attr(755,root,root) %{_bindir}/[!f]*
231 %attr(755,root,root) %{_bindir}/fvwm
232 %attr(755,root,root) %{_bindir}/fvwm-[!p]*
233 %attr(755,root,root) %{_bindir}/fvwm2
234 %attr(755,root,root) %{_bindir}/fvwm2-session
236 %attr(755,root,root) %{_libdir}/fvwm/Fvwm[!DGPWT]*
237 %attr(755,root,root) %{_libdir}/fvwm/FvwmD[!e]*
238 %{?with_gtk:%attr(755,root,root) %{_libdir}/fvwm/FvwmGtk}
239 %attr(755,root,root) %{_libdir}/fvwm/FvwmP[!e]*
240 %attr(755,root,root) %{_libdir}/fvwm/FvwmT[!a]*
241 %attr(755,root,root) %{_libdir}/fvwm/FvwmTalk
242 %attr(755,root,root) %{_libdir}/fvwm/FvwmTaskBar
243 %attr(755,root,root) %{_libdir}/fvwm/FvwmW[!i]*
244 %attr(755,root,root) %{_libdir}/fvwm/FvwmWinList
245 %dir %{_datadir}/fvwm
246 %{_datadir}/fvwm/[!p]*
247 %{_datadir}/xsessions/%{name}.desktop
248 %{_datadir}/locale/ar/LC_MESSAGES/FvwmScript.mo
249 %{?with_gnome:%{_wmpropsdir}/fvwm2.desktop}
250 %{_mandir}/man1/[!Ff]*.1*
251 %{_mandir}/man1/Fvwm[!DGPW]*.1*
252 %{_mandir}/man1/FvwmD[!e]*.1*
253 %{_mandir}/man1/FvwmP[!e]*.1*
254 %{_mandir}/man1/FvwmW[!i]*.1*
255 %{_mandir}/man1/FvwmWinList.1*
256 %{_mandir}/man1/fvwm.1*
257 %{_mandir}/man1/fvwm-[!p]*.1*
258 %{_mandir}/man1/fvwm2.1*
259 %{?with_gtk:%{_mandir}/man1/FvwmGtk.1.*}
262 %defattr(644,root,root,755)
264 %dir %{_pixmapsdir}/mini
265 %{_pixmapsdir}/mini/*.xpm
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/fvwm-perllib
270 %attr(755,root,root) %{_libdir}/fvwm/FvwmDebug
271 %{?with_gtk:%attr(755,root,root) %{_libdir}/fvwm/FvwmGtkDebug}
272 %attr(755,root,root) %{_libdir}/fvwm/FvwmPerl
273 %attr(755,root,root) %{_libdir}/fvwm/FvwmTabs
274 %attr(755,root,root) %{_libdir}/fvwm/FvwmWindowMenu
275 %{_datadir}/fvwm/perllib
276 %{_mandir}/man1/fvwm-perllib.1*
277 %{_mandir}/man1/FvwmDebug.1*
278 %{?with_gtk:%{_mandir}/man1/FvwmGtkDebug.1*}
279 %{_mandir}/man1/FvwmPerl.1*
280 %{_mandir}/man1/FvwmWindowMenu.1*