14
0
forked from pool/python-pychm

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pychm?expand=0&rev=11
This commit is contained in:
2025-06-04 09:29:14 +00:00
committed by Git OBS Bridge
commit fa2759ed87
5 changed files with 150 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pychm-0.8.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:26606fec1e30cf7506c7afa943460c31e8dac87f35b7f178f437574d654cf672
size 19562

62
python-pychm.changes Normal file
View File

@@ -0,0 +1,62 @@
-------------------------------------------------------------------
Wed Jun 4 09:28:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Jun 29 16:59:51 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file.
-------------------------------------------------------------------
Wed Jun 28 13:35:34 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Thu Mar 19 05:39:59 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- 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
-------------------------------------------------------------------
Tue Nov 21 12:02:27 UTC 2017 - mpluskal@suse.com
- Convert to singlespec
-------------------------------------------------------------------
Fri Aug 15 21:42:38 UTC 2014 - toddrme2178@gmail.com
- Rename package to python-pychm to meet python packaging rules
This also brings the package and spec file names into agreement
-------------------------------------------------------------------
Fri Aug 15 20:45:58 UTC 2014 - toddrme2178@gmail.com
- Update to 0.8.4.1:
* New maintainer (Mikhail Gusarov)
* Fix compilation under OS X and Windows.
- Complete rewrite of the spec file to match current python
packaging conventions.
- Updated URL and point source package to pypi download location.
- Update license to GPL-2.0+ (it was listed as GPL-2.0)
- Build now requires python-setuptools
-------------------------------------------------------------------
Mon May 30 18:50:29 UTC 2011 - lazy.kent@opensuse.org
- renamed to python-PyCHM
-------------------------------------------------------------------
Fri Jul 30 23:18:08 UTC 2010 - lazy.kent.suse@gmail.com
- initial package created - 0.8.4

61
python-pychm.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-pychm
#
# Copyright (c) 2025 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/
#
%define pkgname pychm
%{?sle15_python_module_pythons}
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 pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
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}"
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}
%files %{python_files}
%license COPYING
%doc README
%{python_sitearch}/chm
%{python_sitearch}/pychm-%{version}*-info
%changelog