2006-12-19 23:22:37 +01:00
|
|
|
#
|
2008-06-25 19:13:39 +02:00
|
|
|
# spec file for package fvwm2 (Version 2.5.26)
|
2006-12-19 23:22:37 +01:00
|
|
|
#
|
2010-01-11 16:56:55 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-28 01:55:18 +01:00
|
|
|
|
2006-12-19 23:22:37 +01:00
|
|
|
Name: fvwm2
|
2010-01-11 16:56:55 +01:00
|
|
|
BuildRequires: freetype2-devel fribidi-devel gcc-c++ libpng-devel libstroke-devel pkgconfig readline-devel update-desktop-files xorg-x11-devel
|
2009-12-16 13:06:45 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 23:22:37 +01:00
|
|
|
Group: System/GUI/Other
|
2007-10-03 00:53:10 +02:00
|
|
|
Provides: fvwm fvwmicns windowmanager xpmroot
|
2006-12-19 23:22:37 +01:00
|
|
|
Obsoletes: fvwm xpmroot
|
2007-10-03 00:53:10 +02:00
|
|
|
AutoReqProv: on
|
2008-06-25 19:13:39 +02:00
|
|
|
Version: 2.5.26
|
2010-03-18 15:46:45 +01:00
|
|
|
Release: 42
|
2006-12-19 23:22:37 +01:00
|
|
|
Summary: Improved Version of FVWM Window Manager
|
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
|
2006-12-19 23:22:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-03-01 22:19:04 +01:00
|
|
|
Requires: xdg-menu, desktop-data, mktemp, xli
|
2006-12-19 23:22:37 +01:00
|
|
|
Patch0: fvwm-configure.patch
|
|
|
|
Patch1: fvwm-%{version}-gcc-warnings.patch
|
|
|
|
Patch2: fvwm-%{version}-ia64.patch
|
2007-03-01 22:19:04 +01:00
|
|
|
Patch3: fvwm-%{version}-sv_SE.patch
|
2007-03-10 23:53:44 +01:00
|
|
|
Patch4: fvwm-%{version}-utf_encoding.patch
|
2007-10-16 02:24:45 +02:00
|
|
|
Patch5: fvwm-%{version}-charset_in_title.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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
The fvwm developers <fvwm-workers@fvwm.org>
|
|
|
|
|
|
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
|
|
%define _xorg7libs %_lib
|
|
|
|
%define _xorg7bin bin
|
|
|
|
%define _xorg7libs32 lib
|
|
|
|
%define _xorg7libshare share
|
|
|
|
%define _xorg7prefix /usr
|
|
|
|
%define _xorg7mandir %_mandir
|
|
|
|
%else
|
|
|
|
%define _xorg7libs X11R6/%_lib
|
|
|
|
%define _xorg7bin X11R6/bin
|
|
|
|
%define _xorg7libshare X11R6/lib
|
|
|
|
%define _xorg7libs32 X11R6/lib
|
|
|
|
%define _xorg7prefix /usr/X11R6
|
|
|
|
%define _xorg7mandir /usr/X11R6/man
|
|
|
|
%endif
|
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}
|
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
|
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
|
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
|
|
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
|
|
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/etc/X11/fvwm2/system.fvwm2rc
|
|
|
|
%else
|
|
|
|
install -m 644 %SOURCE5 $RPM_BUILD_ROOT/etc/X11/fvwm2/system.fvwm2rc
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%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/*/*/*
|
|
|
|
# the find_lang macro is not very usable for fwvm,
|
|
|
|
# listing the files manually
|
|
|
|
%lang(ar) %{_xorg7prefix}/share/locale/ar/LC_MESSAGES/fvwm.mo
|
|
|
|
%lang(de) %{_xorg7prefix}/share/locale/de/LC_MESSAGES/fvwm.mo
|
|
|
|
%lang(fr) %{_xorg7prefix}/share/locale/fr/LC_MESSAGES/fvwm.mo
|
|
|
|
%lang(sv) %{_xorg7prefix}/share/locale/sv/LC_MESSAGES/fvwm.mo
|
|
|
|
%lang(zh) %{_xorg7prefix}/share/locale/zh_CN/LC_MESSAGES/fvwm.mo
|
|
|
|
%lang(ar) %{_xorg7prefix}/share/locale/ar/LC_MESSAGES/FvwmScript.mo
|
|
|
|
%lang(ar) %{_xorg7prefix}/share/locale/ar/LC_MESSAGES/FvwmTaskBar.mo
|
|
|
|
%lang(de) %{_xorg7prefix}/share/locale/de/LC_MESSAGES/FvwmScript.mo
|
|
|
|
%lang(de) %{_xorg7prefix}/share/locale/de/LC_MESSAGES/FvwmTaskBar.mo
|
|
|
|
%lang(fr) %{_xorg7prefix}/share/locale/fr/LC_MESSAGES/FvwmScript.mo
|
|
|
|
%lang(fr) %{_xorg7prefix}/share/locale/fr/LC_MESSAGES/FvwmTaskBar.mo
|
|
|
|
%lang(sv) %{_xorg7prefix}/share/locale/sv/LC_MESSAGES/FvwmScript.mo
|
|
|
|
%lang(sv) %{_xorg7prefix}/share/locale/sv/LC_MESSAGES/FvwmTaskBar.mo
|
|
|
|
%lang(zh) %{_xorg7prefix}/share/locale/zh_CN/LC_MESSAGES/FvwmScript.mo
|
|
|
|
%lang(zh) %{_xorg7prefix}/share/locale/zh_CN/LC_MESSAGES/FvwmTaskBar.mo
|
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
|
|
|
|
%if "%(xft-config --prefix)" == "/usr/X11R6"
|
|
|
|
%dir %{_xorg7prefix}/share/locale/ar
|
|
|
|
%dir %{_xorg7prefix}/share/locale/ar/LC_MESSAGES
|
|
|
|
%dir %{_xorg7prefix}/share/locale/de
|
|
|
|
%dir %{_xorg7prefix}/share/locale/de/LC_MESSAGES
|
|
|
|
%dir %{_xorg7prefix}/share/locale/fr
|
|
|
|
%dir %{_xorg7prefix}/share/locale/fr/LC_MESSAGES
|
|
|
|
%dir %{_xorg7prefix}/share/locale/zh_CN
|
|
|
|
%dir %{_xorg7prefix}/share/locale/zh_CN/LC_MESSAGES
|
|
|
|
%endif
|
|
|
|
|
2007-02-16 18:21:51 +01:00
|
|
|
%changelog
|