2007-01-15 23:50:36 +01:00
|
|
|
#
|
2011-09-05 16:13:08 +02:00
|
|
|
# spec file for package WindowMaker
|
2007-01-15 23:50:36 +01:00
|
|
|
#
|
2015-09-21 13:25:28 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:36 +01:00
|
|
|
#
|
2008-10-13 17:00:44 +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.
|
|
|
|
|
2007-01-15 23:50:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: WindowMaker
|
2012-02-18 07:38:52 +01:00
|
|
|
Summary: A Colorful and Flexible Window Manager
|
2013-01-18 11:00:22 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and SUSE-Public-Domain
|
2007-01-15 23:50:36 +01:00
|
|
|
Group: System/GUI/Other
|
2014-11-10 12:08:34 +01:00
|
|
|
Version: 0.95.6
|
2012-02-18 07:38:52 +01:00
|
|
|
Release: 0
|
2013-02-06 11:41:07 +01:00
|
|
|
# 81eefca4ef70414d73048300058e5007f402dd7f
|
|
|
|
# f846b7cdd39749b5291d4559185a229b752b4fed
|
|
|
|
#Version: 0.95.3.99.2
|
2012-02-18 07:38:52 +01:00
|
|
|
Url: http://windowmaker.org/
|
2013-01-18 18:20:53 +01:00
|
|
|
Source: http://windowmaker.org/pub/source/release/%{name}-%{version}.tar.gz
|
2012-02-18 07:38:52 +01:00
|
|
|
Source1: %{name}-extra-0.1.tar.bz2
|
2015-09-21 13:25:28 +02:00
|
|
|
Source2: theme.tar.bz2
|
2007-01-15 23:50:36 +01:00
|
|
|
Source4: README.SuSE
|
2012-02-18 07:38:52 +01:00
|
|
|
Source5: %{name}.desktop
|
2007-01-15 23:50:36 +01:00
|
|
|
Source6: windowmaker
|
2012-02-18 07:38:52 +01:00
|
|
|
Source7: %{name}-rpmlintrc
|
|
|
|
Patch1: %{name}-config.patch
|
|
|
|
Patch2: %{name}-menu.patch
|
2014-04-16 10:57:41 +02:00
|
|
|
Patch3: fix_wmgenmenu_paths.patch
|
2012-02-18 07:38:52 +01:00
|
|
|
#
|
2013-01-18 11:00:22 +01:00
|
|
|
Patch101: wm-giflib.patch
|
2007-01-15 23:50:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-18 07:38:52 +01:00
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: libXft-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
Provides: windowmanager
|
2012-06-12 09:19:20 +02:00
|
|
|
Provides: wmaker
|
2012-02-18 07:38:52 +01:00
|
|
|
Requires: xdg-menu
|
|
|
|
|
|
|
|
%description
|
|
|
|
Window Maker is an X11 window manager originally designed to provide
|
|
|
|
integration support for the GNUstep Desktop Environment. In every way
|
|
|
|
possible, it reproduces the elegant look and feel of the NEXTSTEP user
|
|
|
|
interface. It is fast, feature rich, easy to configure, and easy to
|
|
|
|
use. It is also free software, with contributions being made by
|
|
|
|
programmers from around the world.
|
|
|
|
|
|
|
|
Window Maker has a stable user interface since many years and comes
|
|
|
|
with a powerful GUI configuration editor called WPrefs, which removes
|
|
|
|
the need to edit text-based config files by hand. It supports running
|
|
|
|
dockapps which make everyday tasks such as monitoring system
|
|
|
|
performance and battery usage, mounting devices or connecting to the
|
|
|
|
internet very easy. Please see the features section for more specifics
|
|
|
|
on what Window Maker can do, and how it compares with other popular
|
|
|
|
window managers.
|
2008-01-24 00:02:28 +01:00
|
|
|
|
2007-01-15 23:50:36 +01:00
|
|
|
%package devel
|
2012-02-18 07:38:52 +01:00
|
|
|
Summary: Development files for WindowMaker
|
2011-12-06 19:13:05 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-15 23:50:36 +01:00
|
|
|
Group: Development/Libraries/X11
|
2012-02-18 07:38:52 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: giflib-devel
|
|
|
|
Requires: libjpeg-devel
|
|
|
|
Requires: libpng-devel
|
|
|
|
Requires: libtiff-devel
|
|
|
|
Requires: xorg-x11-devel
|
|
|
|
Requires: zlib-devel
|
2007-01-15 23:50:36 +01:00
|
|
|
|
|
|
|
%description devel
|
2012-02-18 07:38:52 +01:00
|
|
|
This package contains the header files and libraries necessary for
|
|
|
|
developing applications which use WindowMaker.
|
2007-01-15 23:50:36 +01:00
|
|
|
|
|
|
|
%prep
|
2012-02-18 07:38:52 +01:00
|
|
|
%setup -q -n %{name}-%{version} -a 1
|
|
|
|
mkdir menu_orig
|
|
|
|
cp %{name}/{menu.*,plmenu.*} menu_orig
|
2007-01-15 23:50:36 +01:00
|
|
|
%patch1
|
2014-04-16 10:57:41 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2014-07-04 13:05:43 +02:00
|
|
|
%patch101 -p1
|
2007-01-15 23:50:36 +01:00
|
|
|
cp %{S:4} .
|
|
|
|
cp %{S:6} .
|
2012-02-18 07:38:52 +01:00
|
|
|
%if 0%{?suse_version} < 1140
|
2007-01-15 23:50:36 +01:00
|
|
|
rename no nb po/no.*
|
2012-02-18 07:38:52 +01:00
|
|
|
%endif
|
|
|
|
(cd %{name}; rm -f *.orig; ./mkMakefile )
|
2007-01-15 23:50:36 +01:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
2012-06-12 09:19:20 +02:00
|
|
|
./autogen.sh
|
2012-02-18 07:38:52 +01:00
|
|
|
#autoreconf --force --install
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
export LINGUAS="be bg bs ca cs da de el es et fi fr gl hr hu hy it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW"
|
|
|
|
%else
|
|
|
|
export LINGUAS="be bg bs ca cs da de el es et fi fr gl hr hu hy it ja ko ms nl nb pl pt ro ru sk sv tr zh_CN zh_TW"
|
|
|
|
%endif
|
2007-01-15 23:50:36 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS $(freetype-config --cflags)"
|
2012-02-18 07:38:52 +01:00
|
|
|
%configure \
|
2014-04-16 10:57:41 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--datadir=/usr/share \
|
2012-02-18 07:38:52 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-pic\
|
|
|
|
--sysconfdir=/etc/X11 \
|
|
|
|
--enable-xinerama \
|
|
|
|
--with-nlsdir=/usr/share/locale \
|
|
|
|
--with-pixmapdir=/usr/share/%{name}/Pixmaps \
|
|
|
|
--with-gnustepdir=/usr/lib/GNUstep
|
|
|
|
|
|
|
|
(cd %{name}/Defaults; make clean; make %{?_smp_mflags})
|
2011-09-17 14:46:19 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-02-18 07:38:52 +01:00
|
|
|
(cd %{name}-extra-0.1
|
|
|
|
%configure \
|
2014-04-16 10:57:41 +02:00
|
|
|
--prefix=/usr \
|
2012-02-18 07:38:52 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-pic\
|
|
|
|
--with-pixmapdir=/usr/share/%{name}/Pixmaps
|
2011-09-17 14:46:19 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:50:36 +01:00
|
|
|
)
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
install -m 755 dockit $RPM_BUILD_ROOT/usr/bin/dockit
|
|
|
|
install -m 755 windowmaker $RPM_BUILD_ROOT/usr/bin/windowmaker
|
2012-02-18 07:38:52 +01:00
|
|
|
cd %{name}-extra-0.1
|
2007-01-15 23:50:36 +01:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2012-02-18 07:38:52 +01:00
|
|
|
tar -xvjf %SOURCE2 -C $RPM_BUILD_ROOT/usr/share/%{name}/Themes/
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/%{name}/Themes -type f -exec chmod 644 {} \;
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/%{name}/Themes -type d -exec chmod 755 {} \;
|
2007-01-15 23:50:36 +01:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# not packaged
|
2012-02-18 07:38:52 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/{cs,ru,sk}/man1/*
|
2010-03-19 09:16:42 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
2007-01-15 23:50:36 +01:00
|
|
|
# install kdm/gdm entry
|
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/
|
|
|
|
install -m 0644 %SOURCE5 $RPM_BUILD_ROOT/usr/share/xsessions/
|
2012-02-18 07:38:52 +01:00
|
|
|
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/xsessions/%{name}.desktop
|
2008-03-16 19:58:55 +01:00
|
|
|
cd ..
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang WINGs %{name}.lang
|
|
|
|
%find_lang WPrefs %{name}.lang
|
2012-02-18 07:38:52 +01:00
|
|
|
%find_lang wmgenmenu %{name}.lang
|
2007-01-15 23:50:36 +01:00
|
|
|
|
2008-03-16 19:58:55 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-15 23:50:36 +01:00
|
|
|
|
2008-03-16 19:58:55 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-15 23:50:36 +01:00
|
|
|
|
2008-03-16 19:58:55 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-15 23:50:36 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-18 07:38:52 +01:00
|
|
|
%doc AUTHORS BUGFORM BUGS COPYING COPYING.WTFPL ChangeLog FAQ FAQ.I18N
|
|
|
|
%doc NEWS README* TODO
|
|
|
|
%doc menu_orig
|
|
|
|
%dir /etc/X11/%{name}
|
|
|
|
%config /etc/X11/%{name}/*
|
2007-01-15 23:50:36 +01:00
|
|
|
/usr/lib/GNUstep
|
|
|
|
/usr/bin/*
|
2008-03-16 19:58:55 +01:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_mandir}/man1/*
|
2012-06-12 09:19:20 +02:00
|
|
|
%{_mandir}/man8/*
|
2007-01-15 23:50:36 +01:00
|
|
|
/usr/share/WINGs
|
2012-02-18 07:38:52 +01:00
|
|
|
/usr/share/%{name}
|
2007-03-05 00:22:07 +01:00
|
|
|
/usr/share/xsessions/*
|
2012-02-18 07:38:52 +01:00
|
|
|
#/usr/X11R6/share/%{name}
|
2007-01-15 23:50:36 +01:00
|
|
|
#/usr/X11R6/GNUstep
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2008-03-16 19:58:55 +01:00
|
|
|
%{_includedir}/*
|
2012-02-18 07:38:52 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2008-03-16 19:58:55 +01:00
|
|
|
%{_libdir}/*.so
|
2007-01-15 23:50:36 +01:00
|
|
|
|
2007-03-05 00:22:07 +01:00
|
|
|
%changelog
|