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