File twin.spec of Package twin
#
# spec file for package twin
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012-2018 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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 https://bugs.opensuse.org/
#
%define tutf_soname 1
%define tw_soname 5
Name: twin
Version: @SERVICE@
Release: 0
Summary: Textmode WINdow environment
License: GPL-2.0-or-later AND LGPL-2.0-or-later
Group: System/GUI/Other
URL: http://sourceforge.net/projects/twin/
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRequires: gpm-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
Requires: %{name} = %{version}
Recommends: gpm
%if 0%{?suse_version} >= 1220
BuildRequires: libXpm-devel
%else
BuildRequires: xorg-x11-libXpm-devel
%endif
%description
Twin is a text-mode window environment. It supports mouse and multiple
windows, has a built-in terminal emulator and window manager, and can
serve as display for client applications. Its retro look-and-feel comes
with very modern features: it is best described as a VNC-like server,
that can use a variety of displays - all with mouse support: from a
plain text terminal, to a Linux console, to a full kde, gnome or X11
desktop.
%package devel
Summary: Textmode WINdow environment
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
Twin is a text-mode window environment. It supports mouse and multiple
windows, has a built-in terminal emulator and window manager, and can
serve as display for client applications. Its retro look-and-feel comes
with very modern features: it is best described as a VNC-like server,
that can use a variety of displays - all with mouse support: from a
plain text terminal, to a Linux console, to a full kde, gnome or X11
desktop.
%package -n libTutf%{tutf_soname}
Summary: Text Toolkit library for twin - Textmode WINdow environment
Group: System/GUI/Other
Requires: %{name}
%description -n libTutf%{tutf_soname}
Twin is a text-mode window environment. It supports mouse and multiple
windows, has a built-in terminal emulator and window manager, and can
serve as display for client applications. Its retro look-and-feel comes
with very modern features: it is best described as a VNC-like server,
that can use a variety of displays - all with mouse support: from a
plain text terminal, to a Linux console, to a full kde, gnome or X11
desktop.
%package -n libTw%{tw_soname}
Summary: Text Toolkit library for twin - Textmode WINdow environment
Group: System/GUI/Other
Requires: %{name}
%description -n libTw%{tw_soname}
Twin is a text-mode window environment. It supports mouse and multiple
windows, has a built-in terminal emulator and window manager, and can
serve as display for client applications. Its retro look-and-feel comes
with very modern features: it is best described as a VNC-like server,
that can use a variety of displays - all with mouse support: from a
plain text terminal, to a Linux console, to a full kde, gnome or X11
desktop.
%prep
%setup -q
%build
%configure --enable-wm=yes \
--enable-wm-rc=yes \
--enable-term=yes \
--enable-hw-tty=yes \
--enable-hw-tty-linux=yes \
--enable-hw-tty-twterm=yes \
--enable-hw-tty-termcap=yes \
--enable-hw-x11=yes \
--enable-hw-gfx=yes \
--enable-hw-twin=yes \
--enable-hw-display=yes \
--enable-ext=yes \
--enable-static=no
make %{?_smp_mflags}
%install
%make_install
# Clean up
find %{buildroot} -type f -name "*.la" -delete -print
# Remove installed files as we package as %%docs
pushd %{buildroot}%{_datadir}/%{name}/
rm BUGS Changelog.txt COPYING COPYING.LIB INSTALL README README.porting
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libTutf%{tutf_soname} -p /sbin/ldconfig
%postun -n libTutf%{tutf_soname} -p /sbin/ldconfig
%post -n libTw%{tw_soname} -p /sbin/ldconfig
%postun -n libTw%{tw_soname} -p /sbin/ldconfig
%files
%license COPYING COPYING.LIB
%doc BUGS Changelog.txt README README.porting TODOS/*
%{_bindir}/tw*
%{_sbindir}/twdm
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files devel
%{_includedir}/Tutf
%{_includedir}/Tw
%{_libdir}/libTutf.so
%{_libdir}/libTw.so
%files -n libTutf%{tutf_soname}
%{_libdir}/libTutf.so.%{tutf_soname}*
%files -n libTw%{tw_soname}
%{_libdir}/libTw.so.%{tw_soname}*
%changelog