Update to new out-of-source build mechanism
This commit is contained in:
parent
d4cb712128
commit
71184c15cb
1 changed files with 5 additions and 8 deletions
13
akonadi.spec
13
akonadi.spec
|
|
@ -1,3 +1,5 @@
|
|||
# Force out of source build
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
# base pkg default to SQLITE now, install -mysql if you want that instead
|
||||
%global database_backend SQLITE
|
||||
|
|
@ -76,17 +78,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake} .. \
|
||||
-DCMAKE_BUILD_TYPE:STRING="Release"
|
||||
popd
|
||||
|
||||
make %{?_smp_mflags} -C %{_target_platform}
|
||||
%cmake -DCMAKE_BUILD_TYPE:STRING="Release"
|
||||
%cmake_build
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
||||
%cmake_install
|
||||
|
||||
## unpackaged files
|
||||
rm -fv %{buildroot}%{_datadir}/mime/packages/akonadi-mime.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue