forked from repoforge/rpms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Name: runawk | ||
Version: 1.4.0 | ||
Release: 1%{?dist} | ||
|
||
Summary: Wrapper for AWK providing modules | ||
License: MIT | ||
Group: Development/Other | ||
|
||
Url: http://runawk.sourceforge.net | ||
Source: http://prdownloads.sf.net/%{name}/%{name}-%{version}.tar.gz | ||
Packager: Aleksey Cheusov <vle@gmx.net> | ||
|
||
BuildPreReq: mk-configure >= 0.21.0 | ||
|
||
BuildRequires: bmake mk-configure | ||
|
||
%description | ||
RUNAWK is a small wrapper for AWK interpreter that helps to write | ||
the standalone programs in AWK. It provides MODULES for AWK | ||
similar to PERL's "use" command and other powerful features. | ||
Dozens of ready to use modules are also provided. | ||
|
||
%package examples | ||
Summary: Examples for RunAWK | ||
Group: Documentation | ||
BuildArch: noarch | ||
Requires: %{name} = %{version}-%{release} | ||
|
||
%description examples | ||
This package contains examples for RunAWK. | ||
|
||
%prep | ||
%setup | ||
|
||
%define env \ | ||
unset MAKEFLAGS \ | ||
export PREFIX=%{_prefix} \ | ||
export SYSCONFDIR=%{_sysconfdir} \ | ||
export MANDIR=%{_mandir} | ||
|
||
%build | ||
%env | ||
mkcmake all | ||
#mkcmake a_getopt | ||
|
||
%check | ||
%env | ||
export TMPDIR=/tmp | ||
mkcmake test | ||
|
||
%install | ||
%env | ||
export DESTDIR=%{buildroot} | ||
mkcmake install | ||
#mkcmake install-a_getopt | ||
|
||
%files | ||
%doc doc/* | ||
%{_bindir}/* | ||
%{_mandir}/man1/* | ||
%{_datadir}/%{name}/ | ||
|
||
%files examples | ||
%doc examples | ||
|
||
# TODO: | ||
# - consider packaging alt_getopt as a subpackage | ||
# (uses runawk, isn't used by runawk) | ||
|
||
%changelog | ||
* Mon Jan 2 2012 Aleksey Cheusov <vle@gmx.net> 1.3.2-1 | ||
- adapted for repoforge | ||
|
||
* Mon Nov 21 2011 Michael Shigorin <mike@altlinux.org> 1.3.2-alt2 | ||
- fixed name spelling | ||
|
||
* Mon Nov 07 2011 Michael Shigorin <mike@altlinux.org> 1.3.2-alt1 | ||
- built for ALT Linux (new paexec dependency) | ||
+ thanks Aleksey Cheusov for outstanding upstream support | ||
|