SHA256
1
0
forked from pool/mwic
mwic/mwic.spec

61 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package mwic
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?license: %global license %doc}
Name: mwic
Version: 0.7.3
Release: 0
Summary: Misspelled Words In Context
License: MIT
Group: Productivity/Office/Other
Url: http://jwilk.net/software/mwic
Source: https://github.com/jwilk/mwic/releases/download/0.7.3/mwic-0.7.3.tar.gz
# PATCH-FIX-UPSTREAM wip-pip.patch sebix+novell.com@sebix.at -- Allow installation with pip
Patch0: https://github.com/jwilk/mwic/compare/wip/pip.patch#/wip-pip.patch
# PATCH-FIX-OPENSUSE allow_setup.py_call.patch sebix+novell.com@sebix.at -- Allow direct call to setup.py
Patch1: allow_setup.py_call.patch
BuildRequires: python3-devel >= 3.2
BuildRequires: python3-setuptools
Requires: python3-pyenchant
Requires: python3-regex
BuildArch: noarch
%description
mwic is a spell-checker that groups possible misspellings and shows them in their contexts. This is useful for checking technical documents that often contain words that are not included in standard dictionaries.
%prep
%setup -q
%patch0 -p1
%patch1
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%doc doc/changelog
%license doc/LICENSE
%{python3_sitelib}/*
%{_bindir}/mwic
%{_mandir}/man1/mwic.1%{?ext_man}
%changelog