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
|
|
|
#
|
2014-10-07 13:54:45 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-03 13:16:02 +01:00
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
Name: fvwm2
|
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
|
|
|
|
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)
|
2013-07-22 16:43:54 +02:00
|
|
|
Provides: fvwm
|
|
|
|
Provides: fvwmicns
|
|
|
|
Provides: windowmanager
|
|
|
|
Provides: xpmroot
|
|
|
|
Obsoletes: fvwm
|
|
|
|
Obsoletes: xpmroot
|
|
|
|
Version: 2.6.5
|
2011-12-02 08:17:40 +01:00
|
|
|
Release: 0
|
2006-12-19 23:22:37 +01:00
|
|
|
Summary: Improved Version of FVWM Window Manager
|
2012-01-03 13:16:02 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/GUI/Other
|
2007-10-03 00:53:10 +02:00
|
|
|
Url: http://www.fvwm.org
|
2008-02-28 01:55:18 +01:00
|
|
|
Source0: fvwm-%{version}.tar.bz2
|
2006-12-19 23:22:37 +01:00
|
|
|
Source1: fvwm_icons.tar.bz2
|
|
|
|
Source3: %name.desktop
|
|
|
|
Source4: system.fvwm2rc
|
|
|
|
Source5: _system.fvwm2rc
|
2007-01-19 12:28:11 +01:00
|
|
|
Source6: openSuSE.xpm
|
2013-07-22 16:43:54 +02:00
|
|
|
#SOURCE-FIX-OPENSUSE for snapshot 2012/10/11
|
|
|
|
Source7: fvwm-menu-desktop-config.fpl
|
2006-12-19 23:22:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-07-22 16:43:54 +02:00
|
|
|
Requires: desktop-data
|
|
|
|
Requires: mktemp
|
|
|
|
Requires: xdg-menu
|
|
|
|
Requires: xli
|
2006-12-19 23:22:37 +01:00
|
|
|
Patch0: fvwm-configure.patch
|
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
|
2013-07-22 16:43:54 +02:00
|
|
|
#PATCH-FIX-OPENSUSE Avoid including internal rsvg-cairo.h
|
|
|
|
Patch8: fvwm-rsvg.patch
|
2013-07-24 17:31:43 +02:00
|
|
|
#PATCH-FIX-UPSTREAM Avoid crash due freeing inot set icon names
|
|
|
|
Patch9: fvwm-2.6.5-eventcrash.patch
|
2014-10-07 13:54:45 +02:00
|
|
|
Patch10: fvwm-no-date-time.patch
|
2013-07-22 16:43:54 +02:00
|
|
|
#PATCH-FIX-OPENSUSE Update to snapshot 2012/10/11
|
|
|
|
Patch42: fvwm-snapshot.patch
|
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
|
|
|
|
compatible with the Motif MWM.
|
|
|
|
|
|
|
|
%define _xorg7libs %_lib
|
|
|
|
%define _xorg7bin bin
|
|
|
|
%define _xorg7libs32 lib
|
|
|
|
%define _xorg7libshare share
|
|
|
|
%define _xorg7prefix /usr
|
|
|
|
%define _xorg7mandir %_mandir
|
2007-10-16 02:24:45 +02:00
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
%prep
|
2008-02-28 01:55:18 +01:00
|
|
|
%setup -q -n fvwm-%{version}
|
2013-07-22 16:43:54 +02:00
|
|
|
%patch42
|
2006-12-19 23:22:37 +01:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-03-01 22:19:04 +01:00
|
|
|
%patch3
|
2007-10-16 02:24:45 +02:00
|
|
|
%patch5
|
2011-09-05 11:59:01 +02:00
|
|
|
%patch7 -p1
|
2013-07-24 17:31:43 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
2013-07-22 16:43:54 +02:00
|
|
|
%patch8
|
2013-07-24 17:31:43 +02:00
|
|
|
%endif
|
|
|
|
%patch9
|
2014-10-07 13:54:45 +02:00
|
|
|
%patch10
|
2007-03-01 22:19:04 +01:00
|
|
|
find . -name *sv_SE* |xargs rename 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
|
2007-01-19 12:28:11 +01:00
|
|
|
cp %{S:6} icons
|
2013-07-22 16:43:54 +02:00
|
|
|
cp %{S:7} bin/
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
|
|
|
# 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} \
|
2007-01-24 14:35:42 +01:00
|
|
|
--x-includes=%{_xorg7prefix}/include \
|
2007-10-03 00:53:10 +02:00
|
|
|
--x-libraries=%{_xorg7prefix}/%_lib \
|
2010-01-11 16:56:55 +01:00
|
|
|
--with-imagepath=%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps:%{_prefix}/%{_xorg7libshare}/X11/fvwm2/bitmaps:/usr/share/wallpapers \
|
|
|
|
--disable-gtk
|
2007-01-24 14:35:42 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%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
|
2007-01-24 14:35:42 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils
|
|
|
|
install utils/quantize_pixmaps $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/utils
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
|
|
|
# documentation for modules
|
2007-08-10 17:05:42 +02:00
|
|
|
rm sample.fvwmrc/Makefile* sample.fvwmrc/system.fvwm2rc-sample-95
|
|
|
|
rm docs/Makefile*
|
2006-12-19 23:22:37 +01:00
|
|
|
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
|
2007-01-24 14:35:42 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps
|
|
|
|
install -m 644 icons/* $RPM_BUILD_ROOT%{_prefix}/%{_xorg7libshare}/X11/fvwm2/pixmaps
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
|
|
|
# install kdm/gdm entry
|
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/
|
|
|
|
install -m 0644 %SOURCE3 $RPM_BUILD_ROOT/usr/share/xsessions/
|
2007-10-03 00:53:10 +02:00
|
|
|
# removing the useless README.vms file
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/fvwm2/README.vms
|
2006-12-19 23:22:37 +01:00
|
|
|
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/xsessions/%name.desktop
|
2011-03-16 16:10:42 +01:00
|
|
|
%find_lang fvwm %{name}.lang
|
|
|
|
%find_lang FvwmScript %{name}.lang
|
|
|
|
%find_lang FvwmTaskBar %{name}.lang
|
2006-12-19 23:22:37 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2011-03-16 16:10:42 +01:00
|
|
|
%files -f %{name}.lang
|
2006-12-19 23:22:37 +01:00
|
|
|
%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/*
|
2007-10-03 00:53:10 +02:00
|
|
|
#%{_xorg7prefix}/share/locale/*/*/*
|
2006-12-19 23:22:37 +01:00
|
|
|
%{_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
|
|
|
|
|
2007-02-16 18:21:51 +01:00
|
|
|
%changelog
|