enable proper out-of-tree build

epel9
Rex Dieter 8 years ago
parent ce82be3b6d
commit fc03ceb8bd

@ -51,22 +51,22 @@ BuildArch: noarch
%prep
%setup -q -n libaccounts-qt-%{tag0}-%{commit0}
# See https://community.kde.org/KTp/Setting_up_KAccounts#libaccounts-qt
# "Note that at this very day libaccounts-qt qmake does **NOT** support compiling the library outside the source directory"
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{qmake_qt5} \
QMF_INSTALL_ROOT=%{_prefix} \
CONFIG+=release \
LIBDIR=%{_libdir} \
accounts-qt.pro
../accounts-qt.pro
popd
make %{?_smp_mflags}
make %{?_smp_mflags} -C %{_target_platform}
%install
make install INSTALL_ROOT=%{buildroot}
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
# create/own dirs
mkdir -p %{buildroot}%{_datadir}/accounts/{providers,services}
@ -102,6 +102,7 @@ rm -fv %{buildroot}%{_bindir}/accountstest
%changelog
* Thu Sep 29 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.15-1
- libaccounts-qt-1.15, drop qt4 support (FTBFS)
- enable proper out-of-tree build
* Fri Aug 12 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.13-13
- more robust libdir handling (#1366692)

Loading…
Cancel
Save