commit f852a61cee49bb7e76c258958ff931c78ab73d2bedb8f4460869a11a8a336d06 Author: Todd R Date: Fri Aug 15 21:51:24 2014 +0000 Accepting request 244910 from home:TheBlackCat:branches:KDE:Extra Python chm reader OBS-URL: https://build.opensuse.org/request/show/244910 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pychm?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pychm-0.8.4.1.tar.gz b/pychm-0.8.4.1.tar.gz new file mode 100644 index 0000000..c44d8c6 --- /dev/null +++ b/pychm-0.8.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecf6ba39c05d4808a401dc86e5d9fbf3c73501dd5f9959c57da746c98087d790 +size 25773 diff --git a/python-pychm.changes b/python-pychm.changes new file mode 100644 index 0000000..693a159 --- /dev/null +++ b/python-pychm.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +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 + diff --git a/python-pychm.spec b/python-pychm.spec new file mode 100644 index 0000000..6d5d088 --- /dev/null +++ b/python-pychm.spec @@ -0,0 +1,58 @@ +# spec file for package python-pychm +# +# Copyright (c) 2014 SUSE LINUX Products 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/ +# + + +Name: python-pychm +Version: 0.8.4.1 +Release: 0 +License: GPL-2.0+ +Summary: Python package to handle CHM files +Group: Development/Libraries/Python +URL: https://github.com/dottedmag/pychm +Source0: https://pypi.python.org/packages/source/p/pychm/pychm-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: chmlib-devel +BuildRequires: swig +Provides: python-PyCHM = %{version} +# change to < for next version (after 0.8.4.1) +Obsoletes: python-PyCHM <= %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +%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 pychm-%{version} + +%build +CFLAGS="%{optflags}" python setup.py build + +%install +python setup.py install --root="%{buildroot}" --prefix="%{_prefix}" + +%files +%defattr(-,root,root,-) +%doc COPYING README +%{python_sitearch}/* + +%changelog