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
9 %bcond_with rplay # with internal sound support (through rplay)
11 %include /usr/lib/rpm/macros.perl
12 Summary: An improved version of the FVWM X-based window manager
13 Summary(de.UTF-8): F(?) Virtual Window Manager
14 Summary(es.UTF-8): Administrador de ventanas semejante al mwm
15 Summary(fr.UTF-8): F(?) Virtual Window Manager
16 Summary(ja.UTF-8): 改良版 FVWM - X 用ウィンドウマネージャ
17 Summary(pl.UTF-8): Ulepszona wersja zarządcy okien FVWM
18 Summary(pt_BR.UTF-8): Gerenciador de janelas semelhante ao mwm
19 Summary(ru.UTF-8): Виртуальный оконный менеджер F(?)
20 Summary(tr.UTF-8): Yaygın bir pencere denetleyicisi
25 Group: X11/Window Managers
26 Source0: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.bz2
27 # Source0-md5: a1c225fe6497bf86a59cac561abd9064
28 Source1: fvwm-2.0.46.icons.tar.gz
29 # Source1-md5: 8d81420cf49442fca4bb2b61ae54eeb9
30 Source2: %{name}.desktop
31 Source3: %{name}-system.%{name}rc.tar.gz
32 # Source3-md5: 22c1f6c5ab4bd84376daa37debd3e889
33 Source4: %{name}.RunWM
35 Source6: %{name}-xsession.desktop
36 Patch0: %{name}-paths.patch
37 Patch1: FvwmPager.patch
38 Patch2: %{name}-locale_names.patch
39 Patch3: %{name}-varia.patch
40 URL: http://www.fvwm.org/
41 BuildRequires: autoconf
42 BuildRequires: automake
43 %{?with_fribidi:BuildRequires: fribidi-devel}
44 %{?with_gnome:BuildRequires: gnome-libs-devel}
45 BuildRequires: gtk+-devel
46 BuildRequires: libpng-devel
47 %{?with_stroke:BuildRequires: libstroke-devel}
48 BuildRequires: pkgconfig
49 BuildRequires: readline-devel >= 4.2
50 %{?with_rplay:BuildRequires: rplay-devel}
51 BuildRequires: rpm-perlprov
52 %{?with_xft:BuildRequires: xorg-lib-libXft-devel}
53 BuildRequires: xorg-lib-libXpm-devel
54 BuildRequires: xorg-lib-libXt-devel
55 Requires(post): vfmg >= 0.9.95
56 Requires: fvwm2-icons = %{version}-%{release}
58 Requires: vfmg >= 0.9.18-2
60 Conflicts: filesystem < 3.0-20
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 %define _sysconfdir /etc/X11/fvwm2
64 %define _wmpropsdir /usr/share/gnome/wm-properties
67 FVWM2 (the F stands for whatever you want, but the VWM stands for
68 Virtual Window Manager) is an improved version of the FVWM window
69 manager for the X Window System and shares the same characteristics as
72 %description -l es.UTF-8
73 Fvwm2 es una versión del popular administrador de ventanas "Feeble
74 Virtual Window Manager".
76 %description -l ja.UTF-8
77 FVWM2 (Fは好きなように解釈してください。ただし、 VWM は Virtual Window
78 Manager を省略したものです。)は FVWM と同じ特徴を持ち 更に拡張された X
79 Window System 用ウィンドウマネージャです。
81 %description -l pl.UTF-8
82 FVWM (za F można sobie podstawić co kto woli, lecz VWM pochodzi od
83 pierwszych liter "Virtual Window Manager", czyli wirtualny zarządca
84 okien) to ulepszona wersja zarządcy okien dla systemu X Window FVWM i
85 posiadająca te same cechy.
87 %description -l pt_BR.UTF-8
88 Fvwm2 é uma versão do popular gerenciador de janelas "Feeble Virtual
91 %description -l ru.UTF-8
92 fvwm2 - это версия популярного "Feeble Virtual Window Manager".
95 Summary: Graphic files used by the FVWM and FVWM2 window managers
96 Summary(de.UTF-8): Symbole und Pixmaps für fvwm
97 Summary(fr.UTF-8): Icônes et pixmaps pour fvwm
98 Summary(pl.UTF-8): Pliki graficzne używane przez zarządców okien FVWM i FVWM2
99 Summary(ru.UTF-8): Пиктограммы и растровые картинки для fvwm2
100 Summary(tr.UTF-8): Fvwm için çeşitli minik görüntü ve simgeler
101 Group: X11/Window Managers
102 Obsoletes: fvwm95-icons
105 This package contains icons, bitmaps and pixmaps for fvwm and fvwm2.
107 %description icons -l de.UTF-8
108 Dieses Paket enthält Symbole, Bitmaps und Pixmaps für fvwm und fvwm2.
110 %description icons -l fr.UTF-8
111 Ce package contient des icones, bitmaps et pixmaps pour fvwm et fvwm2.
113 %description icons -l pl.UTF-8
114 Ten pakiet zawiera ikony, bitmapy i pixmapy dla fvwm i fvwm2.
116 %description icons -l ru.UTF-8
117 Этот пакет содержит пиктограммы и прочие картинки для fvwm2.
119 %description icons -l tr.UTF-8
120 Fvwm için çeşitli minik görüntü ve simgeler.
123 Summary: fvwm-perllib, FvwmPerl and dependent modules
124 Summary(pl.UTF-8): fvwm-perllib, FvwmPerl i zależne moduły
125 Group: X11/Window Managers/Tools
126 Requires: %{name} = %{version}-%{release}
129 fvwm-perllib, FvwmPerl and dependent modules.
131 %description perl -l pl.UTF-8
132 fvwm-perllib, FvwmPerl i zależne moduły.
135 %setup -n fvwm-%{version} -q -a1 -a3
141 mv -f po/FvwmScript.sv{_SE,}.po
142 mv -f po/FvwmTaskBar.sv{_SE,}.po
143 mv -f po/fvwm.sv{_SE,}.po
153 --%{!?debug:dis}%{?debug:en}able-debug-msgs \
154 --disable-command-log \
155 %{!?with_fribidi:--disable-bidi} \
156 %{!?with_xft:--disable-xft} \
160 %{?with_gnome:--with-gnome}%{!?with_gnome:--without-gnome} \
162 %{!?with_rplay:--without-rplay-library} \
163 --with-stroke-library \
164 --with-ncurses-library \
165 --with-readline-library \
166 --with-ncurses-library \
167 --with-iconv-library=no \
168 --without-termcap-library
173 rm -rf $RPM_BUILD_ROOT
176 DESTDIR=$RPM_BUILD_ROOT
179 $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/wmstyle,%{_wmpropsdir}} \
180 $RPM_BUILD_ROOT{%{_datadir}/{locale,xsessions},%{_pixmapsdir}/mini}
182 install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/system.fvwm2rc
183 install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}
185 install icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
187 mv $RPM_BUILD_ROOT%{_pixmapsdir}/mini-*.xpm \
188 $RPM_BUILD_ROOT%{_pixmapsdir}/mini
190 # Conflicts with wmmaker
191 mv $RPM_BUILD_ROOT%{_pixmapsdir}/xv{,-fvwm}.xpm
193 install %{SOURCE2} $RPM_BUILD_ROOT%{_wmpropsdir}
194 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh
195 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
196 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
197 touch $RPM_BUILD_ROOT%{_sysconfdir}/fvwm2.menu2
199 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
200 echo ".so fvwm-root.1" > $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
202 %find_lang %{name} --all-name
205 rm -rf $RPM_BUILD_ROOT
208 # generate initial menu
209 [ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg
210 [ "$FVWM2" = yes -o "$FVWM2" = 1 -o ! -f /etc/X11/fvwm2/fvwm2.menu2 ] && \
211 vfmg fvwm2 >/etc/X11/fvwm2/fvwm2.menu2 2>/dev/null ||:
213 %files -f %{name}.lang
214 %defattr(644,root,root,755)
215 %doc README AUTHORS NEWS docs
217 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fvwm2.menu.m4
218 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/system.fvwm2rc
219 %ghost %{_sysconfdir}/fvwm2.menu2
220 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
221 %attr(755,root,root) %{_bindir}/[!f]*
222 %attr(755,root,root) %{_bindir}/fvwm
223 %attr(755,root,root) %{_bindir}/fvwm2
224 %attr(755,root,root) %{_bindir}/fvwm-[!p]*
226 %attr(755,root,root) %{_libdir}/fvwm/Fvwm[!DGPWT]*
227 %attr(755,root,root) %{_libdir}/fvwm/FvwmD[!e]*
228 %attr(755,root,root) %{_libdir}/fvwm/FvwmGtk
229 %attr(755,root,root) %{_libdir}/fvwm/FvwmP[!e]*
230 %attr(755,root,root) %{_libdir}/fvwm/FvwmT[!a]*
231 %attr(755,root,root) %{_libdir}/fvwm/FvwmTaskBar
232 %attr(755,root,root) %{_libdir}/fvwm/FvwmW[!i]*
233 %attr(755,root,root) %{_libdir}/fvwm/FvwmWinList
234 %dir %{_datadir}/fvwm
235 %{_datadir}/fvwm/[!p]*
236 %{_datadir}/xsessions/%{name}.desktop
237 %{_wmpropsdir}/fvwm2.desktop
238 %{_mandir}/man1/[!Ff]*.1*
239 %{_mandir}/man1/Fvwm[!DGPW]*.1*
240 %{_mandir}/man1/FvwmD[!e]*.1*
241 %{_mandir}/man1/FvwmP[!e]*.1*
242 %{_mandir}/man1/FvwmW[!i]*.1*
243 %{_mandir}/man1/FvwmWinList.1*
244 %{_mandir}/man1/fvwm.1*
245 %{_mandir}/man1/fvwm-[!p]*.1*
248 %defattr(644,root,root,755)
250 %dir %{_pixmapsdir}/mini
251 %{_pixmapsdir}/mini/*.xpm
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/fvwm-perllib
256 %attr(755,root,root) %{_libdir}/fvwm/FvwmDebug
257 %attr(755,root,root) %{_libdir}/fvwm/FvwmGtkDebug
258 %attr(755,root,root) %{_libdir}/fvwm/FvwmPerl
259 %attr(755,root,root) %{_libdir}/fvwm/FvwmTabs
260 %attr(755,root,root) %{_libdir}/fvwm/FvwmWindowMenu
261 %{_datadir}/fvwm/perllib
262 %{_mandir}/man1/fvwm-perllib.1*
263 %{_mandir}/man1/FvwmDebug.1*
264 %{_mandir}/man1/FvwmGtkDebug.1*
265 %{_mandir}/man1/FvwmPerl.1*
266 %{_mandir}/man1/FvwmWindowMenu.1*