diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-15 19:43:42 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-15 19:43:42 +0400 |
commit | 48806d41b45a9d20c97e7e8946bea2ac0903800b (patch) | |
tree | c5249f64ba763474d42281e64f8b84ddef034359 /CMakeLists.txt | |
parent | c0d58cf84e5a4909013988fe52a20bd00f2af008 (diff) | |
download | rspamd-48806d41b45a9d20c97e7e8946bea2ac0903800b.tar.gz rspamd-48806d41b45a9d20c97e7e8946bea2ac0903800b.zip |
* Test rpm package
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fb7933cc..e7fe317fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -808,9 +808,9 @@ License: BSD Group: Mail Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildRequires: cmake, gmime, perl +#BuildRequires: cmake, gmime, perl, libevent -%define prefix /opt/${RPMNAME}-%{version} +%define prefix /usr %define rpmprefix $RPM_BUILD_ROOT%{prefix} %define srcdirname %{name}-%{version}-Source @@ -822,19 +822,18 @@ ${RPMNAME} : Fast and modular antispam system written in C %build cd .. -rm -rf build_tree -mkdir build_tree -cd build_tree -cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname} +cd %{srcdirname} +rm -f CMakeCache.txt +cmake -DCMAKE_INSTALL_PREFIX=%{prefix} -DDESTDIR=%{rpmprefix} . +make clean make %install -cd ../build_tree make install +cd .. %clean rm -rf %{srcdirname} -rm -rf build_tree %files %defattr(-,root,root,-) |