- package COPYING

- simplify installation
- make example scripts executable

OBS-URL: https://build.opensuse.org/package/show/Base:System/mawk?expand=0&rev=10
This commit is contained in:
Guido Berhoerster 2012-05-15 08:43:49 +00:00 committed by Git OBS Bridge
parent 15e6e8572f
commit e041354f7b
2 changed files with 19 additions and 8 deletions

View File

@ -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 Tue Jan 10 10:00:25 UTC 2012 - gber@opensuse.org

View File

@ -16,6 +16,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: mawk Name: mawk
Summary: Implementation of New/POSIX AWK Summary: Implementation of New/POSIX AWK
License: GPL-2.0 License: GPL-2.0
@ -44,22 +45,25 @@ provides a small number of extensions.
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
chmod 755 examples/*
%build %build
# without --enable-warnings several functions will not be marked with gcc's # without --enable-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall # noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure --enable-warnings %configure \
--enable-warnings \
--bindir=/bin
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%make_install %make_install
# move to /bin and symlink to /usr/bin # move to /bin and symlink to /usr/bin
%__mkdir_p $RPM_BUILD_ROOT/bin install -d -m 755 %{buildroot}/%{_bindir}
%__mv $RPM_BUILD_ROOT/usr/bin/mawk $RPM_BUILD_ROOT/bin ln -s ../../bin/mawk %{buildroot}/%{_bindir}/mawk
%__ln_s ../../bin/mawk $RPM_BUILD_ROOT/usr/bin/mawk
# create ghost files # create ghost files
touch $RPM_BUILD_ROOT/bin/awk $RPM_BUILD_ROOT/usr/bin/awk \ touch %{buildroot}/bin/awk %{buildroot}%{_bindir}/awk \
$RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz %{buildroot}%{_mandir}/man1/awk.1.gz
%check %check
make check make check
@ -76,12 +80,12 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES README ACKNOWLEDGMENT examples/ %doc ACKNOWLEDGMENT CHANGES COPYING README examples/
%doc %{_mandir}/man1/mawk.1* %doc %{_mandir}/man1/mawk.1*
%ghost /bin/awk %ghost /bin/awk
%ghost %{_bindir}/awk %ghost %{_bindir}/awk
%ghost %{_mandir}/man1/awk.1.gz %ghost %{_mandir}/man1/awk.1.gz
/usr/bin/mawk %{_bindir}/mawk
/bin/mawk /bin/mawk
%changelog %changelog