Blob Blame History Raw
Name:		byobu
Version:	2.80
Release:	1%{?dist}
Summary:	Light-weight, configurable window manager built upon GNU screen

Group:		Applications/System
License:	GPLv3
# default windows
Source1:	fedoracommon
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	gettext, desktop-file-utils
Requires:	screen, python >= 2.5, newt, gettext

Byobu is a Japanese term for decorative, multi-panel screens that serve 
as folding room dividers. As an open source project, Byobu is an 
elegant enhancement of the otherwise functional, plain, 
practical GNU Screen. Byobu includes an enhanced profile 
and configuration utilities for the GNU screen window manager, 
such as toggle-able system status notifications.

%setup -q

# fix path
FILES="usr/share/man/man1/byobu-status.1 usr/share/byobu/tests/byobu-time-notifications usr/bin/byobu-status usr/bin/byobu-export usr/lib/byobu/updates_available"
for i in $FILES; do 
sed -i "s#usr/lib#%{_libexecdir}#g" $i;
# remove categories
sed -i "s/GNOME;GTK;//g" usr/share/applications/byobu.desktop
# fix path for po files
sed -i "s#gettext.bindtextdomain(PKG, SHARE+'/po')#gettext.bindtextdomain(PKG, '%{_datadir}/locale')#g" usr/bin/byobu-config
# fix path for help file
sed -i "s#DOC='/usr/share/doc/'+PKG#DOC='/usr/share/doc/'+PKG+'-%{version}'#g" usr/bin/byobu-config
# remove apport which is not available in fedora
rm usr/lib/byobu/apport
sed -i 's#status\[\"apport\"\]=0##g' usr/bin/byobu-config
# apply fedora default settings
cp -p %{SOURCE1} usr/share/byobu/windows/common


rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_bindir}
cp -par etc %{buildroot}/
cp -par usr/bin/* %{buildroot}%{_bindir}
cp -par usr/share/* %{buildroot}%{_datadir}
cp -par usr/lib/* %{buildroot}%{_libexecdir}/
rm -rf %{buildroot}%{_docdir}

for po in po/*.po
    mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/
    msgfmt ${po} -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
desktop-file-install usr/share/applications/%{name}.desktop --dir %{buildroot}%{_datadir}/applications

%find_lang %{name}

rm -rf %{buildroot}

%files -f %{name}.lang
%doc usr/share/doc/%{name}/help.txt
%dir %{_datadir}/%{name}
%dir %{_libexecdir}/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*

* Thu Jun 17 2010 Jan Klepek - 2.80-1
- bugfix for BZ#595087, changed default windows selection, removed apport from toggle status notification
- upgraded to 2.80 version

* Sun May 2 2010 Jan Klepek <jan.klepek at,> - 2.73-1
- new version released

* Wed Apr 21 2010 Jan Klepek <jan.klepek at,> - 2.67-3
- adjusted SHARE path

* Tue Apr 20 2010 Jan Klepek <jan.klepek at,> - 2.67-2
- adjusted path for looking for po files and removed duplicate file entry

* Fri Apr 2 2010 Jan Klepek <jan.klepek at,> - 2.67-1
- Initial fedora RPM release