[lsx] Initial import (#706359)

Petr Sabata psabata at fedoraproject.org
Thu Jun 2 14:50:34 UTC 2011


commit 04649432c859596558668f9758b4241f916c0f35
Author: Petr Sabata <contyk at redhat.com>
Date:   Thu Jun 2 16:50:38 2011 +0200

    Initial import (#706359)

 .gitignore           |    1 +
 lsx-0.1-config.patch |   34 ++++++++++++++++++++++++++++++++++
 lsx.spec             |   30 ++++++++++++++++++++++++++++++
 sources              |    1 +
 4 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c1c0685 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lsx-0.1.tar.gz
diff --git a/lsx-0.1-config.patch b/lsx-0.1-config.patch
new file mode 100644
index 0000000..ed9ded3
--- /dev/null
+++ b/lsx-0.1-config.patch
@@ -0,0 +1,34 @@
+diff --git a/Makefile b/Makefile
+index 19f94ce..bc4b927 100644
+--- a/Makefile
++++ b/Makefile
+@@ -22,7 +22,6 @@ options:
+ lsx: ${OBJ}
+ 	@echo LD $@
+ 	@${CC} -o $@ ${OBJ} ${LDFLAGS}
+-	@strip $@
+ 
+ clean:
+ 	@echo cleaning
+diff --git a/config.mk b/config.mk
+index f526b22..dca714b 100644
+--- a/config.mk
++++ b/config.mk
+@@ -4,7 +4,7 @@ VERSION = 0.1
+ # Customize below to fit your system
+ 
+ # paths
+-PREFIX = /usr/local
++PREFIX?= /usr/local
+ MANPREFIX = ${PREFIX}/share/man
+ 
+ # includes and libs
+@@ -12,7 +12,7 @@ INCS = -I/usr/lib
+ LIBS = -L/usr/lib -lc
+ 
+ # flags
+-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
++CFLAGS = ${RPM_OPT_FLAGS} ${INCS} -DVERSION=\"${VERSION}\"
+ LDFLAGS = ${LIBS}
+ #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
+ #LDFLAGS = -g ${LIBS}
diff --git a/lsx.spec b/lsx.spec
new file mode 100644
index 0000000..a06d757
--- /dev/null
+++ b/lsx.spec
@@ -0,0 +1,30 @@
+Name:           lsx
+Version:        0.1
+Release:        1%{?dist}
+Summary:        List executables in a directory tree
+Group:          Applications/System
+License:        MIT
+URL:            http://tools.suckless.org/%{name}
+Source0:        http://dl.suckless.org/tools/%{name}-%{version}.tar.gz
+Patch0:         lsx-0.1-config.patch
+
+%description
+Prints all executable file names of given absolute paths to standard output.
+
+%prep
+%setup -q
+%patch0 -p1 -b .config
+
+%build
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
+
+%files
+%doc LICENSE README
+%{_bindir}/lsx
+
+%changelog
+* Fri May 20 2011 Petr Sabata <psabata at redhat.com> - 0.1-1
+- Initial commit
diff --git a/sources b/sources
index e69de29..97d7393 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d48fdce9868b13bf5ef3e7834768f89f  lsx-0.1.tar.gz


More information about the scm-commits mailing list