kio-ftps-vl.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %if %{?_dist_release} != "vl5"
  2. %define kde KDE
  3. %else
  4. %define kde KDE4
  5. %endif
  6. Name: kio-ftps
  7. Summary: An ftps KIO slave for %{kde}
  8. Version: 0.2
  9. Release: 2%{?_dist_release}
  10. Group: System Environment/Libraries
  11. License: GPLv2+
  12. URL: http://kasablanca.berlios.de/kio-ftps/
  13. Source0: http://download.berlios.de/kasablanca/%{name}-%{version}.tar.gz
  14. Patch0: qtnetwork.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: kdelibs4-devel
  17. #BuildRequires: kde-filesystem >= 4
  18. BuildRequires: cmake
  19. #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
  20. %description
  21. An ftps KIO slave for %{kde}, based on rfc4217. It should work yet with
  22. most server implementations.
  23. %prep
  24. %setup -q -n %{name}
  25. %patch0 -p0 -b .qtnetwork
  26. %build
  27. mkdir -p %{_target_platform}
  28. pushd %{_target_platform}
  29. %{cmake} \
  30. -DCMAKE_BUILD_TYPE=release \
  31. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  32. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  33. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  34. ..
  35. popd
  36. make %{?_smp_mflags} -C %{_target_platform}
  37. %install
  38. rm -rf %{buildroot}
  39. mkdir %{buildroot}
  40. make install DESTDIR=%{buildroot} -C %{_target_platform}
  41. %clean
  42. rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc README LICENSE.txt rfc4217.txt
  46. %{_libdir}/kde4/kio_ftps.so
  47. %{_datadir}/kde4/services/ftps.protocol
  48. %changelog
  49. * Sun Jan 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2-2
  50. - initial build for Vine Linux
  51. * Tue Apr 28 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.2-1
  52. - initial package