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