File python-PyCHM.spec of Package python-chm

# vim: set ts=4 sw=4 et:
# kate: space-indent on; indent-width 4;
#
# spec file for package python-PyCHM (Version 0.8.4)
#
# Copyright (c) 2010-2011 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           python-PyCHM
Version:        0.8.4
Release:        0
License:        GPL-2.0
Summary:        Python Bindings for CHMLIB
URL:            http://gnochm.sourceforge.net/pychm.html
Group:          Development/Libraries/Python
Source0:        http://downloads.sourceforge.net/gnochm/pychm-%{version}.tar.gz
BuildRequires:  chmlib-devel
BuildRequires:  python-devel
Provides:       PyCHM = %{version}
Provides:       python-chm = %{version}
Obsoletes:      python-chm < 0.8.4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
PreReq: python = 2.7

%description
PyCHM is a package that provides bindings for Jed Wing's CHMLIB library.

The chm package contains four modules, namely chm.chm, chm.chmlib,
chm.extra and chm._chmlib. chm.chmlib is a low level wrapper module
around the API provided by the C library chmlib.



Authors:
--------
    Rubens Ramos <rubensr@users.sourceforge.net>

%prep
%setup -qn pychm-%{version}

%build
export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install \
    --root=%{buildroot} \
    --prefix=%{_prefix} \
    --record-rpm=INSTALLED_FILES

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc ChangeLog NEWS README

%changelog
openSUSE Build Service is sponsored by