8e0292c
Name:           wordgrinder
bf6650f
Version:        0.7.2
bf6650f
Release:        1%{?dist}
8e0292c
Summary:        A command line word processor
8e0292c
8e0292c
License:        MIT
8e0292c
URL:            http://cowlark.com/wordgrinder
8e0292c
%global pkgid   %{name}-%{version}
8e0292c
Source:         https://github.com/davidgiven/%{name}/archive/%{name}-%{version}.tar.gz
8e0292c
52c0724
BuildRequires:  gcc make ncurses-devel ninja-build
52c0724
BuildRequires:  lua-devel lua-libs lua lua-filesystem
52c0724
BuildRequires:  zlib-devel libXft-devel
52c0724
Requires:       ncurses lua-filesystem
b2211c8
# luaJIT is not available on all architectures
52c0724
#ExcludeArch:   s390x ppc64 ppc64le
8e0292c
8e0292c
%description
8e0292c
WordGrinder is a Unicode-aware character cell word processor that runs in a
8e0292c
terminal (or a Windows console). It is designed to get the hell out of your way
8e0292c
and let you get some work done.
8e0292c
8e0292c
WordGrinder is a word processor for processing words. It is not WYSIWYG. It is
8e0292c
not point and click. It is not a desktop publisher. It is not a text editor. It
8e0292c
does not do fonts and it barely does styles. What it does do is words. It's
8e0292c
designed for writing text. It gets out of your way and lets you type
8e0292c
52c0724
%package x11
52c0724
Summary: X11 version of WordGrinder
52c0724
Requires: %name = %version-%release
52c0724
Requires: libX11
52c0724
%description x11
52c0724
An X11 version of the WordGrinder word processor.
52c0724
8e0292c
%prep
8e0292c
52c0724
%setup -q -n %{name}-%{version}
8e0292c
8e0292c
###############################################################################
8e0292c
%build
8e0292c
52c0724
CFLAGS=-g PREFIX=$RPM_BUILD_ROOT/%{_prefix} OBJDIR=$RPM_BUILD_ROOT/tmp WANT_STRIPPED_BINARIES=no make %{?_smp_mflags}
8e0292c
8e0292c
###############################################################################
8e0292c
%install
8e0292c
8e0292c
make install PREFIX=$RPM_BUILD_ROOT/%{_prefix}
52c0724
#make install
8e0292c
8e0292c
###############################################################################
8e0292c
%files
52c0724
%license licenses/COPYING.WordGrinder
8e0292c
%_bindir/wordgrinder
8e0292c
%_docdir/wordgrinder/README.wg
8e0292c
%_mandir/man1/wordgrinder.1*
8e0292c
52c0724
%files x11
52c0724
%license licenses/COPYING.WordGrinder
52c0724
%_bindir/xwordgrinder
8e0292c
###############################################################################
8e0292c
%changelog
bf6650f
* Fri Jan 04 2019 Ben Cotton <bcotton@fedoraproject.org> - 0.7.2-1
bf6650f
- Update to latest upstream release
bf6650f
- Remove unnecessary patch to build scripts
bf6650f
081fdeb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
081fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
081fdeb
52c0724
* Sun Nov 05 2017 Ben Cotton <bcotton@fedoraproject.org> - 0.7.1-1
52c0724
- Update to latest upstream release
52c0724
- Remove unneeded dependences, which allows us more build arches
52c0724
- Split the X11 version into an optional subpackage
52c0724
62c3c42
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
62c3c42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
62c3c42
32f0d34
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-5
32f0d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32f0d34
8e0292c
* Thu Jul 06 2017 Ben Cotton <bcotton@fedoraproject.org> - 0.6-4
8e0292c
- Fix debuginfo issues
8e0292c
8e0292c
* Thu Jul 06 2017 Ben Cotton <bcotton@fedoraproject.org> - 0.6-3
8e0292c
- Update the patch to build on Fedora 26
8e0292c
8e0292c
* Sun Jul 02 2017 Ben Cotton <bcotton@fedoraproject.org> - 0.6-2
8e0292c
- Change lua to a version supported by upstream (5.1)
8e0292c
8e0292c
* Wed Jun 07 2017 Ben Cotton <bcotton@fedoraproject.org> - 0.6-1
8e0292c
- Initial RPM release