Commit b89ff7e5 authored by Devaev Maxim's avatar Devaev Maxim

Fixed incorrect path in const.py at RPM build

parent 6f2d97de
...@@ -29,6 +29,7 @@ Requires: lsb-release ...@@ -29,6 +29,7 @@ Requires: lsb-release
%install %install
%python_install %python_install
%__sed -i -e 's|%buildroot||g' %buildroot%python_sitelibdir/%name/const.py
%files %files
......
...@@ -39,6 +39,8 @@ class SettingsdInstall(install) : ...@@ -39,6 +39,8 @@ class SettingsdInstall(install) :
### Private ### ### Private ###
def postInstallHooks(self) : def postInstallHooks(self) :
# FIXME: This is dirty hack. In normal realization, this code must be moved to build stage
log.info("running post-install hooks") log.info("running post-install hooks")
const_py_file = open(os.path.join(self.install_libbase, "settingsd/const.py"), "r+") const_py_file = open(os.path.join(self.install_libbase, "settingsd/const.py"), "r+")
...@@ -64,7 +66,7 @@ class SettingsdInstall(install) : ...@@ -64,7 +66,7 @@ class SettingsdInstall(install) :
setup( setup(
name = "settingsd", name = "settingsd",
version = "0.1", version = "0.1",
url = "http://etersoft.ru/", # FIXME url = "http://etersoft.ru/", # FIXME: Add project url
license = "GPL", license = "GPL",
author = "Devaev Maxim", author = "Devaev Maxim",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment