fvwm2/fvwm2.spec

200 lines
6.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package fvwm2
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Accepting request 98593 from home:vitezslav_cizek:branches:X11:windowmanagers - update to 2.6.3 dropped libpng patch New features over 2.5.26: * Support libpng 1.4 and 1.5.0's slightly newer APIs * New extended variable $[w.visiblename] * Style matching now honours the window's visible name * New style InitialMapCommand allows to execute any command when a window is mapped first. * New option to PrintInfo, "bindings" which prints out all of the Key, PointerKey, Mouse and Stroke bindings which fvwm knows about. * New differentiated options for SnapAttraction when snapping against screen edges: * New option to the BugOpts command * New BugOpts option QtDragnDropWorkaround to work around an oddity in handling drag-n-drop events to Qt applications. * New MenuStyle "UniqueHotkeyActivatesImmediate" and its negation "!UniqueHotkeyActivatesImmediate" to retain the menu until the user presses one of the menu keybindings to enact that change in the case where there's only one item defined in the menu at the specified hotkey. * New Style commands * New Resize argument to direction * Couple of changes to the Move command: * The EWMH working area is now honoured by default. * To move a window ignoring the working area, the option "ewmhiwa" can be used, similar to how the Maximize command works. * New expansion placeholder $[pointer.screen] to return the screen number the pointer is on. OBS-URL: https://build.opensuse.org/request/show/98593 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fvwm2?expand=0&rev=19
2012-01-03 13:16:02 +01:00
Name: fvwm2
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libstroke-devel
BuildRequires: libxslt-tools
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: update-desktop-files
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)
Provides: fvwm
Provides: fvwmicns
Provides: windowmanager
Provides: xpmroot
Obsoletes: fvwm
Obsoletes: xpmroot
Version: 2.6.5
Release: 0
Summary: Improved Version of FVWM Window Manager
Accepting request 98593 from home:vitezslav_cizek:branches:X11:windowmanagers - update to 2.6.3 dropped libpng patch New features over 2.5.26: * Support libpng 1.4 and 1.5.0's slightly newer APIs * New extended variable $[w.visiblename] * Style matching now honours the window's visible name * New style InitialMapCommand allows to execute any command when a window is mapped first. * New option to PrintInfo, "bindings" which prints out all of the Key, PointerKey, Mouse and Stroke bindings which fvwm knows about. * New differentiated options for SnapAttraction when snapping against screen edges: * New option to the BugOpts command * New BugOpts option QtDragnDropWorkaround to work around an oddity in handling drag-n-drop events to Qt applications. * New MenuStyle "UniqueHotkeyActivatesImmediate" and its negation "!UniqueHotkeyActivatesImmediate" to retain the menu until the user presses one of the menu keybindings to enact that change in the case where there's only one item defined in the menu at the specified hotkey. * New Style commands * New Resize argument to direction * Couple of changes to the Move command: * The EWMH working area is now honoured by default. * To move a window ignoring the working area, the option "ewmhiwa" can be used, similar to how the Maximize command works. * New expansion placeholder $[pointer.screen] to return the screen number the pointer is on. OBS-URL: https://build.opensuse.org/request/show/98593 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fvwm2?expand=0&rev=19
2012-01-03 13:16:02 +01:00
License: GPL-2.0+
Group: System/GUI/Other
Url: http://www.fvwm.org
Source0: fvwm-%{version}.tar.bz2
Source1: fvwm_icons.tar.bz2
Source3: %name.desktop
Source4: system.fvwm2rc
Source5: _system.fvwm2rc
Source6: openSuSE.xpm
#SOURCE-FIX-OPENSUSE for snapshot 2012/10/11
Source7: fvwm-menu-desktop-config.fpl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: desktop-data
Requires: mktemp
Requires: xdg-menu
Requires: xli
Patch0: fvwm-configure.patch
Accepting request 98593 from home:vitezslav_cizek:branches:X11:windowmanagers - update to 2.6.3 dropped libpng patch New features over 2.5.26: * Support libpng 1.4 and 1.5.0's slightly newer APIs * New extended variable $[w.visiblename] * Style matching now honours the window's visible name * New style InitialMapCommand allows to execute any command when a window is mapped first. * New option to PrintInfo, "bindings" which prints out all of the Key, PointerKey, Mouse and Stroke bindings which fvwm knows about. * New differentiated options for SnapAttraction when snapping against screen edges: * New option to the BugOpts command * New BugOpts option QtDragnDropWorkaround to work around an oddity in handling drag-n-drop events to Qt applications. * New MenuStyle "UniqueHotkeyActivatesImmediate" and its negation "!UniqueHotkeyActivatesImmediate" to retain the menu until the user presses one of the menu keybindings to enact that change in the case where there's only one item defined in the menu at the specified hotkey. * New Style commands * New Resize argument to direction * Couple of changes to the Move command: * The EWMH working area is now honoured by default. * To move a window ignoring the working area, the option "ewmhiwa" can be used, similar to how the Maximize command works. * New expansion placeholder $[pointer.screen] to return the screen number the pointer is on. OBS-URL: https://build.opensuse.org/request/show/98593 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fvwm2?expand=0&rev=19
2012-01-03 13:16:02 +01:00
Patch1: fvwm-2.5.26-gcc-warnings.patch
Patch2: fvwm-2.5.26-ia64.patch
Patch3: fvwm-2.5.26-sv_SE.patch
Patch5: fvwm-2.5.26-charset_in_title.patch
Patch7: fvwm-2.5.26-no-copy-dt-needed-entries.patch
#PATCH-FIX-OPENSUSE Avoid including internal rsvg-cairo.h
Patch8: fvwm-rsvg.patch
#PATCH-FIX-UPSTREAM Avoid crash due freeing inot set icon names
Patch9: fvwm-2.6.5-eventcrash.patch
Patch10: fvwm-no-date-time.patch
#PATCH-FIX-OPENSUSE Update to snapshot 2012/10/11
Patch42: fvwm-snapshot.patch
%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
compatible with the Motif MWM.
%define _xorg7libs %_lib
%define _xorg7bin bin
%define _xorg7libs32 lib
%define _xorg7libshare share
%define _xorg7prefix /usr
%define _xorg7mandir %_mandir
%prep
%setup -q -n fvwm-%{version}
%patch42
%patch0
%patch1
%patch2
%patch3
%patch5
%patch7 -p1
%if 0%{suse_version} > 1220
%patch8
%endif
%patch9
%patch10
find . -name *sv_SE* |xargs rename sv_SE sv
mkdir icons
tar -C icons -j -x -v -f $RPM_SOURCE_DIR/fvwm_icons.tar.bz2
cp %{S:6} icons
cp %{S:7} bin/
#
# build
%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
LDFLAGS="-L/usr/%_lib" \
./configure \
--prefix=%{_xorg7prefix} \
--bindir=%{_prefix}/%{_xorg7bin} \
--sysconfdir=/etc/X11/fvwm2 \
--libexecdir=%{_xorg7prefix}/lib/X11/fvwm2 \
--mandir=%{_xorg7mandir} \
--x-includes=%{_xorg7prefix}/include \
--x-libraries=%{_xorg7prefix}/%_lib \
--with-imagepath=%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps:%{_prefix}/%{_xorg7libshare}/X11/fvwm2/bitmaps:/usr/share/wallpapers \
--disable-gtk
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
#make prefix=$RPM_BUILD_ROOT%{_xorg7prefix} \
# sysconfdir=$RPM_BUILD_ROOT/etc/X11/fvwm2 \
# install
#
# default config
install -d -m 755 $RPM_BUILD_ROOT/etc/X11/fvwm2
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/etc/X11/fvwm2/system.fvwm2rc
#
# some extra utils
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils
install utils/quantize_pixmaps $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils
#
# documentation for modules
rm sample.fvwmrc/Makefile* sample.fvwmrc/system.fvwm2rc-sample-95
rm docs/Makefile*
install -d -m 755 docu-module
for i in `find -name "README*" ! -name "*,v" ! -name "*.orig"`
do
TMPDIR=`dirname ${i#./}`
if [ "x$TMPDIR" = "x." ]; then
install -m 644 $i docu-module/${i#./}
else
install -m 644 $i docu-module/README.`basename "$TMPDIR"`
fi
done
#
# icons
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps
install -m 644 icons/* $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps
#
# install kdm/gdm entry
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/
install -m 0644 %SOURCE3 $RPM_BUILD_ROOT/usr/share/xsessions/
# removing the useless README.vms file
rm -f $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/fvwm2/README.vms
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/xsessions/%name.desktop
%find_lang fvwm %{name}.lang
%find_lang FvwmScript %{name}.lang
%find_lang FvwmTaskBar %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS docs sample.fvwmrc docu-module/*
%dir /etc/X11/fvwm2
%config /etc/X11/fvwm2/system.fvwm2rc
%{_prefix}/%{_xorg7bin}/*
%{_prefix}/%{_xorg7libs32}/X11/fvwm2/*
%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps/*
#%{_xorg7prefix}/share/locale/*/*/*
%{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils/quantize_pixmaps
%dir %{_xorg7prefix}/lib/X11/fvwm2
%{_xorg7prefix}/share/fvwm
%dir %{_prefix}/%{_xorg7libshare}/X11/fvwm2
%dir %{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps
%dir %{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils
%{_xorg7mandir}/man1/*
%{_datadir}/xsessions/*desktop
%changelog