- 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:
parent
15e6e8572f
commit
e041354f7b
@ -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
|
||||
|
||||
|
20
mawk.spec
20
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
|
||||
|
Loading…
Reference in New Issue
Block a user