diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | txr.spec | 38 |
3 files changed, 48 insertions, 2 deletions
@@ -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 @@ -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 |