summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rwxr-xr-xconfigure5
-rw-r--r--txr.spec38
3 files changed, 48 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f26ed8b9..6375a737 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-17 Kaz Kylheku <kaz@kylheku.com>
+
+ * configure: Do not capture the stderr of GNU Make in the
+ configure step; send it to /dev/null.
+
+ * txr.spec: Adding specfile for building RPMs.
+
2012-04-24 Kaz Kylheku <kaz@kylheku.com>
* eval.c (range_v_func, range_v_star_func): Restore the order of
diff --git a/configure b/configure
index bb4451c9..a612dbf1 100755
--- a/configure
+++ b/configure
@@ -409,8 +409,9 @@ printf "Checking for GNU Make ... "
if [ -z "$make" ] ; then
for make in make gmake ; do
- output=$($make --version 2>&1) || true
+ output=$($make --version 2> /dev/null) || true
set -- $output
+ printf "\$@=<$1> <$2> <$3>\n"
if [ $1 != "GNU" -o $2 != "Make" ] ; then
continue
@@ -423,7 +424,7 @@ if [ -z "$make" ] ; then
printf "missing\n"
exit 1
fi
-
+
make_version=$3
save_ifs=$IFS ; IFS=. ; set -- $make_version ; IFS=$save_ifs
diff --git a/txr.spec b/txr.spec
new file mode 100644
index 00000000..ede49edb
--- /dev/null
+++ b/txr.spec
@@ -0,0 +1,38 @@
+#
+# spec file for TXR
+#
+
+Name: txr
+Version: 65
+Release: 0
+Source: txr-%{version}.tar.gz
+URL: http://www.nongnu.org/txr
+Summary: Text Extraction and Data Munging Language
+License: BSD
+Provides: txr
+BuildRequires: flex bison
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+TXR is a pattern language for extracting and reporting text, with
+a powerful Lisp dialect for advanced data munging.
+
+%prep
+%setup -n txr-%{version}
+
+%build
+./configure --prefix=/usr --yacc="bison -y"
+make %{?jobs:-j%jobs}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+/usr/bin
+/usr/share
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%changelog