aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/rpm/agl-app-afb-test.spec
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-08 15:25:47 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-08 16:48:01 +0100
commit4d9b8f81b4331dea1f8186e1245a1210be3bf767 (patch)
tree9742916c5c703d91b7cf101f91a29d89bbcebf79 /conf.d/packaging/rpm/agl-app-afb-test.spec
parent27a69eaacb5efd2bc81e839d20828899ef70b7a7 (diff)
Packaging: Set project version using command-line
When packaging, the build environment doesn't clone the git repository but instead use an archive and so we lose the git repository's information. This is a workaround to set the project version using the packaging system. Change-Id: I3e8edc197a12f455f4f1cc24bc452feb146bab6c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/packaging/rpm/agl-app-afb-test.spec')
-rw-r--r--conf.d/packaging/rpm/agl-app-afb-test.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.d/packaging/rpm/agl-app-afb-test.spec b/conf.d/packaging/rpm/agl-app-afb-test.spec
index c1df845..408751a 100644
--- a/conf.d/packaging/rpm/agl-app-afb-test.spec
+++ b/conf.d/packaging/rpm/agl-app-afb-test.spec
@@ -47,7 +47,7 @@ afb-test is a test framework made to test other binding.
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
[ ! -d build ] && mkdir build
cd build
-cmake -DCMAKE_BUILD_TYPE=DEBUG ..
+cmake -DCMAKE_BUILD_TYPE=DEBUG -DVERSION=%{version} ..
%__make %{?_smp_mflags}
%install