]> git.pld-linux.org Git - packages/fvwm2.git/blob - fvwm2.spec
f7e1d8b46500e3a19ead2742955d7cb944bb6896
[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
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):    F(?) Virtual Window Manager
14 Summary(es):    Administrador de ventanas semejante al mwm
15 Summary(fr):    F(?) Virtual Window Manager
16 Summary(ja):    ²þÎÉÈÇ FVWM - X ÍÑ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã
17 Summary(tr):    Yaygýn bir pencere denetleyicisi
18 Summary(pl):    Ulepszona wersja zarz±dcy okien FVWM
19 Summary(pt_BR): Gerenciador de janelas semelhante ao mwm
20 Summary(ru):    ÷ÉÒÔÕÁÌØÎÙÊ ÏËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ F(?)
21 Name:           fvwm2
22 Version:        2.5.10
23 Release:        3
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:  b3c86e2af2a4eabe692c9c849ff4b243
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
34 Source5:        mozilla.xpm
35 Source6:        %{name}-xsession.desktop
36 Patch0:         %{name}-paths.patch
37 Patch1:         FvwmIconMan.patch
38 Patch2:         FvwmPager.patch
39 Patch3:         %{name}-locale_names.patch
40 Patch4:         %{name}-varia.patch
41 URL:            http://www.fvwm.org/
42 %{?with_xft:BuildRequires:      xft-devel}
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
49 %{?with_stroke:BuildRequires:   libstroke-devel}
50 BuildRequires:  readline-devel >= 4.2
51 %{?with_rplay:BuildRequires:    rplay-devel}
52 BuildRequires:  rpm-perlprov
53 Requires(post): vfmg >= 0.9.18-2
54 Requires:       fvwm2-icons = %{version}-%{release}
55 Requires:       m4
56 Requires:       vfmg >= 0.9.18-2
57 Requires:       xinitrc-ng
58 Requires:       XFree86-tools
59 Obsoletes:      fvwm95
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %define         _sysconfdir     /etc/X11/fvwm2
63 %define         _wmpropsdir     /usr/share/wm-properties
64
65 %description
66 FVWM2 (the F stands for whatever you want, but the VWM stands for
67 Virtual Window Manager) is an improved version of the FVWM window
68 manager for the X Window System and shares the same characteristics as
69 FVWM.
70
71 %description -l es
72 Fvwm2 es una versión del popular administrador de ventanas "Feeble
73 Virtual Window Manager".
74
75 %description -l ja
76 FVWM2 (F¤Ï¹¥¤­¤Ê¤è¤¦¤Ë²ò¼á¤·¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À¤·¡¢ VWM ¤Ï Virtual Window
77 Manager ¤ò¾Êά¤·¤¿¤â¤Î¤Ç¤¹¡£)¤Ï FVWM ¤ÈƱ¤¸ÆÃħ¤ò»ý¤Á ¹¹¤Ë³ÈÄ¥¤µ¤ì¤¿ X
78 Window System ÍÑ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Ç¤¹¡£
79
80 %description -l pl
81 FVWM (za F mo¿na sobie podstawiæ co kto woli, lecz VWM pochodzi od
82 pierwszych liter "Virtual Window Manager", czyli wirtualny zarz±dca
83 okien) to ulepszona wersja zarz±dcy okien dla systemu X Window FVWM i
84 posiadaj±ca te same cechy.
85
86 %description -l pt_BR
87 Fvwm2 é uma versão do popular gerenciador de janelas "Feeble Virtual
88 Window Manager".
89
90 %description -l ru
91 fvwm2 - ÜÔÏ ×ÅÒÓÉÑ ÐÏÐÕÌÑÒÎÏÇÏ "Feeble Virtual Window Manager".
92
93 %package icons
94 Summary:        Graphic files used by the FVWM and FVWM2 window managers
95 Summary(de):    Symbole und Pixmaps für fvwm
96 Summary(fr):    Icônes et pixmaps pour fvwm
97 Summary(pl):    Pliki graficzne u¿ywane przez zarz±dców okien FVWM i FVWM2
98 Summary(ru):    ðÉËÔÏÇÒÁÍÍÙ É ÒÁÓÔÒÏ×ÙÅ ËÁÒÔÉÎËÉ ÄÌÑ fvwm2
99 Summary(tr):    Fvwm için çeþitli minik görüntü ve simgeler
100 Group:          X11/Window Managers
101 Obsoletes:      fvwm95-icons
102
103 %description icons
104 This package contains icons, bitmaps and pixmaps for fvwm and fvwm2.
105
106 %description icons -l de
107 Dieses Paket enthält Symbole, Bitmaps und Pixmaps für fvwm und fvwm2.
108
109 %description icons -l fr
110 Ce package contient des icones, bitmaps et pixmaps pour fvwm et fvwm2.
111
112 %description icons -l pl
113 Ten pakiet zawiera ikony, bitmapy i pixmapy dla fvwm i fvwm2.
114
115 %description icons -l ru
116 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÉËÔÏÇÒÁÍÍÙ É ÐÒÏÞÉÅ ËÁÒÔÉÎËÉ ÄÌÑ fvwm2.
117
118 %description icons -l tr
119 Fvwm için çeþitli minik görüntü ve simgeler.
120
121 %package perl
122 Summary:        fvwm-perllib, FvwmPerl and dependent modules
123 Summary(pl):    fvwm-perllib, FvwmPerl i zale¿ne modu³y
124 Group:          X11/Window Managers/Tools
125 Requires:       %{name} = %{version}
126
127 %description perl
128 fvwm-perllib, FvwmPerl and dependent modules.
129
130 %description perl -l pl
131 fvwm-perllib, FvwmPerl i zale¿ne modu³y.
132
133 %prep
134 %setup -n fvwm-%{version} -q -a1 -a3
135 %patch0 -p1
136 %patch1 -p1
137 %patch2 -p1
138 %patch3 -p1
139 %patch4 -p1
140
141 mv -f po/FvwmScript.sv{_SE,}.po
142 mv -f po/FvwmTaskBar.sv{_SE,}.po
143 mv -f po/fvwm.sv{_SE,}.po
144
145 %build
146 rm -f missing
147 %{__aclocal}
148 %{__autoconf}
149 %{__automake}
150 %configure \
151         --disable-dmalloc \
152         --disable-efence \
153         --%{!?debug:dis}%{?debug:en}able-debug-msgs \
154         --disable-command-log \
155         %{!?with_fribidi:--disable-bidi} \
156         %{!?with_xft:--disable-xft} \
157         --enable-multibyte \
158         --enable-shape \
159         --enable-sm \
160         %{?with_gnome:--with-gnome}%{!?with_gnome:--without-gnome} \
161         --with-xpm-library \
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
169
170 %{__make}
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT
177
178 install -d \
179         $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/wmstyle,%{_wmpropsdir}} \
180         $RPM_BUILD_ROOT{%{_datadir}/{locale,xsessions},%{_pixmapsdir}/mini}
181
182 install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}
183
184 install icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
185
186 mv $RPM_BUILD_ROOT%{_pixmapsdir}/mini-*.xpm \
187         $RPM_BUILD_ROOT%{_pixmapsdir}/mini
188
189 # Conflicts with wmmaker
190 mv $RPM_BUILD_ROOT%{_pixmapsdir}/xv{,-fvwm}.xpm
191
192 install %{SOURCE2} $RPM_BUILD_ROOT%{_wmpropsdir}
193 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh
194 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
195 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
196 touch $RPM_BUILD_ROOT/etc/X11/fvwm2/fvwm2.menu2
197
198 %find_lang %{name} --all-name
199
200 %clean
201 rm -rf $RPM_BUILD_ROOT
202
203 %post
204 # generate initial menu
205 [ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg
206 [ $FVWM2 = yes -o $FVWM2 = 1 -o ! -f /etc/X11/fvwm2/fvwm2.menu2 ] && \
207         vfmg -i -f -x -c fvwm2 >/etc/X11/fvwm2/fvwm2.menu2 2>/dev/null ||:
208
209 %files -f %{name}.lang
210 %defattr(644,root,root,755)
211 %doc README AUTHORS NEWS docs
212 %dir /etc/X11/fvwm2
213 %config(noreplace) %verify(not size mtime md5) /etc/X11/fvwm2/fvwm2.menu.m4
214 %config(noreplace) %verify(not size mtime md5) /etc/X11/fvwm2/system.fvwm2rc
215 %ghost /etc/X11/fvwm2/fvwm2.menu2
216 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
217 %attr(755,root,root) %{_bindir}/[!f]*
218 %attr(755,root,root) %{_bindir}/fvwm
219 %attr(755,root,root) %{_bindir}/fvwm2
220 %attr(755,root,root) %{_bindir}/fvwm-[!p]*
221 %dir %{_libdir}/fvwm
222 %attr(755,root,root) %{_libdir}/fvwm/Fvwm[!DGPW]*
223 %attr(755,root,root) %{_libdir}/fvwm/FvwmD[!e]*
224 %attr(755,root,root) %{_libdir}/fvwm/FvwmGtk
225 %attr(755,root,root) %{_libdir}/fvwm/FvwmP[!e]*
226 %attr(755,root,root) %{_libdir}/fvwm/FvwmW[!i]*
227 %attr(755,root,root) %{_libdir}/fvwm/FvwmWinList
228 %dir %{_datadir}/fvwm
229 %{_datadir}/fvwm/[!p]*
230 %{_datadir}/xsessions/%{name}.desktop
231 %{_wmpropsdir}/fvwm2.desktop
232 %{_mandir}/man1/[!Ff]*.1*
233 %{_mandir}/man1/Fvwm[!DGPW]*.1*
234 %{_mandir}/man1/FvwmD[!e]*.1*
235 %{_mandir}/man1/FvwmP[!e]*.1*
236 %{_mandir}/man1/FvwmW[!i]*.1*
237 %{_mandir}/man1/FvwmWinList.1*
238 %{_mandir}/man1/fvwm.1*
239 %{_mandir}/man1/fvwm-[!p]*.1*
240
241 %files icons
242 %defattr(644,root,root,755)
243 %{_pixmapsdir}/*.xpm
244 %{_pixmapsdir}/mini/*.xpm
245
246 %files perl
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_bindir}/fvwm-perllib
249 %attr(755,root,root) %{_libdir}/fvwm/FvwmDebug
250 %attr(755,root,root) %{_libdir}/fvwm/FvwmGtkDebug
251 %attr(755,root,root) %{_libdir}/fvwm/FvwmPerl
252 %attr(755,root,root) %{_libdir}/fvwm/FvwmWindowMenu
253 %{_datadir}/fvwm/perllib
254 %{_mandir}/man1/fvwm-perllib.1*
255 %{_mandir}/man1/FvwmDebug.1*
256 %{_mandir}/man1/FvwmGtkDebug.1*
257 %{_mandir}/man1/FvwmPerl.1*
258 %{_mandir}/man1/FvwmWindowMenu.1*
This page took 0.042916 seconds and 2 git commands to generate.