Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 52aacc4230f1824b3f2b4c73c3c12f5a > files > 2

python-hachoir-core-0.7.2-1mdv2007.1.src.rpm

%define module_name hachoir-core

Summary:    Python library to edit binary file and metadata
Name: 		python-%{module_name}
Version: 	0.7.2
Release: 	%mkrel 1
Source0: 	%{module_name}-%{version}.tar.bz2
License:	GPL
Group: 		Development/Python
BuildRoot: 	%{_tmppath}/%{name}-buildroot
Url: 		http://hachoir.org/
BuildArch:  noarch
BuildRequires: python python-devel
Obsoletes:  python-hachoir

%description
Hachoir is a library written in Python which allows to see and edit a binary 
file (or any binary stream) field per field. 
A field is the most basic information: a number, a string of characters, 
a flag (yes/no), etc. Only supported formats can be opened, it's not a magic 
tool.
 
It can be used to extract some informations (eg. metadata), edit some fields 
of a file without original program, or convert a file from a format to another.
%prep
%setup -q -n %{module_name}-%version

%build
python setup.py build

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

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS COPYING README 
%doc doc/* 
%dir %py_puresitedir/hachoir_core


%changelog
* Sun Mar 04 2007 Michael Scherer <misc@mandriva.org> 0.7.2-1mdv2007.0
+ Revision: 131965