Maintainer: Ed Bartosh <eduard.bartosh@intel.com>
Section: python
Priority: optional
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7), python-all, python-distribute
Standards-Version: 3.8.4
XS-Python-Version: current
Depends: ${misc:Depends}, ${python:Depends}
XB-Python-Version: ${python:Versions}
Description: Bmap tools
- Bmap-flasher - Flash an image file to a block device using the block map (bmap)
+ Bmap-flasher - Flash an image file to a block device using the block map (bmap)
Version: 0.1.0
Maintainer: Ed Bartosh <eduard.bartosh@intel.com>
Standards-Version: 3.8.4
-Build-Depends: debhelper (>= 7.0)
-Files:
- 1c730ad6a7474a9aef288e1beea38ab9 5865 bmap-tools_0.1.0.tar.gz
+Build-Depends: debhelper (>= 7), python-all, python-distribute
+Files:
+ 002b1492e8ebee0d01d58620a91c87cc 8145 bmap-tools_0.1.0.tar.gz
URL: http://otctools.jf.intel.com
Source0: %{name}_%{version}.tar.gz
-Requires: python-distribute
+BuildRequires: python-distribute
%description
Bmap-flasher - Flash an image file to a block device using the block map (bmap).
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/%{_bindir}
-install -m 755 bmap-flasher $RPM_BUILD_ROOT/%{_bindir}
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
+%dir /usr/lib/python*/site-packages/bmaptools
+/usr/lib/python*/site-packages/bmap_tools*
+/usr/lib/python*/site-packages/bmaptools/*
%{_bindir}/*
%changelog
--- /dev/null
+#!/usr/bin/env python
+
+from setuptools import setup, find_packages
+
+setup(
+ name = "bmap-tools",
+ description = "Bmap tools",
+ author = "Artem Bityutskiy",
+ author_email = "artem.bityutskiy@linux.intel.com",
+ version = "0.1.0",
+ scripts = ['bmap-flasher'],
+ packages = find_packages(),
+ license='GPLv2',
+ long_description="Tools to generate block map (AKA bmap) and flash " \
+ "images using bmap",
+)