File pychm.spec of Package pychm

#
# spec file for pychm (Version 0.8.4)
#
# Copyright (c) 2009 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#

# norootforbuild

%define name pychm
%define version 0.8.4
%define release 2fc5

Summary: Python package to handle CHM files
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
Vendor: Rubens Ramos <rubensr@users.sourceforge.net>
Packager: sda00 <sda00@himki.net>
Requires: python chmlib
Url: http://gnochm.sourceforge.net
BuildRequires: python python-devel chmlib-devel

%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

%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build 

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

if [ -d  "$RPM_BUILD_ROOT"/usr/local ] ; then
mv "$RPM_BUILD_ROOT"/usr/local/* "$RPM_BUILD_ROOT"/usr/
rm -rf "$RPM_BUILD_ROOT"/usr/local
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README NEWS COPYING ChangeLog
%{_libdir}/python%{py_ver}/site-packages/*
##{python_sitelib}/chm
##{python_sitelib}/py*
openSUSE Build Service is sponsored by