Change installation path in spec-file
authorAleksei Vereshchagin <avereschagin@dev.rtsoft.ru>
Fri, 24 Aug 2018 14:22:18 +0000 (17:22 +0300)
committerAleksei Vereshchagin <avereschagin@dev.rtsoft.ru>
Mon, 3 Sep 2018 15:21:42 +0000 (18:21 +0300)
packaging/profctl.spec

index 06340ce5ec821e00ca16d54824a6528634010960..9e8838b6ebad06baa048879b275ee0ee71447cd8 100644 (file)
@@ -17,6 +17,8 @@ BuildRequires: aul-devel
 AutoReqProv: no
 Requires: aul
 
+%define sdk_install_prefix /home/owner/share/tmp/sdk_tools/%{name}
+
 %description
 Utility to control profiling applications
 
@@ -27,8 +29,8 @@ cp %{SOURCE1000} .
 %build
 
 cmake \
-       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-       -DBINDIR=%{_bindir} \
+       -DCMAKE_INSTALL_PREFIX=%{sdk_install_prefix} \
+       -DBINDIR=. \
        -DCMAKE_BUILD_TYPE=%{buildtype}
 make %{?jobs:-j%jobs} VERBOSE=1
 
@@ -38,4 +40,4 @@ rm -rf %{buildroot}
 
 %files
 %manifest profctl.manifest
-%{_bindir}/profctl
+%{sdk_install_prefix}/*