Blob Blame History Raw
Name:           st
Version:        0.2.1
Release:        4%{?dist}
Summary:        A simple terminal implementation for X
Group:          User Interface/X
License:        BSD
URL:            http://st.suckless.org/
Source0:        http://hg.suckless.org/%{name}/archive/%{version}.tar.gz
Source1:        %{name}.desktop
# Generate debuginfo
Patch0:         st-0.1.1-debug.patch
# Make sure we use an unicode capable font
Patch1:         st-0.2.1-terminus.patch
BuildRequires:  libX11-devel
BuildRequires:  ncurses
BuildRequires:  desktop-file-utils
Requires:       terminus-fonts
Requires:       ncurses-term
# /usr/bin/st, rhbz#693363
Conflicts:      openstack-swift

%description
A simple virtual terminal emulator for X which sucks less.

%prep
%setup -q
%patch0 -p1 -b .debug
%patch1 -p1 -b .terminus
# Do not install terminfo
sed -i '/@tic -s st.info/d' Makefile

%build
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_datadir}/terminfo/s
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

%files
%doc LICENSE README
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications

%changelog
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed Feb 29 2012 Petr Šabata <contyk@redhat.com> - 0.2.1-3
- Correct the ncurses-term dependency

* Mon Feb 27 2012 Petr Šabata <contyk@redhat.com> - 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 <contyk@redhat.com> - 0.2.1-1
- 0.2.1 bump

* Wed Feb 08 2012 Petr Šabata <contyk@redhat.com> - 0.2-1
- 0.2 bump
- Drop defattr

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
- Rebuilt for glibc bug#747377

* Mon May 23 2011 Petr Sabata <psabata@redhat.com> - 0.1.1-2
- We have a conflict with openstack-swift (#693363)

* Mon Apr  4 2011 Petr Sabata <psabata@redhat.com> - 0.1.1-1
- Initial import