Blob Blame History Raw
%global	pver	20130219

Name:		mawk
Version:	1.3.4
Release:	2.%{pver}%{?dist}
Epoch:		1
Summary:	Interpreter for the AWK programming language
Group:		Applications/Text
License:	GPLv2
URL:		http://invisible-island.net/mawk/
Source0:	ftp://invisible-island.net/mawk/%{name}-%{version}-%{pver}.tgz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
mawk is an interpreter for the AWK programming language.  The AWK language is
useful for manipulation of data files, text retrieval and processing, and for
prototyping and experimenting with algorithms.

%prep
%setup -q -n %{name}-%{version}-%{pver}
chmod 644 examples/*

%build
%configure
make %{?_smp_mflags}

%check
make check

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL='install -p'

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc COPYING CHANGES README examples/

%{_bindir}/mawk
%{_mandir}/man1/mawk.1*

%changelog
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.4-2.20130219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Jun 19 2013 Mark McKinstry <mmckinst@nexcess.net> - 1:1.3.4-1.20130219
- redo versioning to match Fedora guidelines. also means bumping the epoch

* Fri Feb 22 2013 Mark McKinstry <mmckinst@nexcess.net> - 1.3.4-20130219.1
- upgrade to 1.3.4-20130219 (BZ #885733)

* Tue Dec  4 2012 Mark McKinstry <mmckinst@nexcess.net> - 1.3.4-20121129.1
- upgrade to 1.3.4-20121129 (BZ #882867)

* Sun Oct 10 2010 Mark McKinstry <mmckinst@nexcess.net> 1.3.4-5.20100625
- buildroot had a leftover macro from the old way of defining the version

* Thu Oct 7 2010 Mark McKinstry <mmckinst@nexcess.net> 1.3.4-4.20100625
- only include examples once
- include a '/' for examples documentation so its clear its a directory

* Wed Oct 6 2010 Mark McKinstry <mmckinst@nexcess.net> 1.3.4-3.20100625
- include examples as part of documentation

* Tue Oct 5 2010 Mark McKinstry <mmckinst@nexcess.net> 1.3.4-2.20100625
- redo versioning macro
- make summary more concise

* Sat Sep 17 2010 Mark McKinstry <mmckinst@nexcess.net> 1.3.4.20100625-1
- initial build adapted from Thomas Dickey's spec