diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-29 20:44:05 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-29 20:44:05 +0400 |
commit | 83c86d02878f6fbbc234110c2fce321036b19634 (patch) | |
tree | e58f3e9630b156ca723b7fb35f62b00a9051ddca | |
parent | 4c4773d96b1b2a157009590908fce032696281c5 (diff) | |
download | rspamd-83c86d02878f6fbbc234110c2fce321036b19634.tar.gz rspamd-83c86d02878f6fbbc234110c2fce321036b19634.zip |
Remove legacy rpm spec.
-rw-r--r-- | CMakeLists.txt | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84dbe52ef..3ccd9d90a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -749,7 +749,6 @@ INCLUDE(CPack) IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") INCLUDE("linux/cmake/DpkgDeb.cmake") - INCLUDE("linux/cmake/UseRPMTools.cmake") ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") @@ -774,57 +773,6 @@ ENDIF(GMIME24) SET(PACKAGE_VERSION "${RSPAMD_VERSION_MAJOR}.${RSPAMD_VERSION_MINOR}.${RSPAMD_VERSION_PATCH}") -IF(RPMTools_FOUND) - FILE(WRITE linux/rspamd.spec -"# -*- rpm-spec -*- -Summary: ${RPMNAME} -Name: ${RPMNAME} -Version: ${PACKAGE_VERSION} -Release: ${PACKAGE_RELEASE} -License: BSD -Group: Mail -Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -#BuildRequires: cmake, gmime-devel, glib2-devel, perl, libevent-devel, lua-devel - -%define prefix /usr -%define rpmprefix $RPM_BUILD_ROOT%{prefix} -%define srcdirname %{name}-%{version}-Source - -%description -${RPMNAME} : Fast and modular antispam system written in C - -%prep -%setup -q -n %{srcdirname} - -%build -cd .. -cd %{srcdirname} -rm -f CMakeCache.txt -cmake -DCMAKE_INSTALL_PREFIX=%{prefix} -DDESTDIR=%{rpmprefix} . -make clean -make DESTDIR=%{rpmprefix} CMAKE_INSTALL_PREFIX=%{prefix} - - -%install -make DESTDIR=%{rpmprefix} CMAKE_INSTALL_PREFIX=%{prefix} install -cd .. - -%clean -rm -rf %{srcdirname} - -%files -%defattr(-,root,root,-) -%dir %{prefix} -%{prefix}/* - -%changelog -* Wed Sep 15 2010 vstakhov <vsevolod@highsecure.ru> - Release 0.3.2 -") - RPMTools_ADD_RPM_TARGETS("rspamd" "linux/rspamd.spec") -ENDIF(RPMTools_FOUND) - IF(DPKG_FOUND STREQUAL "YES") ADD_DEBIAN_PACKAGE("rspamd") ENDIF(DPKG_FOUND STREQUAL "YES") |