File python-chm.spec of Package python-chm
#
# spec file for package python-chm (Version 0.8.4)
#
# norootforbuild
%define modname pychm
Name: python-chm
BuildRequires: python-devel chmlib-devel
Version: 0.8.4
Release: 4
Summary: Python package to handle CHM files
Group: Development/Libraries/Python
License: GPL
URL: http://gnochm.sourceforge.net
Source0: %{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%py_requires
Requires: python chmlib
%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).
Authors:
--------
Rubens Ramos <rubensr@users.sourceforge.net>
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT \
--prefix=%{_prefix} \
--record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README NEWS COPYING ChangeLog
%{py_sitedir}/*
%changelog
* Fri Nov 16 2007 - Claes Backstrom <claes.backstrom@fsfe.org>
- spec file clean-up
* Thu Feb 1 2007 - Claes Backstrom <claes.backstrom@gmail.com>
- initial package (version 0.8.4)