14
0
forked from pool/python-pychm
Files
python-pychm/python-pychm.spec
Steve Kowalik f61bffadc1 - Update to 0.8.6:
+ 0.8.6
    * Fix crash on Windows, Linux introduced in 0.8.5 (#7)
    * Restore compatibility with Python 2.7
      (malformed runtime error messages, compilation warnings) (#6)
  + 0.8.5
    * Get rid of SWIG
    * Python 3 support
- Build for both Python 2 and 3
- Drop odd Provides/Obseletes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pychm?expand=0&rev=6
2020-03-19 05:42:30 +00:00

58 lines
1.8 KiB
RPMSpec

#
# spec file for package python-pychm
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define pkgname pychm
Name: python-%{pkgname}
Version: 0.8.6
Release: 0
Summary: Python package to handle CHM files
License: GPL-2.0-or-later
URL: https://github.com/dottedmag/pychm
Source0: https://files.pythonhosted.org/packages/source/p/pychm/pychm-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: chmlib-devel
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: swig
%python_subpackages
%description
The chm package provides three modules, chm, chmlib and extra, which
provide access to the API implemented by the C library chmlib and some
additional classes and functions. They are used to access MS-ITSS encoded
files - Compressed Html Help files (.chm).
%prep
%setup -q -n %{pkgname}-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%fdupes %{buildroot}
%files %{python_files}
%doc COPYING README
%{python_sitearch}/*
%changelog