10f71cd
Name:		byobu
ff1dfe8
Version:	4.22
ff1dfe8
Release:	1%{?dist}
10f71cd
Summary:	Light-weight, configurable window manager built upon GNU screen
10f71cd
10f71cd
Group:		Applications/System
10f71cd
License:	GPLv3
10f71cd
URL:		http://launchpad.net/byobu
10f71cd
Source0:	http://code.launchpad.net/byobu/trunk/%{version}/+download/byobu_%{version}.orig.tar.gz
766637b
# default windows
766637b
Source1:	fedoracommon
ff1dfe8
Patch0:		byobu_updates.patch
ff1dfe8
Patch1:		byobu_byobu-shell.patch
10f71cd
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10f71cd
BuildArch:	noarch
ff1dfe8
%if 0%{?rhel} < 6
f241cf9
Requires:	python26
f241cf9
%else
f241cf9
Requires:	python >= 2.5
f241cf9
%endif
10f71cd
ff1dfe8
BuildRequires:	gettext, desktop-file-utils, automake
f241cf9
Requires:	screen, newt, gettext
10f71cd
10f71cd
%Description
10f71cd
Byobu is a Japanese term for decorative, multi-panel screens that serve 
10f71cd
as folding room dividers. As an open source project, Byobu is an 
10f71cd
elegant enhancement of the otherwise functional, plain, 
10f71cd
practical GNU Screen. Byobu includes an enhanced profile 
10f71cd
and configuration utilities for the GNU screen window manager, 
10f71cd
such as toggle-able system status notifications.
10f71cd
10f71cd
%prep
10f71cd
%setup -q
ff1dfe8
%patch0 
ff1dfe8
%patch1
ff1dfe8
# fix path for lib directory in scripts
ff1dfe8
for i in `grep -Ri {BYOBU_PREFIX}/lib/ * | awk -F: '{print $1}' | uniq`; do
ff1dfe8
sed -i "s#{BYOBU_PREFIX}/lib/#{BYOBU_PREFIX}/libexec/#g" $i;
10f71cd
done
10f71cd
# fix path for help file
59cd413
sed -i "s#DOC=PREFIX+'/share/doc/'+PKG#DOC=PREFIX+'/share/doc/'+PKG+'-%{version}'#g" usr/bin/byobu-config
ff1dfe8
# set default fedora windows
766637b
cp -p %{SOURCE1} usr/share/byobu/windows/common
ff1dfe8
# fix path from lib to libexec by modified Makefile.am
ff1dfe8
sed -i "s#/lib/#/libexec/#g" usr/lib/byobu/Makefile.am
10f71cd
10f71cd
%build
ff1dfe8
%configure
ff1dfe8
make %{?_smp_mflags}
10f71cd
10f71cd
%install
10f71cd
rm -rf %{buildroot}
ff1dfe8
make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
ff1dfe8
# remove doc from make install
ff1dfe8
rm -rf %{buildroot}%{_docdir}/%{name}
ff1dfe8
ff1dfe8
# remove apport which is not available in fedora
ff1dfe8
rm %{buildroot}%{_libexecdir}/%{name}/apport
ff1dfe8
sed -i 's#status\[\"apport\"\]=0##g' %{buildroot}%{_bindir}/byobu-config
10f71cd
10f71cd
for po in po/*.po
10f71cd
do
10f71cd
    lang=${po#po/}
10f71cd
    lang=${lang%.po}
10f71cd
    mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/
10f71cd
    msgfmt ${po} -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
10f71cd
done
10f71cd
desktop-file-install usr/share/applications/%{name}.desktop --dir %{buildroot}%{_datadir}/applications
10f71cd
10f71cd
%find_lang %{name}
10f71cd
10f71cd
%clean
ff1dfe8
rm -rf %{buildroot}
10f71cd
10f71cd
10f71cd
%files -f %{name}.lang
10f71cd
%defattr(-,root,root,-)
10f71cd
%doc README COPYING
10f71cd
%doc usr/share/doc/%{name}/help.txt
10f71cd
%dir %{_datadir}/%{name}
10f71cd
%dir %{_libexecdir}/%{name}
10f71cd
%{_bindir}/%{name}*
10f71cd
%{_datadir}/applications/%{name}.desktop
10f71cd
%{_datadir}/%{name}/*
10f71cd
%{_mandir}/man1/%{name}*.1.gz
10f71cd
%{_libexecdir}/%{name}/*
ff1dfe8
%{_libexecdir}/%{name}/.common
ff1dfe8
%{_libexecdir}/%{name}/.constants
ff1dfe8
%{_libexecdir}/%{name}/.dirs
c9f65b6
%{_libexecdir}/%{name}/.notify_osd
ff1dfe8
%{_libexecdir}/%{name}/.shutil
10f71cd
10f71cd
%changelog
ff1dfe8
* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 4.22-1
ff1dfe8
- new major release
1fa2aa7
fad7306
* Sat Jan 8 2011 Jan Klepek <jan.klepek at, gmail.com> - 3.21-1
fad7306
- new release
fad7306
fad7306
* Sat Dec 18 2010 Jan Klepek <jan.klepek at, gmail.com> - 3.20-2
fad7306
- upgrade to 3.20 + some patches
3a66e67
8961a7b
* Fri Sep 3 2010 Jan Klepek <jan.klepek at, gmail.com> - 3.4-1
8961a7b
- upgraded to 3.4
8961a7b
766637b
* Thu Jun 17 2010 Jan Klepek - 2.80-1
766637b
- bugfix for BZ#595087, changed default windows selection, removed apport from toggle status notification
766637b
- upgraded to 2.80 version
766637b
10f71cd
* Sun May 2 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.73-1
10f71cd
- new version released
10f71cd
10f71cd
* Wed Apr 21 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-3
10f71cd
- adjusted SHARE path
10f71cd
10f71cd
* Tue Apr 20 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-2
10f71cd
- adjusted path for looking for po files and removed duplicate file entry
10f71cd
10f71cd
* Fri Apr 2 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-1
10f71cd
- Initial fedora RPM release