LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
# spec file for package byobu
#
# Copyright (c) 2016 SUSE LINUX 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.108
Release:        0
Summary:        Enhanced profile and configuration utilities for GNU Screen and tmux
License:        GPL-3.0
Group:          System/Console
Url:            http://byobu.org/
Source:         https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
Source1:        https://launchpad.net/%{name}/trunk/%{version}/+download/..-%{name}_%{version}.orig.tar.gz.asc#/%{name}_%{version}.orig.tar.gz.asc
Source2:        %{name}.keyring
# For /usr/share/dbus-1/services/ ownership.
BuildRequires:  dbus-1-devel
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
Requires:       python-newt
Recommends:     pastebinit
Recommends:     screen
Recommends:     tmux
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%else
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%endif

%description
Byobu includes an enhanced profiles, convenient keybindings,
configuration utilities, and toggle-able system status
notifications for both the GNU Screen window manager and tmux
terminal multiplexer.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install

mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/

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
%fdupes %{buildroot}%{_mandir}/

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%config %{_sysconfdir}/profile.d/Z97-%{name}.*sh
%dir %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/*
%if 0%{?suse_version} >= 1120
%{_libexecdir}/%{name}/
%else
%{_prefix}/lib/%{name}/
%endif
%{_datadir}/%{name}/
%{_mandir}/man1/*.1%{?ext_man}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/dbus-1/services/*%{name}.service

%changelog