Name: st Version: 0.9 Release: 4%{?dist} Summary: A simple terminal implementation for X %global _stsourcedir %{_usrsrc}/%{name}-user-%{version}-%{release} License: MIT URL: http://%{name}.suckless.org/ Source0: http://dl.suckless.org/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}-user Source3: %{name}-user.1 BuildRequires: binutils BuildRequires: coreutils BuildRequires: gcc BuildRequires: desktop-file-utils BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: make BuildRequires: sed Requires: font(liberationmono) Requires: ncurses-base Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives %description A simple virtual terminal emulator for X which sucks less. %package user Summary: Sources and tools for user configuration of st License: MIT Requires: %{name}%{?_isa} = %{version}-%{release} Requires: binutils Requires: coreutils Requires: findutils Requires: gcc Requires: libX11-devel Requires: libXext-devel Requires: libXft-devel Requires: make Requires: patch Requires: redhat-rpm-config %description user Source files for st and a launcher/builder wrapper script for customized configurations. %prep %setup -q # terminfo entries are provided by ncurses-base sed -e "/tic .*st.info/d" -i Makefile %build CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} PREFIX=%{_prefix} mv %{buildroot}%{_bindir}/%{name}{,-fedora} install -pm755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}-user install -Dpm644 %{SOURCE3} %{buildroot}%{_mandir}/man1/%{name}-user.1 for file in \ %{buildroot}%{_bindir}/%{name}-user \ %{buildroot}%{_mandir}/man1/%{name}-user.1; do sed -i -e 's/VERSION/%{version}/' \ -e 's/RELEASE/%{release}/' \ ${file} done mkdir -p %{buildroot}%{_stsourcedir} install -m644 * \ %{buildroot}%{_stsourcedir} touch %{buildroot}%{_bindir}/%{name} desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} %pre [ -L %{_bindir}/%{name} ] || rm -f %{_bindir}/%{name} %post %{_sbindir}/update-alternatives --install %{_bindir}/%{name} %{name} \ %{_bindir}/%{name}-fedora 10 %postun if [ $1 -eq 0 ] ; then %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/%{name}-fedora fi %post user %{_sbindir}/update-alternatives --install %{_bindir}/%{name} %{name} \ %{_bindir}/%{name}-user 20 %postun user if [ $1 -eq 0 ] ; then %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/%{name}-user fi %files %license LICENSE %doc FAQ LEGACY README TODO %{name}.info %ghost %{_bindir}/%{name} %{_bindir}/%{name}-fedora %{_mandir}/man1/%{name}.* %{_datadir}/applications/%{name}.desktop %files user %ghost %{_bindir}/%{name} %{_bindir}/%{name}-user %{_mandir}/man1/%{name}-user.* %{_stsourcedir} %changelog * Sat Jan 27 2024 Fedora Release Engineering - 0.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Petr Šabata - 0.9-1 - 0.9 bump - SPDX migration * Sat Jul 23 2022 Fedora Release Engineering - 0.8.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 0.8.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.8.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 15 2020 Petr Šabata - 0.8.4-1 - 0.8.4 bump * Fri Jan 31 2020 Fedora Release Engineering - 0.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 0.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 0.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 10 2018 Petr Šabata - 0.8.1-2 - Install all source files for st-user (rhbz#1574165) * Mon Apr 09 2018 Petr Šabata - 0.8.1-1 - 0.8.1 bump * Fri Feb 09 2018 Fedora Release Engineering - 0.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Aug 12 2016 Petr Šabata - 0.7-1 - 0.7 bump - The user subpackage now properly requires redhat-rpm-config * Fri Feb 05 2016 Fedora Release Engineering - 0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 03 2015 Petr Šabata - 0.6-3 - Don't own the applications directory (#1249205) * Thu Jul 09 2015 Petr Šabata - 0.6-2 - Discard our terminfo again, it's provided by ncurses-base (#1241615) * Wed Jul 08 2015 Petr Šabata - 0.6-1 - 0.6 bump - Stop silently discarding our terminfo * Thu Jun 25 2015 Petr Šabata - 0.5-7 - Correct the dep list - Modernize spec * Fri Jun 19 2015 Fedora Release Engineering - 0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Aug 13 2014 Petr Šabata - 0.5-4 - Pass command line parameters to respective binaries in st-user (#1129557) * Thu Jun 26 2014 Petr Šabata - 0.5-3 - Introduce the `user' subpackage * Sun Jun 08 2014 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Apr 07 2014 Petr Šabata - 0.5-1 - 0.5 bump * Sun Aug 04 2013 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 23 2013 Petr Šabata - 0.4.1-1 - 0.4.1 bump * Tue Apr 02 2013 Petr Šabata - 0.4-1 - 0.4 bump - License change to MIT - Switching back to Xinerama - Include terminfo in doc so users can build it themselves if needed * Fri Feb 15 2013 Fedora Release Engineering - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Nov 05 2012 Petr Šabata - 0.3-1 - 0.3 bump - Switch to Xft - Our terminfo should now be a part of ncurses; do not require ncurses-term - Update source URL * Thu Oct 04 2012 Petr Šabata - 0.2.1-6 - Remove the obsolete conflict with openstack-swift (#857891) * Mon Aug 06 2012 Petr Šabata - 0.2.1-5 - Include the latest upstream features * Fri Jul 27 2012 Fedora Release Engineering - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 29 2012 Petr Šabata - 0.2.1-3 - Correct the ncurses-term dependency * Mon Feb 27 2012 Petr Šabata - 0.2.1-2 - Do not install terminfo entries since those are already included in the ncurses package (#797828) * Thu Feb 16 2012 Petr Šabata - 0.2.1-1 - 0.2.1 bump * Wed Feb 08 2012 Petr Šabata - 0.2-1 - 0.2 bump - Drop defattr * Sat Jan 14 2012 Fedora Release Engineering - 0.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Oct 26 2011 Fedora Release Engineering - 0.1.1-3 - Rebuilt for glibc bug#747377 * Mon May 23 2011 Petr Sabata - 0.1.1-2 - We have a conflict with openstack-swift (#693363) * Mon Apr 4 2011 Petr Sabata - 0.1.1-1 - Initial import