#!/usr/bin/python
-import bwlimit
+from plnode import bwlimit
if __name__ == '__main__':
bwlimit.main()
%define name plnode-utils
%define version 0.2
-%define taglevel 1
+%define taglevel 2
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%define name plnode-utils
%define version 0.2
-%define taglevel 1
+%define taglevel 2
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
# xxx fixme
# this is where we chose which flavour of bwlimit gets shipped
cp plnode/bwlimit_vs.py plnode/bwlimit.py
+# for backwards compatibilty until legacy packages import from plnode
+cp plnode/bwlimit_vs.py bwlimit.py
/usr/bin/python setup.py build
%install
# for now we only have bwlimit.py and its flavour is selected in the main specfile
# that copies the right bwlimit_xxx.py into bwlimit.py
setup(name='plnode',
- py_modules = [ 'plnode.bwlimit' ] ,
+ py_modules = [ 'plnode.bwlimit', 'bwlimit' ] ,
scripts = scripts)