Blob Blame History Raw
Name:           bti
Version:        023
Release:        1%{?dist}
Summary:        Bash Twitter/Identi.ca Idiocy

Group:          Applications/Internet
License:        GPLv2
URL:            http://www.kernel.org/pub/linux/kernel/people/gregkh/bti
Source0:        http://www.kernel.org/pub/linux/kernel/people/gregkh/bti/bti-%{version}.tar.bz2
Patch0:         bti-023-editline.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# still supporting EL-5, rename to libcurl-devel once this changes
BuildRequires:  curl-devel libedit-devel libxml2-devel pcre-devel
#Requires:       

%description
Allows you to pipe your bash input to twitter or identi.ca in an easy
and fast manner to annoy the whole world.


%prep
%setup -q
%patch0 -p1 -b .editline


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# bash completion
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
cp -p bti-bashcompletion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/bti


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc bti.example ChangeLog COPYING README RELEASE-NOTES
# Own the directory so that we do not need to Require:
# bash-completion just for one file
%dir %{_sysconfdir}/bash_completion.d
%config(noreplace) %{_sysconfdir}/bash_completion.d/bti
%{_bindir}/bti
%{_bindir}/bti-shrink-urls
%{_mandir}/man1/*



%changelog
* Thu Aug 20 2009 Michel Salim <salimma@fedoraproject.org> - 023-1
- Update to 023
- Build against libedit, since the version of readline shipped with RHEL5 is
  too old

* Fri Mar 13 2009 Michel Salim <salimma@fedoraproject.org> - 015-1
- Update to 015

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 014-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Feb 23 2009 Michel Salim <salimma@fedoraproject.org> - 014-1
- Update to 014

* Mon Dec 29 2008 Michel Salim <salimma@fedoraproject.org> - 007-1
- Update to 0.0.7

* Thu Aug 28 2008 Michel Salim <salimma@fedoraproject.org> - 005-1
- Initial package