fix kde4 build

epel9
Rex Dieter 8 years ago
parent 6b036bdf25
commit 562ed059be

@ -116,6 +116,14 @@ Requires: fuse-sshfs
%prep
%setup -q -n kdeconnect-kde-%{version}
%if 0%{?_with_kde4}
tar xfJ %{SOURCE1}
pushd kdeconnect-kde-0.8
%patch0 -p1
popd
%endif
%build
mkdir %{_target_platform}
@ -126,18 +134,15 @@ popd
make %{?_smp_mflags} -C %{_target_platform}
%if 0%{?_with_kde4}
mkdir -p %{_builddir}/kde4
cd %{_builddir}/kde4
tar xfJ %{SOURCE1}
cd kdeconnect-kde-0.8
%patch0 -p1
mkdir -p %{_target_platform}
pushd kdeconnect-kde-0.8
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
make %{?_smp_mflags} -C interfaces/
make %{?_smp_mflags} -C kio/
popd
popd
%endif
@ -152,8 +157,8 @@ install -m644 -p -D %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/services/kde
desktop-file-edit --remove-key=OnlyShowIn %{buildroot}%{_sysconfdir}/xdg/autostart/kdeconnectd.desktop
%if 0%{?_with_kde4}
make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-0.8/%{_target_platform}/interfaces
make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-0.8/%{_target_platform}/kio
make install/fast DESTDIR=%{buildroot} -C kdeconnect-kde-0.8/%{_target_platform}/interfaces
make install/fast DESTDIR=%{buildroot} -C kdeconnect-kde-0.8/%{_target_platform}/kio
# Remove undesired kde4 devel files
rm -rfv %{buildroot}%{_includedir}/kde4/

Loading…
Cancel
Save