Name: st Version: 0.7 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 Group: User Interface/X 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 sed -e "s!^\(CFLAGS.*$\)!\1 %{optflags}!" \ -e "s!^\(LDFLAGS.*$\)!\1 %{?__global_ldflags}!" \ -i config.mk # terminfo entries are provided by ncurses-base sed -e "/@tic/d" -i Makefile %build 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 arg.h config.def.h config.mk Makefile st.c st.info \ %{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 * 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