churchyard / rpms / byobu

Forked from rpms/byobu 2 years ago
Clone
a7b75ea
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
0722a74
# define icons directories...
0722a74
%define _iconstheme    hicolor
0722a74
%define _iconsbasedir  %{_datadir}/icons/%{_iconstheme}
0722a74
%define _iconsscaldir  %{_iconsbasedir}/scalable/apps
a7b75ea
10f71cd
Name:		byobu
c5ca46f
Version:	5.125
072cc15
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
17f12e5
# patch for "hard" date/time, https://bugs.launchpad.net/byobu/+bug/1284392
76a09ed
Patch0:		byobu-5.73-tmux_date.patch
10f71cd
BuildArch:	noarch
e82ebc3
%if 0%{?rhel}%{?fedora} > 5
4a7d2e2
Requires:	python2 >= 2.5
e82ebc3
%else
e82ebc3
Requires:	python26
f241cf9
%endif
10f71cd
ff1dfe8
BuildRequires:	gettext, desktop-file-utils, automake
4a7d2e2
Requires:	screen, newt, gettext, tmux, python2-newt, newt-python3
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
76a09ed
for i in `find . -type f -exec grep -l {BYOBU_PREFIX}/lib/ {} \;`; do
ff1dfe8
sed -i "s#{BYOBU_PREFIX}/lib/#{BYOBU_PREFIX}/libexec/#g" $i;
10f71cd
done
a5361a4
# fix path for lib directory #2
a5361a4
for i in `find . -type f -exec grep -l BYOBU_PREFIX/lib {} \;`; do
a5361a4
sed -i "s#BYOBU_PREFIX/lib/#BYOBU_PREFIX/libexec/#g" $i;
a5361a4
done
a5361a4
17f12e5
# apply patches
17f12e5
%patch0
17f12e5
4bfda02
# fix path for correct directory in /usr/share
76a09ed
sed -i "s#DOC = BYOBU_PREFIX + '/share/doc/' + PKG#DOC='%{_pkgdocdir}'#g" usr/lib/byobu/include/config.py.in
4bfda02
ff1dfe8
# set default fedora windows
766637b
cp -p %{SOURCE1} usr/share/byobu/windows/common
4bfda02
52cd5d5
# fix path from lib to libexec by modified Makefile.am and in
ff1dfe8
sed -i "s#/lib/#/libexec/#g" usr/lib/byobu/Makefile.am
52cd5d5
sed -i "s#/lib/#/libexec/#g" usr/lib/byobu/Makefile.in
52cd5d5
sed -i "s#/lib/#/libexec/#g" usr/lib/byobu/include/Makefile.am
52cd5d5
sed -i "s#/lib/#/libexec/#g" usr/lib/byobu/include/Makefile.in
10f71cd
10f71cd
%build
ff1dfe8
%configure
ff1dfe8
make %{?_smp_mflags}
10f71cd
10f71cd
%install
a7b75ea
make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" docdir=%{_pkgdocdir} install
52cd5d5
rm -rf %{buildroot}%{_sysconfdir}/profile.d
ff1dfe8
# remove apport which is not available in fedora
52cd5d5
rm %{buildroot}/%{_libexecdir}/%{name}/apport
ff1dfe8
sed -i 's#status\[\"apport\"\]=0##g' %{buildroot}%{_bindir}/byobu-config
a7b75ea
cp -p README COPYING %{buildroot}%{_pkgdocdir}
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
9a9b08b
#use the old xterm .desktop style for while
9a9b08b
cp -a usr/share/%{name}/desktop/%{name}.desktop.old usr/share/%{name}/desktop/%{name}.desktop
9a9b08b
desktop-file-install usr/share/%{name}/desktop/%{name}.desktop --dir %{buildroot}%{_datadir}/applications
6c6bfe0
# remove vigpg
6c6bfe0
rm %{buildroot}/usr/bin/vigpg
6c6bfe0
rm %{buildroot}/usr/share/man/man1/vigpg.1
10f71cd
0722a74
# add icon into /usr/share/icons/hicolor/scalable/apps/ from /usr/share/byobu/pixmaps/byobu.svg
0722a74
mkdir -p %{buildroot}%{_iconsscaldir}
0722a74
cp -p usr/share/byobu/pixmaps/byobu.svg %{buildroot}%{_iconsscaldir}
0722a74
10f71cd
%find_lang %{name}
10f71cd
10f71cd
10f71cd
%files -f %{name}.lang
10f71cd
%dir %{_datadir}/%{name}
10f71cd
%dir %{_libexecdir}/%{name}
52cd5d5
%dir %{_sysconfdir}/%{name}
a7b75ea
%dir %{_pkgdocdir}
0722a74
%{_iconsscaldir}/%{name}.svg
a7b75ea
%{_pkgdocdir}/*
10f71cd
%{_bindir}/%{name}*
76a09ed
%{_bindir}/col1
76a09ed
%{_bindir}/ctail
10b49be
%{_bindir}/manifest
10b49be
%{_bindir}/purge-old-kernels
76a09ed
%{_bindir}/wifi-status
9a9b08b
%{_datadir}/applications/%{name}.desktop
10f71cd
%{_datadir}/%{name}/*
10b49be
%{_datadir}/dbus-1/services/us.kirkland.terminals.byobu.service
10f71cd
%{_mandir}/man1/%{name}*.1.gz
76a09ed
%{_mandir}/man1/col1.1.gz
76a09ed
%{_mandir}/man1/ctail.1.gz
10b49be
%{_mandir}/man1/manifest.1.gz
10b49be
%{_mandir}/man1/purge-old-kernels.1.gz
76a09ed
%{_mandir}/man1/wifi-status.1.gz
10f71cd
%{_libexecdir}/%{name}/*
52cd5d5
%config(noreplace) %{_sysconfdir}/%{name}/*
10f71cd
10f71cd
%changelog
072cc15
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.125-2
072cc15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
072cc15
c5ca46f
* Sun Mar 25 2018 Filipe Rosset <rosset.filipe@gmail.com> - 5.125-1
c5ca46f
- Rebuilt for new upstream release 5.125, fixes rhbz #1480023
c5ca46f
286bc31
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.119-5
286bc31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
286bc31
4a7d2e2
* Tue Feb 06 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.119-4
4a7d2e2
- Update Python 2 dependency declarations to new packaging standards
4a7d2e2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4a7d2e2
a4dcfef
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.119-3
a4dcfef
- Remove obsolete scriptlets
a4dcfef
0e455bc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.119-2
0e455bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0e455bc
86dedaf
* Thu Jun 15 2017 Filipe Rosset <rosset.filipe@gmail.com> - 5.119-1
86dedaf
- Rebuilt for new upstream release 5.119, fixes rhbz #1458069
86dedaf
8f5430f
* Sun Apr 30 2017 Filipe Rosset <rosset.filipe@gmail.com> - 5.117-1
8f5430f
- Rebuilt for new upstream release 5.117, fixes rhbz #1446592
8f5430f
7205de0
* Fri Apr 14 2017 Filipe Rosset <rosset.filipe@gmail.com> - 5.116-2
7205de0
- Added newt python deps (thanks to Daniele Viganò), fixes rhbz #1441067
7205de0
a2cac46
* Mon Mar 20 2017 Filipe Rosset <rosset.filipe@gmail.com> - 5.116-1
a2cac46
- Rebuilt for new upstream release 5.116, fixes rhbz #1433633
a2cac46
71e0e08
* Tue Feb 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 5.115-1
71e0e08
- Rebuilt for new upstream release 5.115, fixes rhbz #1417321
71e0e08
31e81c0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.113-3
31e81c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
31e81c0
9a9b08b
* Thu Dec 15 2016 Filipe Rosset <rosset.filipe@gmail.com> - 5.113-2
9a9b08b
- Fixed issue with .desktop file (thanks to mastaiza for all tests/bug reports)
9a9b08b
10b49be
* Fri Dec 09 2016 Filipe Rosset <rosset.filipe@gmail.com> - 5.113-1
10b49be
- Rebuilt for new upstream release 5.113, fixes rhbz #1276014
10b49be
975ba77
* Fri Dec 09 2016 Filipe Rosset <rosset.filipe@gmail.com> - 5.97-3
975ba77
- Spec clean up
975ba77
bce20c9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.97-2
bce20c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bce20c9
6c6bfe0
* Tue Sep 29 2015 Jan Klepek <jan.klepek at, gmail.com> - 5.97-1
6c6bfe0
- update to 5.97
6c6bfe0
924fcbb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.92-2
924fcbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
924fcbb
a5361a4
* Sat Mar 28 2015 Jan Klepek <jan.klepek at, gmail.com> - 5.92-1
a5361a4
- update to 5.92, fix for #1196950
a5361a4
76a09ed
* Tue Nov 11 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.87-1
76a09ed
- update to 5.87
12d0732
8e6f4fb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.73-5
8e6f4fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8e6f4fb
12d0732
* Fri Feb 28 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.73-4
12d0732
- patch for issue with missing ~/.byobu/status leading to crash in byobu-config
12d0732
d29eaf3
* Thu Feb 27 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.73-3
d29eaf3
- various upstream patches
d29eaf3
17f12e5
* Wed Feb 26 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.73-2
17f12e5
- various upstream patches
17f12e5
0b3579b
* Tue Feb 18 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.73-1
0b3579b
- Update to latest release 
0b3579b
0722a74
* Thu Jan 9 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.69-2
0722a74
- added icon (#1013240)
0722a74
4bfda02
* Wed Jan 8 2014 Jan Klepek <jan.klepek at, gmail.com> - 5.69-1
4bfda02
- update to latest version (#873560)
4bfda02
- added tmux dependency (#907267)
4bfda02
a7b75ea
* Thu Dec 12 2013 Ville Skyttä <ville.skytta@iki.fi> - 5.21-7
a7b75ea
- Install docs to %%{_pkgdocdir} where available (#993689).
a7b75ea
- Fix bogus dates in %%changelog.
a7b75ea
30261ec
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.21-6
30261ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
30261ec
74fa30d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.21-5
74fa30d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
74fa30d
b7d9057
* Sat Aug 25 2012 Jan Klepek <jan.klepek at, gmail.com> - 5.21-4 
b7d9057
- desktop file handling fixed
b7d9057
a2f27db
* Sat Aug 25 2012 Jan Klepek <jan.klepek at, gmail.com> - 5.21-3
a2f27db
- another fix into documentation
a2f27db
a7b75ea
* Sun Aug 19 2012 Jan Klepek <jan.klepek at, gmail.com> - 5.21-2
9650674
- fixed documentation
9650674
a7b75ea
* Sun Aug 19 2012 Jan Klepek <jan.klepek at, gmail.com> - 5.21-1
e21e711
- new minor release
e21e711
0726c8b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.17-2
0726c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0726c8b
52cd5d5
* Sun Apr 08 2012 Jan Klepek <jan.klepek at, gmail.com> - 5.17-1
52cd5d5
- update to latest version
52cd5d5
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