From 0728e11960e9d5df516fffce25f20dc95cae8bee2ed337d86f6b70cf4ad26d31 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Sat, 24 Nov 2012 18:39:45 +0000 Subject: [PATCH] 2.6 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + i3status-2.6.tar.bz2 | 3 ++ i3status-makefile.patch | 35 ++++++++++++++++++++++ i3status.changes | 5 ++++ i3status.spec | 66 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 i3status-2.6.tar.bz2 create mode 100644 i3status-makefile.patch create mode 100644 i3status.changes create mode 100644 i3status.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/i3status-2.6.tar.bz2 b/i3status-2.6.tar.bz2 new file mode 100644 index 0000000..800b44f --- /dev/null +++ b/i3status-2.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7e710cc271887bcd22757269e1b00a5618fb53abdb3455140116b3d38797bce +size 34896 diff --git a/i3status-makefile.patch b/i3status-makefile.patch new file mode 100644 index 0000000..7adcf46 --- /dev/null +++ b/i3status-makefile.patch @@ -0,0 +1,35 @@ +--- Makefile.orig 2012-11-24 19:34:13.213324417 +0100 ++++ Makefile 2012-11-24 19:35:39.068425956 +0100 +@@ -10,9 +10,9 @@ + endif + + CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare +-CFLAGS+=-g + CFLAGS+=-std=gnu99 + CFLAGS+=-pedantic ++CFLAGS+=$(OPTFLAGS) + CPPFLAGS+=-DSYSCONFDIR=\"$(SYSCONFDIR)\" + CPPFLAGS+=-DVERSION=\"${GIT_VERSION}\" + CFLAGS+=-Iinclude +@@ -49,18 +49,15 @@ + OBJS:=$(OBJS:.c=.o) + + src/%.o: src/%.c +- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< +- @echo " CC $<" ++ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + + %.o: %.c include/%.h +- @$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< +- @echo " CC $<" ++ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + + all: i3status manpage + + i3status: ${OBJS} +- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +- @echo " LD $@" ++ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + + clean: + rm -f *.o src/*.o diff --git a/i3status.changes b/i3status.changes new file mode 100644 index 0000000..c615ef7 --- /dev/null +++ b/i3status.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Nov 24 18:39:30 CET 2012 - pascal.bleser@opensuse.org + +- initial version (2.6) + diff --git a/i3status.spec b/i3status.spec new file mode 100644 index 0000000..05a016b --- /dev/null +++ b/i3status.spec @@ -0,0 +1,66 @@ +# vim: set sw=4 ts=4 et nu: + +# Copyright (c) 2012 Pascal Bleser +# +# 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.6 +Release: 0 +Summary: I3 Status Bar +Source: http://i3wm.org/i3status/i3status-%{version}.tar.bz2 +Patch1: i3status-makefile.patch +URL: http://i3wm.org/i3status/ +Group: System/Monitoring +License: BSD-3-Clause +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: alsa-devel +BuildRequires: libiw-devel +BuildRequires: libyajl-devel +BuildRequires: libconfuse-devel +BuildRequires: gcc make glibc-devel pkgconfig +BuildRequires: autoconf automake libtool +BuildRequires: update-desktop-files + +%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 +%patch1 + +%build +%__make %{?_smp_mflags} \ + OPTFLAGS="%{optflags}" \ + PREFIX="%{_prefix}" \ + SYSCONFDIR="%{_sysconfdir}" + +%install +%makeinstall + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +%doc CHANGELOG LICENSE +%config(noreplace) %{_sysconfdir}/i3status.conf +%{_bindir}/i3status +%doc %{_mandir}/man1/i3status.1* + +%changelog