]> git.pld-linux.org Git - packages/fvwm2.git/blame - fvwm2.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/fvwm2.git] / fvwm2.spec
CommitLineData
b8115d7b
JB
1#
2# TODO: more updates in system.fvwm2rc (see warnings on run)
3#
4# Conditional build:
05d49d78 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
fc5a289b 8%bcond_with gnome # with gnome-libs and wm-properties
ce3da2d3 9%bcond_with gtk # with gtk 1.x support
05d49d78 10%bcond_with rplay # with internal sound support (through rplay)
ce3da2d3 11#
65f3b58c 12Summary: An improved version of the FVWM X-based window manager
f9684365
ER
13Summary(de.UTF-8): F(?) Virtual Window Manager
14Summary(es.UTF-8): Administrador de ventanas semejante al mwm
15Summary(fr.UTF-8): F(?) Virtual Window Manager
16Summary(ja.UTF-8): 改良版 FVWM - X 用ウィンドウマネージャ
17Summary(pl.UTF-8): Ulepszona wersja zarządcy okien FVWM
18Summary(pt_BR.UTF-8): Gerenciador de janelas semelhante ao mwm
19Summary(ru.UTF-8): Виртуальный оконный менеджер F(?)
20Summary(tr.UTF-8): Yaygın bir pencere denetleyicisi
3a6bac95 21Name: fvwm2
9ee4e8e4 22Version: 2.6.5
e5475bce 23Release: 5
f960d1de 24License: GPL
25Group: X11/Window Managers
e26222a5 26Source0: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.bz2
9ee4e8e4
MGB
27# Source0-md5: 090ba4e0c517e8b94f71317951530f69
28Source1: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm_icons-20070101.tar.bz2
29# Source1-md5: 2ab5ee60a96830af23a43855e33afc7d
6552af44
JR
30Source2: %{name}-system.%{name}rc.tar.gz
31# Source2-md5: 22c1f6c5ab4bd84376daa37debd3e889
32Source3: %{name}.RunWM
33Source4: %{name}-xsession.desktop
11efef7c
JR
34Source5: %{name}.desktop
35Source6: mozilla.xpm
8ec07e0a 36Patch0: %{name}-paths.patch
5d710efc 37Patch1: FvwmPager.patch
38Patch2: %{name}-locale_names.patch
39Patch3: %{name}-varia.patch
7b5961ba 40Patch5: %{name}-xft2-link.patch
9ee4e8e4
MGB
41Patch7: %{name}-aclocal.patch
42Patch8: %{name}-format-string.patch
1d0d5f68 43URL: http://www.fvwm.org/
eb96dd9b
AM
44BuildRequires: autoconf
45BuildRequires: automake
05d49d78 46%{?with_fribidi:BuildRequires: fribidi-devel}
47%{?with_gnome:BuildRequires: gnome-libs-devel}
c27f3433 48BuildRequires: gtk+-devel
b2193117 49BuildRequires: libpng-devel >= 1.4
05d49d78 50%{?with_stroke:BuildRequires: libstroke-devel}
a0134a9d 51BuildRequires: pkgconfig
26053d95 52BuildRequires: readline-devel >= 4.2
05d49d78 53%{?with_rplay:BuildRequires: rplay-devel}
b8115d7b 54BuildRequires: rpm-perlprov
bf60e8ee 55%{?with_xft:BuildRequires: xorg-lib-libXft-devel}
56BuildRequires: xorg-lib-libXpm-devel
57BuildRequires: xorg-lib-libXt-devel
9ee4e8e4
MGB
58BuildRequires: librsvg-devel
59BuildRequires: imlib-devel
c0fea9db 60Requires(post): vfmg >= 0.9.95
9512fa86 61Requires: fvwm2-icons = %{version}-%{release}
b8115d7b 62Requires: m4
92cb0117 63Requires: vfmg >= 0.9.18-2
3a6bac95 64Obsoletes: fvwm95
5906cd33 65Conflicts: filesystem < 3.0-20
b8115d7b 66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
3a6bac95 67
8ec07e0a 68%define _sysconfdir /etc/X11/fvwm2
11efef7c 69%define _wmpropsdir /usr/share/gnome/wm-properties
b1f5539d
JR
70
71%description
72FVWM2 (the F stands for whatever you want, but the VWM stands for
73Virtual Window Manager) is an improved version of the FVWM window
74manager for the X Window System and shares the same characteristics as
f960d1de 75FVWM.
b1f5539d 76
7e77be20
JR
77%description -l es.UTF-8
78Fvwm2 es una versión del popular administrador de ventanas "Feeble
65f3b58c 79Virtual Window Manager".
80
7e77be20
JR
81%description -l ja.UTF-8
82FVWM2 (Fは好きなように解釈してください。ただし、 VWM は Virtual Window
83Manager を省略したものです。)は FVWM と同じ特徴を持ち 更に拡張された X
84Window System 用ウィンドウマネージャです。
65f3b58c 85
7e77be20
JR
86%description -l pl.UTF-8
87FVWM (za F można sobie podstawić co kto woli, lecz VWM pochodzi od
88pierwszych liter "Virtual Window Manager", czyli wirtualny zarządca
89okien) to ulepszona wersja zarządcy okien dla systemu X Window FVWM i
90posiadająca te same cechy.
bc3e4b02 91
7e77be20
JR
92%description -l pt_BR.UTF-8
93Fvwm2 é uma versão do popular gerenciador de janelas "Feeble Virtual
65f3b58c 94Window Manager".
95
7e77be20
JR
96%description -l ru.UTF-8
97fvwm2 - это версия популярного "Feeble Virtual Window Manager".
65f3b58c 98
b1f5539d 99%package icons
f960d1de 100Summary: Graphic files used by the FVWM and FVWM2 window managers
f9684365
ER
101Summary(de.UTF-8): Symbole und Pixmaps für fvwm
102Summary(fr.UTF-8): Icônes et pixmaps pour fvwm
103Summary(pl.UTF-8): Pliki graficzne używane przez zarządców okien FVWM i FVWM2
104Summary(ru.UTF-8): Пиктограммы и растровые картинки для fvwm2
105Summary(tr.UTF-8): Fvwm için çeşitli minik görüntü ve simgeler
f960d1de 106Group: X11/Window Managers
3a6bac95 107Obsoletes: fvwm95-icons
b1f5539d 108
65f3b58c 109%description icons
110This package contains icons, bitmaps and pixmaps for fvwm and fvwm2.
111
7e77be20
JR
112%description icons -l de.UTF-8
113Dieses Paket enthält Symbole, Bitmaps und Pixmaps für fvwm und fvwm2.
65f3b58c 114
7e77be20 115%description icons -l fr.UTF-8
65f3b58c 116Ce package contient des icones, bitmaps et pixmaps pour fvwm et fvwm2.
117
7e77be20 118%description icons -l pl.UTF-8
1d0d5f68
JB
119Ten pakiet zawiera ikony, bitmapy i pixmapy dla fvwm i fvwm2.
120
7e77be20
JR
121%description icons -l ru.UTF-8
122Этот пакет содержит пиктограммы и прочие картинки для fvwm2.
65f3b58c 123
7e77be20
JR
124%description icons -l tr.UTF-8
125Fvwm için çeşitli minik görüntü ve simgeler.
65f3b58c 126
b8115d7b
JB
127%package perl
128Summary: fvwm-perllib, FvwmPerl and dependent modules
f9684365 129Summary(pl.UTF-8): fvwm-perllib, FvwmPerl i zależne moduły
b8115d7b 130Group: X11/Window Managers/Tools
07f1f95e 131Requires: %{name} = %{version}-%{release}
b8115d7b
JB
132
133%description perl
134fvwm-perllib, FvwmPerl and dependent modules.
135
7e77be20
JR
136%description perl -l pl.UTF-8
137fvwm-perllib, FvwmPerl i zależne moduły.
b8115d7b 138
b1f5539d 139%prep
6552af44 140%setup -n fvwm-%{version} -q -a1 -a2
3a6bac95 141%patch0 -p1
0dd3967a 142%patch1 -p1
07b1e1d5 143%patch2 -p1
8e2a4596 144%patch3 -p1
7b5961ba 145%patch5 -p1
9ee4e8e4
MGB
146%patch7 -p1
147%patch8 -p1
8e2a4596 148
149mv -f po/FvwmScript.sv{_SE,}.po
150mv -f po/FvwmTaskBar.sv{_SE,}.po
151mv -f po/fvwm.sv{_SE,}.po
b1f5539d
JR
152
153%build
1d0d5f68 154rm -f missing
fa3b6247 155%{__aclocal}
48dd34a2 156%{__autoconf}
b8115d7b 157%{__automake}
8ec07e0a 158%configure \
8ec07e0a 159 --disable-dmalloc \
160 --disable-efence \
cf7dfc5e 161 --%{!?debug:dis}%{?debug:en}able-debug-msgs \
8ec07e0a 162 --disable-command-log \
05d49d78 163 %{!?with_fribidi:--disable-bidi} \
164 %{!?with_xft:--disable-xft} \
8ec07e0a 165 --enable-shape \
8ec07e0a 166 --enable-sm \
05d49d78 167 %{?with_gnome:--with-gnome}%{!?with_gnome:--without-gnome} \
ce3da2d3 168 %{!?with_gtk:--disable-gtk} \
8ec07e0a 169 --with-xpm-library \
05d49d78 170 %{!?with_rplay:--without-rplay-library} \
8ec07e0a 171 --with-stroke-library \
48dd34a2 172 --with-ncurses-library \
8ec07e0a 173 --with-readline-library \
174 --with-ncurses-library \
0fea6658 175 --with-iconv-library=no \
b8115d7b
JB
176 --without-termcap-library
177
4373c321 178%{__make} -j1
b1f5539d
JR
179
180%install
181rm -rf $RPM_BUILD_ROOT
3a6bac95 182
4373c321 183%{__make} -j1 install \
8ec07e0a 184 DESTDIR=$RPM_BUILD_ROOT
c48e3d50 185
1f4cfbe3 186install -d \
11efef7c 187 $RPM_BUILD_ROOT{%{_sysconfdir},%{_wmpropsdir}} \
9512fa86 188 $RPM_BUILD_ROOT{%{_datadir}/{locale,xsessions},%{_pixmapsdir}/mini}
0dd3967a 189
53151870 190install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/system.fvwm2rc
cadd9dd7 191install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}
3a6bac95 192
9ee4e8e4 193install fvwm_icons-20070101/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
3a6bac95 194
9ee4e8e4 195mv $RPM_BUILD_ROOT%{_pixmapsdir}/mini.*.xpm \
9512fa86 196 $RPM_BUILD_ROOT%{_pixmapsdir}/mini
197
1f4cfbe3 198# Conflicts with wmmaker
199mv $RPM_BUILD_ROOT%{_pixmapsdir}/xv{,-fvwm}.xpm
3a6bac95 200
7b5961ba 201install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/fvwm2-session
6552af44 202install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
fc5a289b 203%{?with_gnome:install %{SOURCE5} $RPM_BUILD_ROOT%{_wmpropsdir}}
11efef7c 204install %{SOURCE6} $RPM_BUILD_ROOT%{_pixmapsdir}
6552af44 205
b3dd2cb8 206touch $RPM_BUILD_ROOT%{_sysconfdir}/fvwm2.menu2
3e12c409 207
46334b73 208rm -f $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
209echo ".so fvwm-root.1" > $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1
210
1f4cfbe3 211%find_lang %{name} --all-name
c48e3d50 212
3a6bac95
JR
213%clean
214rm -rf $RPM_BUILD_ROOT
b1f5539d 215
92cb0117 216%post
217# generate initial menu
218[ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg
96c8669e 219[ "$FVWM2" = yes -o "$FVWM2" = 1 -o ! -f /etc/X11/fvwm2/fvwm2.menu2 ] && \
c0fea9db 220 vfmg fvwm2 >/etc/X11/fvwm2/fvwm2.menu2 2>/dev/null ||:
92cb0117 221
0dd3967a 222%files -f %{name}.lang
3a6bac95 223%defattr(644,root,root,755)
b8115d7b 224%doc README AUTHORS NEWS docs
b3dd2cb8
ER
225%dir %{_sysconfdir}
226%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fvwm2.menu.m4
227%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/system.fvwm2rc
a80420f1 228%ghost %{_sysconfdir}/fvwm2.menu2
b8115d7b 229%attr(755,root,root) %{_bindir}/[!f]*
d223d04e 230%attr(755,root,root) %{_bindir}/fvwm
b8115d7b 231%attr(755,root,root) %{_bindir}/fvwm-[!p]*
7b5961ba
JR
232%attr(755,root,root) %{_bindir}/fvwm2
233%attr(755,root,root) %{_bindir}/fvwm2-session
d223d04e 234%dir %{_libdir}/fvwm
6abe822e 235%attr(755,root,root) %{_libdir}/fvwm/Fvwm[!DGPWT]*
d223d04e 236%attr(755,root,root) %{_libdir}/fvwm/FvwmD[!e]*
ce3da2d3 237%{?with_gtk:%attr(755,root,root) %{_libdir}/fvwm/FvwmGtk}
d223d04e 238%attr(755,root,root) %{_libdir}/fvwm/FvwmP[!e]*
6abe822e 239%attr(755,root,root) %{_libdir}/fvwm/FvwmT[!a]*
9ee4e8e4 240%attr(755,root,root) %{_libdir}/fvwm/FvwmTalk
6abe822e 241%attr(755,root,root) %{_libdir}/fvwm/FvwmTaskBar
d223d04e 242%attr(755,root,root) %{_libdir}/fvwm/FvwmW[!i]*
243%attr(755,root,root) %{_libdir}/fvwm/FvwmWinList
244%dir %{_datadir}/fvwm
245%{_datadir}/fvwm/[!p]*
f0536b2b 246%{_datadir}/xsessions/%{name}.desktop
9ee4e8e4 247%{_datadir}/locale/ar/LC_MESSAGES/FvwmScript.mo
fc5a289b 248%{?with_gnome:%{_wmpropsdir}/fvwm2.desktop}
b8115d7b
JB
249%{_mandir}/man1/[!Ff]*.1*
250%{_mandir}/man1/Fvwm[!DGPW]*.1*
251%{_mandir}/man1/FvwmD[!e]*.1*
b8115d7b
JB
252%{_mandir}/man1/FvwmP[!e]*.1*
253%{_mandir}/man1/FvwmW[!i]*.1*
254%{_mandir}/man1/FvwmWinList.1*
d223d04e 255%{_mandir}/man1/fvwm.1*
b8115d7b 256%{_mandir}/man1/fvwm-[!p]*.1*
9ee4e8e4 257%{_mandir}/man1/fvwm2.1*
ce3da2d3 258%{?with_gtk:%{_mandir}/man1/FvwmGtk.1.*}
b1f5539d
JR
259
260%files icons
3a6bac95 261%defattr(644,root,root,755)
9512fa86 262%{_pixmapsdir}/*.xpm
578ff887 263%dir %{_pixmapsdir}/mini
9512fa86 264%{_pixmapsdir}/mini/*.xpm
b8115d7b
JB
265
266%files perl
267%defattr(644,root,root,755)
268%attr(755,root,root) %{_bindir}/fvwm-perllib
d223d04e 269%attr(755,root,root) %{_libdir}/fvwm/FvwmDebug
ce3da2d3 270%{?with_gtk:%attr(755,root,root) %{_libdir}/fvwm/FvwmGtkDebug}
d223d04e 271%attr(755,root,root) %{_libdir}/fvwm/FvwmPerl
6abe822e 272%attr(755,root,root) %{_libdir}/fvwm/FvwmTabs
d223d04e 273%attr(755,root,root) %{_libdir}/fvwm/FvwmWindowMenu
274%{_datadir}/fvwm/perllib
b8115d7b
JB
275%{_mandir}/man1/fvwm-perllib.1*
276%{_mandir}/man1/FvwmDebug.1*
ce3da2d3 277%{?with_gtk:%{_mandir}/man1/FvwmGtkDebug.1*}
b8115d7b 278%{_mandir}/man1/FvwmPerl.1*
0dd3967a 279%{_mandir}/man1/FvwmWindowMenu.1*
This page took 0.095134 seconds and 4 git commands to generate.