8e0292c
Name:           wordgrinder
a02afce
Version:        0.8
a02afce
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
a02afce
Requires:       ncurses-libs lua-filesystem
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}
a02afce
install -D -m 0644 %{_builddir}/%{name}-%{version}/extras/wordgrinder.desktop %{buildroot}%{_datadir}/applications/wordgrinder.desktop
a02afce
a02afce
###############################################################################
a02afce
%post x11
a02afce
update-desktop-database &> /dev/null || :
a02afce
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
a02afce
touch --no-create %{_datadir}/mime/packages &>/dev/null || :
a02afce
a02afce
%postun x11
a02afce
update-desktop-database &> /dev/null || :
a02afce
if [ $1 -eq 0 ] ; then
a02afce
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
a02afce
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
a02afce
    update-mime-database %{_datadir}/mime &> /dev/null || :
a02afce
fi
a02afce
a02afce
%posttrans x11
a02afce
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
a02afce
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
a02afce
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
a02afce
%_mandir/man1/xwordgrinder.1*
a02afce
%{_datadir}/applications/wordgrinder.desktop
a02afce
%{_datadir}/pixmaps/wordgrinder.png
a02afce
%{_datadir}/mime-info/wordgrinder.mime
a02afce
8e0292c
###############################################################################
8e0292c
%changelog
a02afce
* Tue Oct 27 2020 Ben Cotton <bcotton@fedoraproject.org> - 0.8-1
a02afce
- Update to version 0.8
a02afce
- Make wordgrinder-x11 package standalone
a02afce
a02afce
* Tue Sep 29 2020 Ben Cotton <bcotton@fedoraproject.org> - 0.7.2-6
a02afce
- Change ncurses dependency to be more specific
a02afce
a02afce
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-5
a02afce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a02afce
e5a0462
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-4
e5a0462
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e5a0462
c605900
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-3
c605900
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c605900
e92eb2c
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
e92eb2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e92eb2c
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
c17030b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
c17030b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c17030b
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