File mawk.spec of Package mawk

#
# spec file for package mawk (Version 1.3.3)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
#norootforbuild

%define minor 20090712

Summary: An interpreter for the AWK Programming Language
Name: mawk
Version: 1.3.3
Release: 1
Source: %{name}-%{version}-%{minor}.tar.bz2
Vendor: %{vendor}
URL: http://invisible-island.net/mawk/mawk.html
License: GPL
Group: Productivity/File Utilities
BuildRoot: %{_builddir}/%{name}-%{version}-build


%description
Mawk (Mike's awk) is an interpreter for the
AWK Programming Language, sometimes considered
to be light and fast compared with the standard
GNU awk (gawk).

It was written by Mike Brennan. And there was
no maintainer for some time.

Thomas E Dickey adopted it, starting with fixes
from the Debian package, and resolving issues
which the package maintainer did not respond to.


%prep
%setup -q -n %{name}-%{version}-%{minor}


%build
if [ -x ./configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
	--libdir=%{_prefix}/%_lib \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir}/lib \
	--disable-dependancy-tracking \
	--disable-static
else
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
%{__make}
%debug_package


%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install

%{__install} -d -m 0755 %{buildroot}%{_mandir} && \

%{__mv} -f "%{buildroot}/usr/man/man1" \
%{buildroot}%{_mandir}
%{__rm} -r %{buildroot}/usr/man

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1.gz


%changelog
* Sat Jul 18 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 1.33-1
- Initial package.
openSUSE Build Service is sponsored by