libktorrent-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Name: libktorrent
  2. Summary: Library providing torrent downloading code
  3. Version: 1.0.2
  4. Release: 3%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: GPLv2+
  7. URL: http://ktorrent.org/
  8. Source0: http://ktorrent.org/downloads/4.0.2/libktorrent-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: libboost-devel
  11. BuildRequires: gettext
  12. BuildRequires: gmp-devel
  13. BuildRequires: kdelibs4-devel >= 4.5.0
  14. BuildRequires: qca2-devel
  15. %description
  16. %{summary}.
  17. %package devel
  18. Summary: Developer files for %{name}
  19. Group: Development/Libraries
  20. Obsoletes: ktorrent-devel <= 4.0
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: kdelibs4-devel >= 4.5.0
  23. %description devel
  24. %{summary}.
  25. %prep
  26. %setup -q -n %{name}-%{version}
  27. %build
  28. mkdir -p %{_target_platform}
  29. pushd %{_target_platform}
  30. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  31. %cmake \
  32. -DCMAKE_BUILD_TYPE=release \
  33. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  34. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  35. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  36. ..
  37. popd
  38. make %{?_smp_mflags} -C %{_target_platform}
  39. %install
  40. rm -rf %{buildroot}
  41. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  42. %find_lang %{name} --with-kde
  43. %clean
  44. rm -rf %{buildroot}
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %files -f %{name}.lang
  48. %defattr(-,root,root,-)
  49. %doc ChangeLog COPYING
  50. %{_libdir}/libktorrent.so.2*
  51. %files devel
  52. %defattr(-,root,root,-)
  53. %{_datadir}/kde4/apps/cmake/modules/FindKTorrent.cmake
  54. %{_includedir}/kde4/libktorrent/
  55. %{_libdir}/libktorrent.so
  56. %changelog
  57. * Tue Aug 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.2-3
  58. - initial build for Vine Linux
  59. * Fri Jul 9 2010 Alexey Kurov <nucleo@fedoraproject.org> - 1.0.2-2
  60. - fixed license tag
  61. - added license text
  62. * Thu Jul 8 2010 Alexey Kurov <nucleo@fedoraproject.org> - 1.0.2-1
  63. - libktorrent-1.0.2
  64. * Tue Jun 15 2010 Alexey Kurov <nucleo@fedoraproject.org> - 1.0.1-1
  65. - libktorrent-1.0.1
  66. * Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-1
  67. - libktorrent-1.0.0
  68. * Wed May 05 2010 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.2.rc1
  69. - -devel: Obsoletes: ktorrent-devel
  70. * Mon May 03 2010 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.1.rc1
  71. - libktorrent-1.0rc1