forked from pool/WindowMaker
c66bb0ec63
Copy from home:oertel:branches:openSUSE:Factory/WindowMaker via accept of submit request 36891 revision 3. Request was accepted with message: forward OBS-URL: https://build.opensuse.org/request/show/36891 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/WindowMaker?expand=0&rev=6
185 lines
5.5 KiB
RPMSpec
185 lines
5.5 KiB
RPMSpec
#
|
|
# spec file for package WindowMaker (Version 0.92.0)
|
|
#
|
|
# Copyright (c) 2010 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: WindowMaker
|
|
BuildRequires: freetype2-devel gcc-c++ giflib-devel libpng-devel libtiff-devel update-desktop-files xorg-x11-devel
|
|
License: GPLv2+ ; LGPLv2.1+ ; Public Domain, Freeware
|
|
Group: System/GUI/Other
|
|
Url: http://www.windowmaker.info/
|
|
Obsoletes: wmaker
|
|
Provides: wmaker windowmanager
|
|
Requires: xdg-menu
|
|
AutoReqProv: on
|
|
Summary: A Colorful and Flexible Window Manager
|
|
Version: 0.92.0
|
|
Release: 207
|
|
Source: Window-Maker-5a2507602c48.tar.bz2
|
|
Source1: WindowMaker-extra-0.1.tar.bz2
|
|
Source2: SuSE-theme.tar.bz2
|
|
Source4: README.SuSE
|
|
Source5: %name.desktop
|
|
Source6: windowmaker
|
|
Source7: WindowMaker-rpmlintrc
|
|
Patch1: WindowMaker-config.dif
|
|
Patch2: WindowMaker-menu.patch
|
|
Patch22: WindowMaker-warnings.patch
|
|
Patch24: WindowMaker-nb-locale.patch
|
|
Patch26: WindowMaker-null.patch
|
|
Patch27: WindowMaker-de_translation.patch
|
|
Patch29: WindowMaker-asm.patch
|
|
Patch31: WindowMaker-MAX_WORKSPACENAME_WIDTH.patch
|
|
Patch32: WindowMaker-0.92.0-printf.diff
|
|
Patch34: WindowMaker-crash.patch
|
|
Patch35: WindowMaker-fonts.patch
|
|
Patch37: WindowMaker-event.patch
|
|
Patch38: WindowMaker-wmspec.c-findBestIcon.patch
|
|
Patch39: WindowMaker-dir-specification.patch
|
|
Patch40: WindowMaker-composite.patch
|
|
Patch41: WindowMaker-png_check_sig.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package devel
|
|
License: GPLv2+
|
|
Requires: %{name} = %{version} libtiff-devel libjpeg-devel xorg-x11-devel libpng-devel zlib-devel giflib-devel
|
|
Summary: Includes and static libraries for Window Maker
|
|
Group: Development/Libraries/X11
|
|
|
|
%description
|
|
Window Maker is a colorful and flexible window manager and
|
|
thedesignnated successor of AfterStep. nFor more details, check
|
|
http://www.windowmaker.org.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Alfredo K. Kojima <kojima@windowmaker.org>
|
|
|
|
%description devel
|
|
Includes and static libraries for Window Maker
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Alfredo K. Kojima <kojima@windowmaker.org>
|
|
|
|
%prep
|
|
%setup -q -n Window-Maker-5a2507602c48 -a 1
|
|
mkdir menu.orig
|
|
cp WindowMaker/{menu.*,plmenu.*} menu.orig
|
|
%patch1
|
|
%patch2
|
|
%patch22
|
|
%patch24
|
|
%patch26 -p1
|
|
%patch27
|
|
#patch29
|
|
%patch31
|
|
%patch32
|
|
%patch34
|
|
%patch35
|
|
%patch37
|
|
%patch38
|
|
%patch39
|
|
%patch40
|
|
%patch41
|
|
cp %{S:4} .
|
|
cp %{S:6} .
|
|
rename no nb po/no.*
|
|
(cd WindowMaker; rm -f *.orig; ./mkMakefile )
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%build
|
|
autoreconf --force --install
|
|
export LINGUAS="be bg ca cs da de el es et fi fr gl hr hu it ja ko ms nl nb pl pt ro ru sk sv tr zh_CN zh_TW"
|
|
export CFLAGS="$RPM_OPT_FLAGS $(freetype-config --cflags)"
|
|
%configure --disable-static --with-pic\
|
|
--sysconfdir=/etc/X11 \
|
|
--enable-sound \
|
|
--enable-gnome \
|
|
--enable-kde \
|
|
--enable-xinerama \
|
|
--with-nlsdir=/usr/share/locale \
|
|
--with-pixmapdir=/usr/share/WindowMaker/Pixmaps \
|
|
--with-gnustepdir=/usr/lib/GNUstep
|
|
(cd WindowMaker/Defaults; make clean; make)
|
|
make
|
|
(cd WindowMaker-extra-0.1
|
|
%configure --disable-static --with-pic\
|
|
--with-pixmapdir=/usr/share/WindowMaker/Pixmaps \
|
|
make
|
|
)
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%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
|
|
cd WindowMaker-extra-0.1
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
tar xfvj %SOURCE2 -C $RPM_BUILD_ROOT/usr/share/WindowMaker/Themes/
|
|
find $RPM_BUILD_ROOT/usr/share/WindowMaker/Themes -type f -exec chmod 644 {} \;
|
|
find $RPM_BUILD_ROOT/usr/share/WindowMaker/Themes -type d -exec chmod 755 {} \;
|
|
#----------------------------------------------------------------------
|
|
# not packaged
|
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/sk/man1/*
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
# install kdm/gdm entry
|
|
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/xsessions/
|
|
install -m 0644 %SOURCE5 $RPM_BUILD_ROOT/usr/share/xsessions/
|
|
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/xsessions/%name.desktop
|
|
cd ..
|
|
%find_lang %{name}
|
|
%find_lang WINGs %{name}.lang
|
|
%find_lang WPrefs %{name}.lang
|
|
|
|
%clean
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%dir /etc/X11/WindowMaker
|
|
%config /etc/X11/WindowMaker/*
|
|
/usr/lib/GNUstep
|
|
/usr/bin/*
|
|
%{_libdir}/*.so.*
|
|
%{_mandir}/man1/*
|
|
/usr/share/WINGs
|
|
/usr/share/WindowMaker
|
|
/usr/share/xsessions/*
|
|
%doc AUTHORS BUGFORM BUGS COPYING COPYING.WTFPL ChangeLog FAQ FAQ.I18N
|
|
%doc MIRRORS NEWS README TODO README.SuSE
|
|
%doc menu.orig
|
|
#/usr/X11R6/share/WindowMaker
|
|
#/usr/X11R6/GNUstep
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
|
|
%changelog
|