churchyard / rpms / byobu

Forked from rpms/byobu 2 years ago
Clone
9afc2df
Name:		byobu
9afc2df
Version:	2.73
9afc2df
Release:	1%{?dist}
9afc2df
Summary:	Light-weight, configurable window manager built upon GNU screen
9afc2df
9afc2df
Group:		Applications/System
9afc2df
License:	GPLv3
9afc2df
URL:		http://launchpad.net/byobu
9afc2df
Source0:	http://code.launchpad.net/byobu/trunk/%{version}/+download/byobu_%{version}.orig.tar.gz
9afc2df
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9afc2df
BuildArch:	noarch
9afc2df
9afc2df
BuildRequires:	gettext, desktop-file-utils
9afc2df
Requires:	screen, python >= 2.5, newt, gettext
9afc2df
9afc2df
%Description
9afc2df
Byobu is a Japanese term for decorative, multi-panel screens that serve 
9afc2df
as folding room dividers. As an open source project, Byobu is an 
9afc2df
elegant enhancement of the otherwise functional, plain, 
9afc2df
practical GNU Screen. Byobu includes an enhanced profile 
9afc2df
and configuration utilities for the GNU screen window manager, 
9afc2df
such as toggle-able system status notifications.
9afc2df
9afc2df
%prep
9afc2df
%setup -q
9afc2df
9afc2df
# fix path
9afc2df
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"
9afc2df
for i in $FILES; do 
9afc2df
sed -i "s#usr/lib#%{_libexecdir}#g" $i;
9afc2df
done
9afc2df
# remove categories
9afc2df
sed -i "s/GNOME;GTK;//g" usr/share/applications/byobu.desktop
9afc2df
# fix path for po files
9afc2df
sed -i "s#gettext.bindtextdomain(PKG, SHARE+'/po')#gettext.bindtextdomain(PKG, '%{_datadir}/locale')#g" usr/bin/byobu-config
9afc2df
# fix path for help file
9afc2df
sed -i "s#DOC='/usr/share/doc/'+PKG#DOC='/usr/share/doc/'+PKG+'-%{version}'#g" usr/bin/byobu-config
9afc2df
9afc2df
%build
9afc2df
9afc2df
%install
9afc2df
rm -rf %{buildroot}
9afc2df
mkdir -p %{buildroot}%{_libexecdir}
9afc2df
mkdir -p %{buildroot}%{_datadir}
9afc2df
mkdir -p %{buildroot}%{_bindir}
9afc2df
cp -par etc %{buildroot}/
9afc2df
cp -par usr/bin/* %{buildroot}%{_bindir}
9afc2df
cp -par usr/share/* %{buildroot}%{_datadir}
9afc2df
cp -par usr/lib/* %{buildroot}%{_libexecdir}/
9afc2df
rm -rf %{buildroot}%{_docdir}
9afc2df
9afc2df
for po in po/*.po
9afc2df
do
9afc2df
    lang=${po#po/}
9afc2df
    lang=${lang%.po}
9afc2df
    mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/
9afc2df
    msgfmt ${po} -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
9afc2df
done
9afc2df
desktop-file-install usr/share/applications/%{name}.desktop --dir %{buildroot}%{_datadir}/applications
9afc2df
9afc2df
%find_lang %{name}
9afc2df
9afc2df
%clean
9afc2df
rm -rf %{buildroot}
9afc2df
9afc2df
9afc2df
%files -f %{name}.lang
9afc2df
%defattr(-,root,root,-)
9afc2df
%doc README COPYING
9afc2df
%doc usr/share/doc/%{name}/help.txt
9afc2df
%dir %{_datadir}/%{name}
9afc2df
%dir %{_libexecdir}/%{name}
9afc2df
%dir %{_sysconfdir}/%{name}
9afc2df
%config(noreplace) %{_sysconfdir}/%{name}/*
9afc2df
%{_bindir}/%{name}*
9afc2df
%{_bindir}/motd+shell
9afc2df
%{_datadir}/applications/%{name}.desktop
9afc2df
%{_datadir}/%{name}/*
9afc2df
%{_mandir}/man1/%{name}*.1.gz
9afc2df
%{_mandir}/man1/motd+shell.1.gz
9afc2df
%{_libexecdir}/%{name}/*
9afc2df
9afc2df
%changelog
9afc2df
* Sun May 2 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.73-1
9afc2df
- new version released
9afc2df
9afc2df
* Wed Apr 21 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-3
9afc2df
- adjusted SHARE path
9afc2df
9afc2df
* Tue Apr 20 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-2
9afc2df
- adjusted path for looking for po files and removed duplicate file entry
9afc2df
9afc2df
* Fri Apr 2 2010 Jan Klepek <jan.klepek at, gmail.com> - 2.67-1
9afc2df
- Initial fedora RPM release