churchyard / rpms / byobu

Forked from rpms/byobu 2 years ago
Clone
10f71cd
Name:		byobu
af907d0
Version:	4.41
1580641
Release:	2%{?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
10f71cd
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10f71cd
BuildArch:	noarch
e82ebc3
%if 0%{?rhel}%{?fedora} > 5
f241cf9
Requires:	python >= 2.5
e82ebc3
%else
e82ebc3
Requires:	python26
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
cb3201c
# remove swap file
af907d0
if [ -e "usr/bin/.byobu-status-print.swp" ]; then rm usr/bin/.byobu-status-print.swp
af907d0
fi
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
e82ebc3
for i in `grep -Ri BYOBU_PREFIX/lib/ * | awk -F: '{print $1}' | uniq`; do
e82ebc3
sed -i "s#BYOBU_PREFIX/lib/#BYOBU_PREFIX/libexec/#g" $i;
e82ebc3
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
1580641
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.41-2
1580641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1580641
af907d0
* Sat Oct 15 2011 Jan Klepek <jan.klepek at, gmail.com> - 4.41-1
af907d0
- update to 4.41
af907d0
cb3201c
* Mon Aug 1 2011 Jan Klepek <jan.klepek at, gmail.com> - 4.23-1
cb3201c
- update to 4.23
cb3201c
e82ebc3
* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 4.22-2
e82ebc3
- updated to 4.22 + various bugfixes
e82ebc3
e82ebc3
* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 4.20-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