2006-12-19 23:22:37 +01:00
|
|
|
#
|
2011-03-17 10:29:31 +01:00
|
|
|
# spec file for package fvwm2
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
2020-03-04 07:53:52 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
2009-06-18 17:37:29 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-03-04 07:53:52 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
|
|
|
|
2012-01-03 13:16:02 +01:00
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
Name: fvwm2
|
2019-09-09 09:46:13 +02:00
|
|
|
Version: 2.6.9
|
2016-03-03 15:18:09 +01:00
|
|
|
Release: 0
|
2017-02-10 19:16:06 +01:00
|
|
|
Summary: The F Virtual Window Manager
|
2018-05-18 15:36:11 +02:00
|
|
|
License: GPL-2.0-or-later
|
2016-03-03 15:18:09 +01:00
|
|
|
Group: System/GUI/Other
|
2018-10-05 12:45:39 +02:00
|
|
|
URL: http://www.fvwm.org
|
|
|
|
Source0: https://github.com/fvwmorg/fvwm/releases/download/%{version}/fvwm-%{version}.tar.gz
|
2016-03-03 15:18:09 +01:00
|
|
|
Source1: fvwm_icons.tar.bz2
|
|
|
|
Source3: %{name}.desktop
|
|
|
|
Source4: system.fvwm2rc
|
2018-10-05 12:45:39 +02:00
|
|
|
Source6: openSUSE.xpm
|
2016-03-03 15:18:09 +01:00
|
|
|
Patch0: fvwm-configure.patch
|
2018-10-05 12:45:39 +02:00
|
|
|
Patch1: fvwm-2.5.26-sv_SE.patch
|
|
|
|
Patch2: fvwm-no-date-time.patch
|
|
|
|
Patch3: enable-more-mouse-buttons.patch
|
2011-12-02 08:17:40 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libstroke-devel
|
2013-04-04 12:01:10 +02:00
|
|
|
BuildRequires: libxslt-tools
|
2011-12-02 08:17:40 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-10-05 12:45:39 +02:00
|
|
|
BuildRequires: python3-base
|
2011-12-02 08:17:40 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2014-10-07 13:54:45 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(fribidi)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(sm)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xft)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
#not actually used but includes its headers anyway..
|
|
|
|
BuildRequires: pkgconfig(xt)
|
2016-03-03 15:18:09 +01:00
|
|
|
Requires: desktop-data
|
|
|
|
Requires: mktemp
|
2016-08-18 14:13:33 +02:00
|
|
|
Requires: wallpaper-branding
|
2016-03-03 15:18:09 +01:00
|
|
|
Requires: xdg-menu
|
|
|
|
Requires: xli
|
2018-05-18 15:36:11 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2013-07-22 16:43:54 +02:00
|
|
|
Provides: fvwm
|
|
|
|
Provides: fvwmicns
|
|
|
|
Provides: windowmanager
|
|
|
|
Provides: xpmroot
|
|
|
|
Obsoletes: fvwm
|
|
|
|
Obsoletes: xpmroot
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
FVWM is a virtual desktop window manager for the X Window System.
|
|
|
|
|
|
|
|
FVWM is intended to have a small memory footprint but a rich feature
|
|
|
|
set, to be extremely customizable and extendible, and to be very
|
2017-02-10 19:16:06 +01:00
|
|
|
compatible with the Motif Window Manager (mwm).
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%prep
|
2008-02-28 01:55:18 +01:00
|
|
|
%setup -q -n fvwm-%{version}
|
2018-10-05 12:45:39 +02:00
|
|
|
%autopatch -p0
|
2017-02-08 10:39:44 +01:00
|
|
|
find . -name *sv_SE* -exec rename --verbose sv_SE sv '{}' \+
|
2006-12-19 23:22:37 +01:00
|
|
|
mkdir icons
|
|
|
|
tar -C icons -j -x -v -f $RPM_SOURCE_DIR/fvwm_icons.tar.bz2
|
2016-03-03 15:18:09 +01:00
|
|
|
cp %{SOURCE6} icons
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%build
|
2018-10-05 12:45:39 +02:00
|
|
|
autoreconf -fvi
|
Accepting request 417830 from home:WernerFink:branches:X11:windowmanagers
- Update to 2.6.6
* fvwm features:
- Support for Russian from Ivan Gayevskiy.
- EnvMatch supports infostore variables.
- The option "forget" to the Maximize command allows to
unmaximize a window without changing its size and position.
- Windows shaded to a corner (NW, NE, SW, SE) are reduced to a
small square.
- New option "!raise" to the WarpToWindow command.
- The new extended variables $[wa.x], $[wa.y], $[wa.width],
$[wa.height] can be used to get the geometry of the EWMH
working area, and $[dwa.x], $[dwa.y], $[dwa.width],
$[dwa.height] can be used to get the geometry of the EWMH
dynamic working area.
- The Resize commands accept "wa" or "da" as a suffix of the
width or height value. If present, the value is a percentage
of the width or height of the EWMH working area or the EWMH
dynamic working area.
- Fvwm is much more resilient against applications that flood the
window manager with repeated events.
* New module features:
- FvwmForm supports separator lines.
- New FvwmIconMan options:
IconAndSelectButton
IconAndSelectColorset
* Bug fixes:
- Provide a wrapper for the deprecation of XKeycodeToKeysym and
use XkbKeycodeToKeysym() where appropriate.
- fvwm-menu-desktop is re-written and provides better support of
the XDG menu specification.
OBS-URL: https://build.opensuse.org/request/show/417830
OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fvwm2?expand=0&rev=33
2016-08-08 14:44:57 +02:00
|
|
|
%configure \
|
2018-10-05 12:45:39 +02:00
|
|
|
--sysconfdir=%{_sysconfdir}/X11/fvwm2 \
|
|
|
|
--libexecdir=%{_prefix}/lib/X11/fvwm2 \
|
|
|
|
--with-imagepath=%{_datadir}/X11/fvwm2/pixmaps:%{_datadir}/X11/fvwm2/bitmaps:%{_datadir}/pixmaps:%{_datadir}/wallpapers
|
2016-03-03 15:18:09 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%install
|
2018-05-18 15:36:11 +02:00
|
|
|
%make_install
|
2018-10-05 12:45:39 +02:00
|
|
|
|
2020-03-04 07:53:52 +01:00
|
|
|
# missed main manual page
|
|
|
|
install -m 644 doc/fvwm/fvwm.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
# default config
|
2016-03-03 15:18:09 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/fvwm2
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/X11/fvwm2/system.fvwm2rc
|
2006-12-19 23:22:37 +01:00
|
|
|
# documentation for modules
|
2017-02-08 10:39:44 +01:00
|
|
|
rm -vf sample.fvwmrc/Makefile* sample.fvwmrc/system.fvwm2rc-sample-95
|
2018-10-05 12:45:39 +02:00
|
|
|
|
2017-02-08 10:39:44 +01:00
|
|
|
rm -vf docs/Makefile*
|
2006-12-19 23:22:37 +01:00
|
|
|
install -d -m 755 docu-module
|
2017-02-08 10:39:44 +01:00
|
|
|
for i in $(find -name "README*" -not -name "*,v" -and -not -name "*.orig")
|
2006-12-19 23:22:37 +01:00
|
|
|
do
|
2017-02-08 10:39:44 +01:00
|
|
|
TMPDIR=$(dirname ${i#./})
|
2006-12-19 23:22:37 +01:00
|
|
|
if [ "x$TMPDIR" = "x." ]; then
|
|
|
|
install -m 644 $i docu-module/${i#./}
|
|
|
|
else
|
2017-02-08 10:39:44 +01:00
|
|
|
install -m 644 $i docu-module/README.$(basename "$TMPDIR")
|
2006-12-19 23:22:37 +01:00
|
|
|
fi
|
|
|
|
done
|
2018-10-05 12:45:39 +02:00
|
|
|
|
2017-02-08 10:39:44 +01:00
|
|
|
# forbidden links
|
|
|
|
pushd %{buildroot}/
|
|
|
|
find . -type l -printf '%%P %%l\n' | while read dst src
|
|
|
|
do
|
|
|
|
case "$src" in
|
|
|
|
%{buildroot}/*)
|
|
|
|
src=${src#%{buildroot}/}
|
|
|
|
rm -vf $dst
|
|
|
|
ln -frsv $src $dst
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
popd
|
2018-10-05 12:45:39 +02:00
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
# icons
|
2018-10-05 12:45:39 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/X11/fvwm2/pixmaps
|
|
|
|
install -m 644 icons/* %{buildroot}%{_datadir}/X11/fvwm2/pixmaps
|
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
# install kdm/gdm entry
|
2016-03-03 15:18:09 +01:00
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/xsessions/
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/xsessions/
|
|
|
|
# removing the useless README.vms file
|
|
|
|
rm -f %{buildroot}/%{_docdir}/fvwm2/README.vms
|
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/%{name}.desktop
|
2011-03-16 16:10:42 +01:00
|
|
|
%find_lang fvwm %{name}.lang
|
|
|
|
%find_lang FvwmScript %{name}.lang
|
2006-12-19 23:22:37 +01:00
|
|
|
|
2018-05-18 15:36:11 +02:00
|
|
|
%post
|
|
|
|
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
|
|
|
default-xsession.desktop %{_datadir}/xsessions/fvwm2.desktop 20
|
|
|
|
|
|
|
|
%postun
|
|
|
|
[ -f %{_datadir}/xsessions/lxqt.desktop ] || %{_sbindir}/update-alternatives \
|
|
|
|
--remove default-xsession.desktop %{_datadir}/xsessions/fvwm2.desktop
|
|
|
|
|
2011-03-16 16:10:42 +01:00
|
|
|
%files -f %{name}.lang
|
2018-05-18 15:36:11 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS docs docu-module/*
|
2016-03-03 15:18:09 +01:00
|
|
|
%dir %{_sysconfdir}/X11/fvwm2
|
|
|
|
%config %{_sysconfdir}/X11/fvwm2/system.fvwm2rc
|
2018-10-05 12:45:39 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_prefix}/lib/X11/fvwm2/*
|
|
|
|
%{_datadir}/X11/fvwm2/pixmaps/*
|
|
|
|
%dir %{_prefix}/lib/X11/fvwm2
|
|
|
|
%{_datadir}/fvwm
|
|
|
|
%dir %{_datadir}/X11/fvwm2
|
|
|
|
%dir %{_datadir}/X11/fvwm2/pixmaps
|
|
|
|
%{_mandir}/man1/*
|
2006-12-19 23:22:37 +01:00
|
|
|
%{_datadir}/xsessions/*desktop
|
|
|
|
|
2007-02-16 18:21:51 +01:00
|
|
|
%changelog
|