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:
Dmitry Ukov 2016-11-25 22:08:24 +03:00
parent 8a1705988e
commit 663a12d1c0
1 changed files with 2 additions and 2 deletions

View File

@ -23,10 +23,10 @@ published in external git repository
%setup -q -c -n %{name}-%{version}
%build
%py2_build
export OSLO_PACKAGE_VERSION=%{version} %py2_build
%install
%py2_install
export OSLO_PACKAGE_VERSION=%{version} %py2_install
%files
%license LICENSE