Added OSLO_PACKAGE_VERSION env variable
Python pbr module requires .git directory to determine package version. Perestroika creates sources tarball using git archive command which removes .git folder Change-Id: I74f2b6c62f9c388507d3e8ea6fe853906ee20859
This commit is contained in:
parent
8a1705988e
commit
663a12d1c0
@ -23,10 +23,10 @@ published in external git repository
|
|||||||
%setup -q -c -n %{name}-%{version}
|
%setup -q -c -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
export OSLO_PACKAGE_VERSION=%{version} %py2_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
export OSLO_PACKAGE_VERSION=%{version} %py2_install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user