Files
st/st.spec

80 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package st
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@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/
#
Name: st
Version: 0.9
Release: 0
Summary: Simple Terminal Implementation for X
License: MIT
Group: System/X11/Terminals
URL: https://%{name}.suckless.org/
Source: https://dl.suckless.org/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Patch1: compose-buffer-overflow.patch
BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xproto)
Requires: terminfo
%description
Simple and lightweight and unbloated X11 terminal.
%prep
%autosetup -p1
# terminfo entries are provided by terminfo from ncurses
sed -e "/tic .*st.info/d" -i Makefile
%build
%if 0%{?suse_version} > 1500
%{set_build_flags}
export CPPFLAGS="${CXXFLAGS}"
%else
export CPPFLAGS="%{optflags}"
export CLAGS="%{optflags}"
export LDFLAGS="${RPM_LD_FLAGS}"
%endif
%{?make_build}%{?!make_build:make -j %{?_smp_mflags}} \
X11INC="%{_includedir}" \
X11LIB="%{_libdir}" \
CC="gcc"
%install
Accepting request 588342 from home:avindra:branches:X11:terminals - Update to version 0.8 * Change default keybindings * Add support for iso14755 * Add support for enabling/disabling utf * use math.h for ceilf * xhints: no need to initialize sizeh * Reduce visibility wherever possible * Limit usage of extern to config.h globals * Split mode bits between Term and TermWindow * Have selected() check whether selection exists * Rely on ttyresize to set tty size * Remove x.c dependency on term * Remove Time argument from xsetsel * Make win variable internal to x.c * Factor out equivalent code from ttyread/ttysend * Pass new dimensions into ttyresize * Call xsetenv() in main process instead of child * Fix color with FAINT attribute * Apply ATTR_REVERSE after ATTR_FAINT * Handle XftFontOpenPattern failure. * base64dec: skip non-printable characters like \r\n * Add dim/smxx/rmxx to terminfo, remove duplicate kich1 * Add color change terminfo capabilities * Simplify how we keep ATTRs under cursor * keep some glyph modes for the cursor * Support xterm Ms feature to set clipboard * Split X-specific code into x.c * Fixed 'missing glyph doesn't use fontconfig config substitutions' bug * make the various combinations of arrow keys and shift/control/meta work * tic -s -> tic -sx (Treat unknown capabilities as user-defined.) * Add tmux capabilities to st.info * Make strdump(), csidump(), print to stderr * Do not use color when font attributes are supported * Add missing device path to '-l' example * Add parsing of DCS q sequences * Delete ncv capability from terminfo * st.info: do not prevent st from displaying attributes - cleanup with spec-cleaner - drop st-verbose_makefile.patch * fixed upstream in fabd4602b3223666165c76c397644a081b9a97e5 - rebase st-optflags.patch - use https urls - renumber patch OBS-URL: https://build.opensuse.org/request/show/588342 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/st?expand=0&rev=3
2018-03-23 09:25:47 +00:00
%make_install PREFIX="%{_prefix}"
install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" System TerminalEmulator
%files
Accepting request 588342 from home:avindra:branches:X11:terminals - Update to version 0.8 * Change default keybindings * Add support for iso14755 * Add support for enabling/disabling utf * use math.h for ceilf * xhints: no need to initialize sizeh * Reduce visibility wherever possible * Limit usage of extern to config.h globals * Split mode bits between Term and TermWindow * Have selected() check whether selection exists * Rely on ttyresize to set tty size * Remove x.c dependency on term * Remove Time argument from xsetsel * Make win variable internal to x.c * Factor out equivalent code from ttyread/ttysend * Pass new dimensions into ttyresize * Call xsetenv() in main process instead of child * Fix color with FAINT attribute * Apply ATTR_REVERSE after ATTR_FAINT * Handle XftFontOpenPattern failure. * base64dec: skip non-printable characters like \r\n * Add dim/smxx/rmxx to terminfo, remove duplicate kich1 * Add color change terminfo capabilities * Simplify how we keep ATTRs under cursor * keep some glyph modes for the cursor * Support xterm Ms feature to set clipboard * Split X-specific code into x.c * Fixed 'missing glyph doesn't use fontconfig config substitutions' bug * make the various combinations of arrow keys and shift/control/meta work * tic -s -> tic -sx (Treat unknown capabilities as user-defined.) * Add tmux capabilities to st.info * Make strdump(), csidump(), print to stderr * Do not use color when font attributes are supported * Add missing device path to '-l' example * Add parsing of DCS q sequences * Delete ncv capability from terminfo * st.info: do not prevent st from displaying attributes - cleanup with spec-cleaner - drop st-verbose_makefile.patch * fixed upstream in fabd4602b3223666165c76c397644a081b9a97e5 - rebase st-optflags.patch - use https urls - renumber patch OBS-URL: https://build.opensuse.org/request/show/588342 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/st?expand=0&rev=3
2018-03-23 09:25:47 +00:00
%license LICENSE
%doc FAQ README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog