Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > db616eb2cb6d93fc9c83fc8c45d1af6a > files > 2

python-hachoir-0.5.2-3mdv2010.0.src.rpm

%define module_name hachoir

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

%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 BUGS  README INSTALL TODO
%doc doc/* 
%dir %py_puresitedir/%module_name



%changelog
* Fri Sep 04 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.5.2-3mdv2010.0
+ Revision: 430846
- rebuild

* Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.5.2-2mdv2009.0
+ Revision: 222650
- buildrequires python-devel instead of python
- BuildRequires python for distutils/core
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Wed Aug 23 2006 Michael Scherer <misc@mandriva.org> 0.5.2-1mdv2007.0
- First package