enable proper out-of-tree build

epel9
Rex Dieter 8 years ago
parent ce82be3b6d
commit fc03ceb8bd

@ -51,22 +51,22 @@ BuildArch: noarch
%prep %prep
%setup -q -n libaccounts-qt-%{tag0}-%{commit0} %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 %build
mkdir %{_target_platform}
pushd %{_target_platform}
%{qmake_qt5} \ %{qmake_qt5} \
QMF_INSTALL_ROOT=%{_prefix} \ QMF_INSTALL_ROOT=%{_prefix} \
CONFIG+=release \ CONFIG+=release \
LIBDIR=%{_libdir} \ LIBDIR=%{_libdir} \
accounts-qt.pro ../accounts-qt.pro
popd
make %{?_smp_mflags} make %{?_smp_mflags} -C %{_target_platform}
%install %install
make install INSTALL_ROOT=%{buildroot} make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
# create/own dirs # create/own dirs
mkdir -p %{buildroot}%{_datadir}/accounts/{providers,services} mkdir -p %{buildroot}%{_datadir}/accounts/{providers,services}
@ -102,6 +102,7 @@ rm -fv %{buildroot}%{_bindir}/accountstest
%changelog %changelog
* Thu Sep 29 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.15-1 * Thu Sep 29 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.15-1
- libaccounts-qt-1.15, drop qt4 support (FTBFS) - 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 * Fri Aug 12 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.13-13
- more robust libdir handling (#1366692) - more robust libdir handling (#1366692)

Loading…
Cancel
Save