[lsw] Initial import (#706357)
Petr Sabata
psabata at fedoraproject.org
Wed Jun 8 13:22:46 UTC 2011
commit f9d5d1c9ecc7c15b999521370735b0d4a09b868b
Author: Petr Sabata <contyk at redhat.com>
Date: Wed Jun 8 15:22:32 2011 +0200
Initial import (#706357)
.gitignore | 1 +
lsw-0.2-config.patch | 36 ++++++++++++++++++++++++++++++++++++
lsw.spec | 36 ++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..063bb57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lsw-0.2.tar.gz
diff --git a/lsw-0.2-config.patch b/lsw-0.2-config.patch
new file mode 100644
index 0000000..493cee5
--- /dev/null
+++ b/lsw-0.2-config.patch
@@ -0,0 +1,36 @@
+diff --git a/Makefile b/Makefile
+index 1d2f43d..7a324ef 100644
+--- a/Makefile
++++ b/Makefile
+@@ -40,6 +40,7 @@ install: all
+ @cp -f lsw ${DESTDIR}${PREFIX}/bin
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/lsw
+ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1/lsw.1
++ @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ @sed "s/VERSION/${VERSION}/g" < lsw.1 > ${DESTDIR}${MANPREFIX}/man1/lsw.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/lsw.1
+
+diff --git a/config.mk b/config.mk
+index 0383aa9..725d488 100644
+--- a/config.mk
++++ b/config.mk
+@@ -2,7 +2,7 @@
+ VERSION = 0.2
+
+ # paths
+-PREFIX = /usr/local
++PREFIX?= /usr/local
+ MANPREFIX = ${PREFIX}/share/man
+
+ X11INC = /usr/X11R6/include
+@@ -14,8 +14,8 @@ LIBS = -L${X11LIB} -lX11
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\"
+-CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+-LDFLAGS = -s ${LIBS}
++CFLAGS = ${RPM_OPT_FLAGS} ${INCS} ${CPPFLAGS}
++LDFLAGS = ${LIBS}
+
+ # compiler and linker
+ CC = cc
diff --git a/lsw.spec b/lsw.spec
new file mode 100644
index 0000000..6bf63f1
--- /dev/null
+++ b/lsw.spec
@@ -0,0 +1,36 @@
+Name: lsw
+Version: 0.2
+Release: 1%{?dist}
+Summary: Prints all window titles of DISPLAY to standard output
+Group: User Interface/X
+License: MIT
+URL: http://tools.suckless.org/%{name}
+Source0: http://dl.suckless.org/tools/%{name}-%{version}.tar.gz
+Patch0: lsw-0.2-config.patch
+BuildRequires: libX11-devel
+
+%description
+Lists the titles of all running X windows to stdout, similar to ls(1). Might
+be useful for script integration.
+
+%prep
+%setup -q
+%patch0 -p1 -b .config
+
+%build
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
+
+%files
+%doc LICENSE README
+%{_bindir}/lsw
+%{_mandir}/man1/lsw.1*
+
+%changelog
+* Mon Jun 06 2011 Petr Sabata <contyk at redhat.com> - 0.2-1
+- 0.2 bump
+
+* Fri May 20 2011 Petr Sabata <psabata at redhat.com> - 0.1-1
+- Initial commit
diff --git a/sources b/sources
index e69de29..115898e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5ddd61d04ff084a39494b2aa06c00b65 lsw-0.2.tar.gz
More information about the scm-commits
mailing list