LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File byobu.spec of Package byobu (Project utilities)

# spec file for package byobu
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           byobu
Version:        5.94
Release:        0
Summary:        Enhanced profile and configuration utilities for GNU screen and tmux
License:        GPL-3.0
Group:          System/Console
Url:            https://launchpad.net/byobu
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%if 0%{?suse_version} > 1020
BuildRequires:  hicolor-icon-theme
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
Requires:       python-newt
%if 0%{?suse_version} > 1000
Recommends:     screen
Recommends:     tmux
Requires:       screen


Source:         http://launchpad.net/byobu/trunk/%{version}/+download/byobu_%{version}.orig.tar.gz

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

make %{?_smp_mflags}

make DESTDIR="%{buildroot}" install
%if 0%{?suse_version} < 1030
mkdir -p %{buildroot}%{_datadir}/pixmaps
sed -i 's;Icon=%{name};Icon=%{name}.svg;' %{buildroot}%{_datadir}/applications/%{name}.desktop
ln -s ../%{name}/pixmaps/%{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
%suse_update_desktop_file -r %{name} System TerminalEmulator
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
ln -s ../../../../%{name}/pixmaps/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%suse_update_desktop_file -G "Screen Profiles" -r %{name} System TerminalEmulator

%{?buildroot:rm -rf %{buildroot}}

%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/help.screen.txt
%doc %{_datadir}/doc/%{name}/help.tmux.txt
%doc %{_mandir}/man1/*.1%{ext_man}
%if 0%{?suse_version} < 1030
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/backend
%config(noreplace) %{_sysconfdir}/%{name}/socketdir
%config(noreplace) %{_sysconfdir}/profile.d/Z97-%{name}.sh