i3status/i3status.spec

69 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package i3status
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
Accepting request 246615 from home:t-p Sa Jul 26 22:2:11 UTC 2014 - email@pfeiffer.pw • Fix build on GNU/Hurd • Add format_down for battery if no battery is available • Use degraded color in case volume is muted with OSS • Support mixer_idx with OSS • Enable colored output for battery on FreeBSD • print_volume: don’t return, complete the buffer first • Support colored output for CPU temperature on FreeBSD • manpage: mention i3bar in the description • manpage: be more explicit about the path option • battery: use path as i3bar JSON “instance” • print_volume(linux): Open a new mixer every time • Implement term output format • signal handler: set flag because directly calling fprintf() is unsafe • Makefile: use .SILENT and support V=1 for verbose builds • load: allow max_threshold to be a float • manpage: Add example path for CPU temperature • Fix build on NetBSD • Implement cpu usage, ethernet status, cpu temperature on NetBSD • fix slurp(), it needs to read size-1 for the trailing NUL • format detection: simplify code, handle "sh" processes in the hierarchy • default config: show %avail disk space instead of %free • Added different format string for volume in case it is muted • manpage: document format_muted • add support for path_exists directive • disk: Distinguish between IEC, SI and custom prefixes - initial version (2.7) OBS-URL: https://build.opensuse.org/request/show/246615 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=5
2014-10-20 11:14:44 +02:00
# Copyright (c) 2014 Thomas Pfeiffer <email@pfeiffer.pw>
#
# 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: i3status
Version: 2.9
Release: 0
Summary: I3 Status Bar
License: BSD-3-Clause
Group: System/Monitoring
Accepting request 246615 from home:t-p Sa Jul 26 22:2:11 UTC 2014 - email@pfeiffer.pw • Fix build on GNU/Hurd • Add format_down for battery if no battery is available • Use degraded color in case volume is muted with OSS • Support mixer_idx with OSS • Enable colored output for battery on FreeBSD • print_volume: don’t return, complete the buffer first • Support colored output for CPU temperature on FreeBSD • manpage: mention i3bar in the description • manpage: be more explicit about the path option • battery: use path as i3bar JSON “instance” • print_volume(linux): Open a new mixer every time • Implement term output format • signal handler: set flag because directly calling fprintf() is unsafe • Makefile: use .SILENT and support V=1 for verbose builds • load: allow max_threshold to be a float • manpage: Add example path for CPU temperature • Fix build on NetBSD • Implement cpu usage, ethernet status, cpu temperature on NetBSD • fix slurp(), it needs to read size-1 for the trailing NUL • format detection: simplify code, handle "sh" processes in the hierarchy • default config: show %avail disk space instead of %free • Added different format string for volume in case it is muted • manpage: document format_muted • add support for path_exists directive • disk: Distinguish between IEC, SI and custom prefixes - initial version (2.7) OBS-URL: https://build.opensuse.org/request/show/246615 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=5
2014-10-20 11:14:44 +02:00
Source: http://i3wm.org/i3status/%{name}-%{version}.tar.bz2
Url: http://i3wm.org/i3status/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: alsa-devel
BuildRequires: asciidoc
Accepting request 246615 from home:t-p Sa Jul 26 22:2:11 UTC 2014 - email@pfeiffer.pw • Fix build on GNU/Hurd • Add format_down for battery if no battery is available • Use degraded color in case volume is muted with OSS • Support mixer_idx with OSS • Enable colored output for battery on FreeBSD • print_volume: don’t return, complete the buffer first • Support colored output for CPU temperature on FreeBSD • manpage: mention i3bar in the description • manpage: be more explicit about the path option • battery: use path as i3bar JSON “instance” • print_volume(linux): Open a new mixer every time • Implement term output format • signal handler: set flag because directly calling fprintf() is unsafe • Makefile: use .SILENT and support V=1 for verbose builds • load: allow max_threshold to be a float • manpage: Add example path for CPU temperature • Fix build on NetBSD • Implement cpu usage, ethernet status, cpu temperature on NetBSD • fix slurp(), it needs to read size-1 for the trailing NUL • format detection: simplify code, handle "sh" processes in the hierarchy • default config: show %avail disk space instead of %free • Added different format string for volume in case it is muted • manpage: document format_muted • add support for path_exists directive • disk: Distinguish between IEC, SI and custom prefixes - initial version (2.7) OBS-URL: https://build.opensuse.org/request/show/246615 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=5
2014-10-20 11:14:44 +02:00
BuildRequires: libasound2
BuildRequires: libcap2
BuildRequires: libconfuse-devel
BuildRequires: libiw-devel
Accepting request 246615 from home:t-p Sa Jul 26 22:2:11 UTC 2014 - email@pfeiffer.pw • Fix build on GNU/Hurd • Add format_down for battery if no battery is available • Use degraded color in case volume is muted with OSS • Support mixer_idx with OSS • Enable colored output for battery on FreeBSD • print_volume: don’t return, complete the buffer first • Support colored output for CPU temperature on FreeBSD • manpage: mention i3bar in the description • manpage: be more explicit about the path option • battery: use path as i3bar JSON “instance” • print_volume(linux): Open a new mixer every time • Implement term output format • signal handler: set flag because directly calling fprintf() is unsafe • Makefile: use .SILENT and support V=1 for verbose builds • load: allow max_threshold to be a float • manpage: Add example path for CPU temperature • Fix build on NetBSD • Implement cpu usage, ethernet status, cpu temperature on NetBSD • fix slurp(), it needs to read size-1 for the trailing NUL • format detection: simplify code, handle "sh" processes in the hierarchy • default config: show %avail disk space instead of %free • Added different format string for volume in case it is muted • manpage: document format_muted • add support for path_exists directive • disk: Distinguish between IEC, SI and custom prefixes - initial version (2.7) OBS-URL: https://build.opensuse.org/request/show/246615 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=5
2014-10-20 11:14:44 +02:00
BuildRequires: libxslt-devel
BuildRequires: libyajl-devel
%description
i3status is a small program (about 1500 SLOC) for generating a status bar for
i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
by issuing a very small number of system calls, as one generally wants to
update such a status line every second. This ensures that even under high load,
your status bar is updated correctly. Also, it saves a bit of energy by not
hogging your CPU as much as spawning the corresponding amount of shell commands
would.
%prep
%setup -q
chmod -x contrib/*.*
%build
%__make %{?_smp_mflags} \
OPTFLAGS="%{optflags}" \
PREFIX="%{_prefix}" \
SYSCONFDIR="%{_sysconfdir}"
%install
%make_install
%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE contrib/
%config(noreplace) %{_sysconfdir}/i3status.conf
%{_bindir}/i3status
%doc %{_mandir}/man1/i3status.1*
%changelog