diff --git a/mawk.changes b/mawk.changes index 4dca68b..942cf3d 100644 --- a/mawk.changes +++ b/mawk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 15 08:43:19 UTC 2012 - gber@opensuse.org + +- package COPYING +- simplify installation +- make example scripts executable + ------------------------------------------------------------------- Tue Jan 10 10:00:25 UTC 2012 - gber@opensuse.org diff --git a/mawk.spec b/mawk.spec index 608134b..1907187 100644 --- a/mawk.spec +++ b/mawk.spec @@ -16,6 +16,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: mawk Summary: Implementation of New/POSIX AWK License: GPL-2.0 @@ -44,22 +45,25 @@ provides a small number of extensions. %setup -q %patch0 -p1 %patch1 -p1 +chmod 755 examples/* %build # without --enable-warnings several functions will not be marked with gcc's # noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall -%configure --enable-warnings +%configure \ + --enable-warnings \ + --bindir=/bin make %{?_smp_mflags} %install %make_install + # move to /bin and symlink to /usr/bin -%__mkdir_p $RPM_BUILD_ROOT/bin -%__mv $RPM_BUILD_ROOT/usr/bin/mawk $RPM_BUILD_ROOT/bin -%__ln_s ../../bin/mawk $RPM_BUILD_ROOT/usr/bin/mawk +install -d -m 755 %{buildroot}/%{_bindir} +ln -s ../../bin/mawk %{buildroot}/%{_bindir}/mawk # create ghost files -touch $RPM_BUILD_ROOT/bin/awk $RPM_BUILD_ROOT/usr/bin/awk \ - $RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz +touch %{buildroot}/bin/awk %{buildroot}%{_bindir}/awk \ + %{buildroot}%{_mandir}/man1/awk.1.gz %check make check @@ -76,12 +80,12 @@ fi %files %defattr(-,root,root,-) -%doc CHANGES README ACKNOWLEDGMENT examples/ +%doc ACKNOWLEDGMENT CHANGES COPYING README examples/ %doc %{_mandir}/man1/mawk.1* %ghost /bin/awk %ghost %{_bindir}/awk %ghost %{_mandir}/man1/awk.1.gz -/usr/bin/mawk +%{_bindir}/mawk /bin/mawk %changelog