Name: fex
Version: 2.0.0
Release: 1%{?dist}
Summary: Field split/extraction like cut/awk
Group: Applications/Text
License: BSD
URL: http://semicomplete.com/projects/fex/
Source0: https://github.com/jordansissel/%{name}/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Fex is a powerful field extraction tool. Fex provides a very concise language
for tokenizing strings and extracting fields.
%prep
%setup -q
# snprintf has a license incompatible with Fedora
# It is only used on Solaris so just delete the directory to avoid confusion or
# problems with licensing.
rm -rf snprintf_2.2
%build
make %{?_smp_mflags} CFLAGS="%{optflags}"
make %{?_smp_mflags} CFLAGS="%{optflags}" fex.1
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%changelog
* Fri Jan 15 2016 Mark McKinstry <mmckinst@umich.edu> - 2.0.0-1
- upgrade to fex 2.0.0
* Mon Jan 9 2012 Mark McKinstry <mmckinst@nexcess.net> - 1.20100416.2814-2
- fix typo in description
- add a clean section to the spec
- add it to the Applications/Text group in the spec
* Sun Jan 1 2012 Mark McKinstry <mmckinst@nexcess.net> - 1.20100416.2814-1
- initial build