added /usr/intranator prefix to spec file
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 5 Nov 2014 15:38:55 +0000 (16:38 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 12 Nov 2014 10:11:05 +0000 (11:11 +0100)
pingcheck.spec

index b1530f8..c7650e7 100644 (file)
@@ -6,9 +6,11 @@ License:   GPLv2 + linking exception. Some parts under boost license.
 Group:     Intranator
 Vendor:    Intra2net AG
 Source:    %{name}-%{version}.tar.gz
+Prefix:    /usr/intranator
 BuildRoot: %{_tmppath}/%{name}-%{version}
 BuildRequires: cmake
 
+%define _prefix %{prefix}
 
 %description
 Pingcheck
@@ -26,7 +28,7 @@ cd build
 
 export CFLAGS="$RPM_OPT_FLAGS"
 export CXXFLAGS="$RPM_OPT_FLAGS"
-cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
+cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" ../
 
 make %{_smp_mflags}