X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fvwm2.spec;h=19398d5b1bb45030333da07351088facfc3e4111;hb=1e2d56837afbaf8530b02bf64d3a22a3de21c180;hp=e4bc5bea5a9c91a6097c999d5463a05468e5cb85;hpb=3e12c409202acd641989e70a155cfc3db8f59193;p=packages%2Ffvwm2.git diff --git a/fvwm2.spec b/fvwm2.spec index e4bc5be..19398d5 100644 --- a/fvwm2.spec +++ b/fvwm2.spec @@ -1,29 +1,66 @@ -Summary: An improved version of the FVWM X-based window manager. +# +# TODO: more updates in system.fvwm2rc (see warnings on run) +# +# Conditional build: +%bcond_without stroke # without mouse strokes (gestures) support +%bcond_without xft # without Xft (1 or 2) support +%bcond_with fribidi # with bidirectional text support +%bcond_with gnome # with gnome-libs +%bcond_with rplay # with internal sound support (through rplay) +# +%include /usr/lib/rpm/macros.perl +Summary: An improved version of the FVWM X-based window manager +Summary(de.UTF-8): F(?) Virtual Window Manager +Summary(es.UTF-8): Administrador de ventanas semejante al mwm +Summary(fr.UTF-8): F(?) Virtual Window Manager +Summary(ja.UTF-8): 改良版 FVWM - X 用ウィンドウマネージャ +Summary(pl.UTF-8): Ulepszona wersja zarządcy okien FVWM +Summary(pt_BR.UTF-8): Gerenciador de janelas semelhante ao mwm +Summary(ru.UTF-8): Виртуальный оконный менеджер F(?) +Summary(tr.UTF-8): Yaygın bir pencere denetleyicisi Name: fvwm2 -Version: 2.2.4 -Release: 7 +Version: 2.5.26 +Release: 1 License: GPL Group: X11/Window Managers -Group(pl): X11/Zarz±dcy Okien -Group(es): X11/Administraadores De Ventanas -Group(fr): X11/Gestionnaires De Fenêtres -URL: http://www.fvwm.org/ -Source0: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.gz +Source0: ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-%{version}.tar.bz2 +# Source0-md5: a1c225fe6497bf86a59cac561abd9064 Source1: fvwm-2.0.46.icons.tar.gz -Source2: fvwm2.desktop -Source3: fvwm2-system.fvwm2rc.tar.gz +# Source1-md5: 8d81420cf49442fca4bb2b61ae54eeb9 +Source2: %{name}.desktop +Source3: %{name}-system.%{name}rc.tar.gz +# Source3-md5: 22c1f6c5ab4bd84376daa37debd3e889 Source4: %{name}.RunWM -Source5: %{name}.wm_style -Patch0: fvwm2-paths.patch -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Requires: fvwm2-icons -Requires: wmconfig >= 0.9.9-5 +Source5: mozilla.xpm +Source6: %{name}-xsession.desktop +Patch0: %{name}-paths.patch +Patch1: FvwmPager.patch +Patch2: %{name}-locale_names.patch +Patch3: %{name}-varia.patch +URL: http://www.fvwm.org/ +BuildRequires: autoconf +BuildRequires: automake +%{?with_fribidi:BuildRequires: fribidi-devel} +%{?with_gnome:BuildRequires: gnome-libs-devel} +BuildRequires: gtk+-devel +BuildRequires: libpng-devel +%{?with_stroke:BuildRequires: libstroke-devel} +BuildRequires: readline-devel >= 4.2 +%{?with_rplay:BuildRequires: rplay-devel} +BuildRequires: rpm-perlprov +%{?with_xft:BuildRequires: xorg-lib-libXft-devel} +BuildRequires: xorg-lib-libXpm-devel +BuildRequires: xorg-lib-libXt-devel +Requires(post): vfmg >= 0.9.95 +Requires: fvwm2-icons = %{version}-%{release} Requires: m4 -Requires: xinitrc >= 3.0 +Requires: vfmg >= 0.9.18-2 Obsoletes: fvwm95 +Conflicts: filesystem < 3.0-20 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir /usr/X11R6/man +%define _sysconfdir /etc/X11/fvwm2 +%define _wmpropsdir /usr/share/gnome/wm-properties %description FVWM2 (the F stands for whatever you want, but the VWM stands for @@ -31,103 +68,198 @@ Virtual Window Manager) is an improved version of the FVWM window manager for the X Window System and shares the same characteristics as FVWM. -Install the fvwm2 package if you'd like to use the FVWM2 window -manager. If you install fvwm2, you'll also need to install -fvwm2-icons. +%description -l es.UTF-8 +Fvwm2 es una versión del popular administrador de ventanas "Feeble +Virtual Window Manager". + +%description -l ja.UTF-8 +FVWM2 (Fは好きなように解釈してください。ただし、 VWM は Virtual Window +Manager を省略したものです。)は FVWM と同じ特徴を持ち 更に拡張された X +Window System 用ウィンドウマネージャです。 -%description -l pl -FVWM (za F mo¿na sobie podstawic co kto woli, lecz VWM pochodzi od -pierwszych liter "Virtual Window Manager", czyli wirtualnego mened¿era -okien) to ulepszona wersja mened¿era okien dla systemu X Window FVWM i -posiada te same cechy. +%description -l pl.UTF-8 +FVWM (za F można sobie podstawić co kto woli, lecz VWM pochodzi od +pierwszych liter "Virtual Window Manager", czyli wirtualny zarządca +okien) to ulepszona wersja zarządcy okien dla systemu X Window FVWM i +posiadająca te same cechy. -Nale¿y zainstalowaæ pakiet fvwm2 jesli chce siê uzywaæ mened¿era okien -FVWM2. Instaluj±c fvwm2 nalezy równiez zainstalowaæ pakiet -fvwm2-icons. +%description -l pt_BR.UTF-8 +Fvwm2 é uma versão do popular gerenciador de janelas "Feeble Virtual +Window Manager". + +%description -l ru.UTF-8 +fvwm2 - это версия популярного "Feeble Virtual Window Manager". %package icons Summary: Graphic files used by the FVWM and FVWM2 window managers +Summary(de.UTF-8): Symbole und Pixmaps für fvwm +Summary(fr.UTF-8): Icônes et pixmaps pour fvwm +Summary(pl.UTF-8): Pliki graficzne używane przez zarządców okien FVWM i FVWM2 +Summary(ru.UTF-8): Пиктограммы и растровые картинки для fvwm2 +Summary(tr.UTF-8): Fvwm için çeşitli minik görüntü ve simgeler Group: X11/Window Managers -Group(pl): X11/Zarz±dcy Okien -Group(es): X11/Administraadores De Ventanas -Group(fr): X11/Gestionnaires De Fenêtres Obsoletes: fvwm95-icons %description icons -The fvwm2-icons package contains icons, bitmaps and pixmaps used by -the FVWM and FVWM2 X Window System window managers. +This package contains icons, bitmaps and pixmaps for fvwm and fvwm2. + +%description icons -l de.UTF-8 +Dieses Paket enthält Symbole, Bitmaps und Pixmaps für fvwm und fvwm2. + +%description icons -l fr.UTF-8 +Ce package contient des icones, bitmaps et pixmaps pour fvwm et fvwm2. + +%description icons -l pl.UTF-8 +Ten pakiet zawiera ikony, bitmapy i pixmapy dla fvwm i fvwm2. + +%description icons -l ru.UTF-8 +Этот пакет содержит пиктограммы и прочие картинки для fvwm2. -You'll need to install fvwm2-icons if you are installing fvwm and/or -fvwm2. +%description icons -l tr.UTF-8 +Fvwm için çeşitli minik görüntü ve simgeler. + +%package perl +Summary: fvwm-perllib, FvwmPerl and dependent modules +Summary(pl.UTF-8): fvwm-perllib, FvwmPerl i zależne moduły +Group: X11/Window Managers/Tools +Requires: %{name} = %{version}-%{release} + +%description perl +fvwm-perllib, FvwmPerl and dependent modules. + +%description perl -l pl.UTF-8 +fvwm-perllib, FvwmPerl i zależne moduły. %prep %setup -n fvwm-%{version} -q -a1 -a3 %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +mv -f po/FvwmScript.sv{_SE,}.po +mv -f po/FvwmTaskBar.sv{_SE,}.po +mv -f po/fvwm.sv{_SE,}.po %build -CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions" \ -CFLAGS="$RPM_OPT_FLAGS" ./configure \ - --prefix=%{_prefix} \ - --enable-extras \ - --libexecdir=\${prefix}/lib/X11/fvwm2 \ - --sysconfdir=%{_sysconfdir}/X11/fvwm2 \ - --mandir=%{_mandir} -%{__make} \ - CFLAGS="$RPM_OPT_FLAGS" \ - CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions" +rm -f missing +%{__aclocal} +%{__autoconf} +%{__automake} +%configure \ + --disable-dmalloc \ + --disable-efence \ + --%{!?debug:dis}%{?debug:en}able-debug-msgs \ + --disable-command-log \ + %{!?with_fribidi:--disable-bidi} \ + %{!?with_xft:--disable-xft} \ + --enable-multibyte \ + --enable-shape \ + --enable-sm \ + %{?with_gnome:--with-gnome}%{!?with_gnome:--without-gnome} \ + --with-xpm-library \ + %{!?with_rplay:--without-rplay-library} \ + --with-stroke-library \ + --with-ncurses-library \ + --with-readline-library \ + --with-ncurses-library \ + --with-iconv-library=no \ + --without-termcap-library + +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig/wmstyle,X11/fvwm2} \ - $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties %{__make} install \ - prefix=$RPM_BUILD_ROOT%{_prefix} \ - sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2 \ - mandir=$RPM_BUILD_ROOT%{_mandir} + DESTDIR=$RPM_BUILD_ROOT -install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2 -install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir}/X11/fvwm2 +install -d \ + $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/wmstyle,%{_wmpropsdir}} \ + $RPM_BUILD_ROOT{%{_datadir}/{locale,xsessions},%{_pixmapsdir}/mini} -rm -rf $RPM_BUILD_ROOT%{_datadir}/icons -install -d $RPM_BUILD_ROOT%{_datadir}/icons/mini +install system.fvwm2rc $RPM_BUILD_ROOT%{_sysconfdir}/system.fvwm2rc +install fvwm2.menu.m4 $RPM_BUILD_ROOT%{_sysconfdir} -install icons/*.xpm $RPM_BUILD_ROOT%{_datadir}/icons -mv $RPM_BUILD_ROOT%{_datadir}/icons/mini.*.xpm $RPM_BUILD_ROOT%{_datadir}/icons/mini +install icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir} -install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties +mv $RPM_BUILD_ROOT%{_pixmapsdir}/mini-*.xpm \ + $RPM_BUILD_ROOT%{_pixmapsdir}/mini -install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh -install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.names +# Conflicts with wmmaker +mv $RPM_BUILD_ROOT%{_pixmapsdir}/xv{,-fvwm}.xpm -# consflicts with gimp -rm -f $RPM_BUILD_ROOT/usr/X11R6/share/icons/{folder,question}.xpm +install %{SOURCE2} $RPM_BUILD_ROOT%{_wmpropsdir} +install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh +install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop +touch $RPM_BUILD_ROOT%{_sysconfdir}/fvwm2.menu2 -strip --strip-unneeded $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/X11/fvwm2}/* || : +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1 +echo ".so fvwm-root.1" > $RPM_BUILD_ROOT%{_mandir}/man1/xpmroot.1 -gzip -9nf README AUTHORS NEWS ChangeLog \ - $RPM_BUILD_ROOT%{_mandir}/man1/* +%find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT -%files +%post +# generate initial menu +[ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg +[ "$FVWM2" = yes -o "$FVWM2" = 1 -o ! -f /etc/X11/fvwm2/fvwm2.menu2 ] && \ + vfmg fvwm2 >/etc/X11/fvwm2/fvwm2.menu2 2>/dev/null ||: + +%files -f %{name}.lang %defattr(644,root,root,755) -%doc {README,AUTHORS,NEWS,ChangeLog}.gz -%doc docs -%dir /etc/X11/fvwm2 -%config /etc/X11/fvwm2/* +%doc README AUTHORS NEWS docs +%dir %{_sysconfdir} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fvwm2.menu.m4 +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/system.fvwm2rc +%ghost %{_sysconfdir}/fvwm2.menu2 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh -/etc/sysconfig/wmstyle/*.names -%dir %{_libdir}/X11/fvwm2 -%attr(755,root,root) %{_libdir}/X11/fvwm2/* -%attr(755,root,root) %{_bindir}/* -%{_datadir}/gnome/wm-properties/fvwm2.desktop -%{_mandir}/man1/* +%attr(755,root,root) %{_bindir}/[!f]* +%attr(755,root,root) %{_bindir}/fvwm +%attr(755,root,root) %{_bindir}/fvwm2 +%attr(755,root,root) %{_bindir}/fvwm-[!p]* +%dir %{_libdir}/fvwm +%attr(755,root,root) %{_libdir}/fvwm/Fvwm[!DGPWT]* +%attr(755,root,root) %{_libdir}/fvwm/FvwmD[!e]* +%attr(755,root,root) %{_libdir}/fvwm/FvwmGtk +%attr(755,root,root) %{_libdir}/fvwm/FvwmP[!e]* +%attr(755,root,root) %{_libdir}/fvwm/FvwmT[!a]* +%attr(755,root,root) %{_libdir}/fvwm/FvwmTaskBar +%attr(755,root,root) %{_libdir}/fvwm/FvwmW[!i]* +%attr(755,root,root) %{_libdir}/fvwm/FvwmWinList +%dir %{_datadir}/fvwm +%{_datadir}/fvwm/[!p]* +%{_datadir}/xsessions/%{name}.desktop +%{_wmpropsdir}/fvwm2.desktop +%{_mandir}/man1/[!Ff]*.1* +%{_mandir}/man1/Fvwm[!DGPW]*.1* +%{_mandir}/man1/FvwmD[!e]*.1* +%{_mandir}/man1/FvwmP[!e]*.1* +%{_mandir}/man1/FvwmW[!i]*.1* +%{_mandir}/man1/FvwmWinList.1* +%{_mandir}/man1/fvwm.1* +%{_mandir}/man1/fvwm-[!p]*.1* %files icons %defattr(644,root,root,755) -%dir %{_datadir}/icons -%dir %{_datadir}/icons/mini -%{_datadir}/icons/*.xpm -%{_datadir}/icons/mini/*.xpm +%{_pixmapsdir}/*.xpm +%dir %{_pixmapsdir}/mini +%{_pixmapsdir}/mini/*.xpm + +%files perl +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/fvwm-perllib +%attr(755,root,root) %{_libdir}/fvwm/FvwmDebug +%attr(755,root,root) %{_libdir}/fvwm/FvwmGtkDebug +%attr(755,root,root) %{_libdir}/fvwm/FvwmPerl +%attr(755,root,root) %{_libdir}/fvwm/FvwmTabs +%attr(755,root,root) %{_libdir}/fvwm/FvwmWindowMenu +%{_datadir}/fvwm/perllib +%{_mandir}/man1/fvwm-perllib.1* +%{_mandir}/man1/FvwmDebug.1* +%{_mandir}/man1/FvwmGtkDebug.1* +%{_mandir}/man1/FvwmPerl.1* +%{_mandir}/man1/FvwmWindowMenu.1*