ktorrent-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. Name: ktorrent
  2. Summary: A BitTorrent program
  3. Summary(ja): BitTorrent クライアント
  4. Version: 4.0.5
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Internet
  7. License: GPLv2+
  8. URL: http://ktorrent.org/
  9. Source0: http://ktorrent.org/downloads/%{version}/ktorrent-%{version}%{?pre}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: avahi-devel
  12. BuildRequires: cmake
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: gettext
  15. BuildRequires: gmp-devel
  16. #BuildRequires: GeoIP-devel
  17. # libtaskmanager support, for plasma applet
  18. BuildRequires: kdebase-workspace-devel
  19. BuildRequires: kdelibs4-devel >= 4.2.0
  20. BuildRequires: kdepimlibs-devel
  21. BuildRequires: libktorrent-devel
  22. BuildRequires: plasma-devel
  23. BuildRequires: qca2-devel
  24. BuildRequires: taglib-devel
  25. BuildRequires: soprano-devel
  26. Obsoletes: ktorrent < 3.2.3-2
  27. Provides: plasma-engine-ktorrent = %{version}-%{release}
  28. Requires: %{name}-libs = %{version}-%{release}
  29. # fixme ?
  30. #Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  31. %description
  32. KTorrent is a BitTorrent program for KDE. Its main features are native KDE
  33. integration, download of torrent files, upload speed capping, internet
  34. searching using various search engines, UDP Trackers and UPnP support.
  35. %package libs
  36. Summary: Runtime libraries for %{name}
  37. Summary(ja): %{name} のランタイムライブラリ
  38. Group: System Environment/Libraries
  39. #Requires: %{name} = %{version}-%{release}
  40. #{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
  41. %description libs
  42. %{summary}.
  43. %package -n kde-plasma-ktorrent
  44. Summary: ktorrent plasma applet
  45. Summary(ja): ktorrent の Plasma アプレット
  46. Group: Applications/Internet
  47. Requires: plasma-engine-ktorrent = %{version}-%{release}
  48. %description -n kde-plasma-ktorrent
  49. %{summary}.
  50. %prep
  51. %setup -q -n %{name}-%{version}%{?pre}
  52. %build
  53. mkdir -p %{_target_platform}
  54. pushd %{_target_platform}
  55. %cmake \
  56. -DCMAKE_BUILD_TYPE=release \
  57. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  58. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  59. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  60. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  61. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  62. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  63. -DWITH_SYSTEM_GEOIP:BOOL=OFF \
  64. -DWITH_BUILTIN_COUNTRY_FLAGS:BOOL=OFF \
  65. ..
  66. popd
  67. make %{?_smp_mflags} -C %{_target_platform}
  68. %install
  69. %{__rm} -rf %{buildroot}
  70. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  71. # unpackaged files
  72. rm -f %{buildroot}%{_libdir}/lib{ktcore,ktupnp}.so
  73. %find_lang %{name}
  74. %check
  75. desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/ktorrent.desktop
  76. %post
  77. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  78. %posttrans
  79. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  80. update-desktop-database -q &> /dev/null ||:
  81. %postun
  82. if [ $1 -eq 0 ] ; then
  83. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  84. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  85. update-desktop-database -q &> /dev/null ||:
  86. fi
  87. %post libs -p /sbin/ldconfig
  88. %postun libs -p /sbin/ldconfig
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT
  91. %files -f %{name}.lang
  92. %defattr(-,root,root,-)
  93. %doc ChangeLog COPYING
  94. %{_bindir}/ktmagnetdownloader
  95. %{_bindir}/ktorrent
  96. %{_bindir}/ktupnptest
  97. %{_libdir}/kde4/ktbwschedulerplugin.so
  98. %{_libdir}/kde4/ktinfowidgetplugin.so
  99. %{_libdir}/kde4/ktipfilterplugin.so
  100. %{_libdir}/kde4/ktlogviewerplugin.so
  101. %{_libdir}/kde4/ktmagnetgeneratorplugin.so
  102. %{_libdir}/kde4/ktmediaplayerplugin.so
  103. %{_libdir}/kde4/ktscanfolderplugin.so
  104. %{_libdir}/kde4/ktsearchplugin.so
  105. %{_libdir}/kde4/ktstatsplugin.so
  106. %{_libdir}/kde4/ktupnpplugin.so
  107. %{_libdir}/kde4/ktwebinterfaceplugin.so
  108. %{_libdir}/kde4/ktzeroconfplugin.so
  109. %{_libdir}/kde4/ktdownloadorderplugin.so
  110. %{_libdir}/kde4/ktscriptingplugin.so
  111. %{_libdir}/kde4/ktshutdownplugin.so
  112. %{_libdir}/kde4/ktsyndicationplugin.so
  113. %{_libdir}/kde4/plasma_engine_ktorrent.so
  114. %{_datadir}/icons/hicolor/*/*/*
  115. %{_datadir}/applications/kde4/ktorrent.desktop
  116. %{_datadir}/kde4/apps/ktorrent/
  117. %{_datadir}/kde4/services/kt*plugin.desktop
  118. %{_datadir}/kde4/services/magnet.protocol
  119. %{_datadir}/kde4/services/plasma-dataengine-ktorrent.desktop
  120. %{_datadir}/kde4/servicetypes/ktorrentplugin.desktop
  121. %files libs
  122. %defattr(-,root,root,-)
  123. %{_libdir}/libktcore.so.11*
  124. %{_libdir}/libktupnp.so.4*
  125. %files -n kde-plasma-ktorrent
  126. %defattr(-,root,root,-)
  127. %{_datadir}/kde4/services/plasma-applet-ktorrent.desktop
  128. %{_libdir}/kde4/plasma_applet_ktorrent.so
  129. %changelog
  130. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.0.5-2
  131. - add BuildRequires: soprano-devel
  132. * Wed Jan 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.0.5-1
  133. - Initial build for Vine Linux
  134. * Thu Jul 8 2010 Alexey Kurov <nucleo@fedoraproject.org> - 4.0.2-1
  135. - ktorrent-4.0.2
  136. - drop DSO linking patch
  137. * Tue Jun 15 2010 Alexey Kurov <nucleo@fedoraproject.org> - 4.0.1-1
  138. - ktorrent-4.0.1
  139. - fix DSO linking
  140. * Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.0.0-1
  141. - ktorrent-4.0.0
  142. * Thu May 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.0-0.4.rc1
  143. - ktorrent-4.0rc1
  144. * Mon Apr 05 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.0-0.3.beta2
  145. - ktorrent-4.0beta2
  146. * Thu Jan 28 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.0-0.2.beta1
  147. - -libs: use %%{_kde4_version}
  148. * Mon Dec 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.0-0.1.beta1
  149. - ktorrent-4.0beta1
  150. * Thu Dec 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.3.2-1
  151. - ktorrent-3.3.2
  152. * Mon Nov 23 2009 Roland Wolters <wolters.liste@gmx.net> - 3.3.1-1
  153. - ktorrent-3.3.1
  154. * Mon Nov 09 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.3-1
  155. - ktorrent-3.3
  156. - -libs: add/fix scriptlets, move kdelibs4 dep here
  157. * Sat Oct 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.3-0.1.rc1
  158. - ktorrent-3.3rc1
  159. * Sun Sep 27 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.4-1
  160. - ktorrent-3.2.4
  161. * Mon Aug 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.3-3
  162. - upstream tarball respin
  163. * Sun Aug 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.3-2
  164. - kde-plasma-ktorrent pkg (so main pkg doesn't pull in kdebase-workspace)
  165. - -libs to make multilib friendly
  166. * Wed Aug 12 2009 Roland Wolters <wolters.liste@gmx.net> - 3.2.3-1
  167. - ktorrent-3.2.3
  168. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
  169. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  170. * Tue Jul 07 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.2-3
  171. - don't use internal flags (prefer those provided by kdebase-runtime-flags)
  172. * Wed Jun 03 2009 Roland Wolters <wolters.liste@gmx.net> - 3.2.2-2
  173. - ktorrent-3.2.2
  174. * Tue May 05 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.1-3
  175. - crash adjusting speed from systray (kdebug#188447, rhbz#499147)
  176. * Wed Apr 29 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.1-2
  177. - -DWITH_SYSTEM_GEOIP=1
  178. * Mon Apr 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 3.2.1-1
  179. - ktorrent-3.2.1
  180. - optimize scriptlets
  181. * Tue Feb 26 2009 Roland Wolters <wolters.liste@gmx.net> - 3.2-8
  182. - Some spec file dependency fixes.
  183. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-3
  184. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  185. * Tue Feb 17 2009 Roland Wolters <wolters.liste@gmx.net> - 3.2-1
  186. - Update to new version ktorrent 3.2
  187. * Tue Feb 01 2009 Roland Wolters <wolters.liste@gmx.net> - 3.1.6-4
  188. - ktorrent-3.1.6-4
  189. * Mon Nov 17 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.1.5-1
  190. - ktorrent-3.1.5 (#469870)
  191. * Thu Oct 23 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.1.4-1
  192. - ktorrent-3.1.4 (#468233)
  193. * Tue Oct 14 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.1.3-4
  194. - KDEDInit could not launch .../ktorrent (#451559, kde#157853)
  195. * Mon Oct 13 2008 Roland Wolters <wolters.liste@gmx.net> - 3.1.3-3
  196. - Update to upstream version 3.1.3
  197. * Fri Aug 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.1.2-1
  198. - ktorrent-3.1.2
  199. * Sun Jul 13 2008 Roland Wolters <wolters.liste@gmx.net> - 3.1-5
  200. - Update to version 3.1
  201. * Wed May 14 2008 Roland Wolters <wolters.liste@gmx.net> - 3.0.2-3
  202. - bugfix update to version 3.0.2
  203. - some spec file fixes due to an update error
  204. * Mon Apr 28 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.0.1-4
  205. - %%postun: remove extraneous scriplets
  206. - -devel: own %%{_kde4_includedir}/libbtcore/ (and subdirs)
  207. - -devel: Requires: kdelibs4-devel
  208. - drop: Requires: oxygen-icon-theme (kde4 runtime already does)
  209. - Requires(post,postun): xdg-utils
  210. * Thu Apr 17 2008 Roland Wolters <wolters.liste@gmx.net> - 3.0.1-3
  211. - bugfix update to version 3.0.1
  212. * Tue Feb 19 2008 Roland Wolters <wolters.liste@gmx.net> - 3.0.0-7
  213. - further spec file improvements for the 3.0.0 version
  214. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0.0-2
  215. - Autorebuild for GCC 4.3
  216. * Mon Feb 18 2008 Roland Wolters <wolters.liste@gmx.net> - 3.0.0-1
  217. - first KDE 4 build
  218. * Sun Jan 27 2008 Roland Wolters <wolters.liste@gmx.net> - 2.2.5-5
  219. - updated to bugfix version 2.2.5
  220. - fixed build-system-Qt problem in spec file
  221. * Sat Dec 01 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.4-2
  222. - changed build require from kdelibs-devel to kdelibs3-devel
  223. * Thu Nov 21 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.4-1
  224. - bugfix update to version 2.2.4
  225. * Fri Nov 16 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.3-2
  226. - fixed version number for libktorrent file (2.2.2 for now)
  227. * Thu Nov 15 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.3-1
  228. - features and bugfix update to version 2.2.3
  229. * Wed Aug 19 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.2-1
  230. - bugfix update to version 2.2.2
  231. * Thu Aug 16 2007 Roland Wolters <wolters.liste@gmx.net> - 2.2.1-3
  232. - licence tag corrected
  233. * Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 2.2.1-2
  234. - Rebuild for RH #249435
  235. * Tue Jul 24 2007 Roland Wolters <wolters.liste@gmx.net> 2.2.1-1
  236. - update to bugfix upstream 2.2.1
  237. * Fri Jul 06 2007 Roland Wolters <wolters.liste@gmx.net> 2.2-2
  238. - spec-file fixes re-included
  239. * Tue Jul 03 2007 Roland Wolters <wolters.liste@gmx.net> 2.2-1
  240. - update to upstream 2.2:
  241. - cleaner UI
  242. - - New file selection dialog
  243. - Statistics plugin with pretty graphs
  244. - Possibility to open as many tabs as you want
  245. - Diskspace monitoring and stopping of downloads when the diskspace
  246. drops below a certain value
  247. - Individual torrent speed limits
  248. - Full disk preallocation to avoid fragmentation
  249. * Wed Jun 13 2007 Roland Wolters <wolters.liste@gmx.net> 2.2rc1-1
  250. - update to upstream 2.2rc1
  251. * Tue Apr 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.1.3-1
  252. - ktorrent-2.1.3 (#235014)
  253. - optimize %%configure
  254. * Fri Mar 09 2007 Roland Wolters <wolters.liste@gmx.net> 2.1.2-2
  255. - update to upstream 2.1.2
  256. * Mon Mar 05 2007 Roland Wolters <wolters.liste@gmx.net> 2.1.1-2
  257. - update to upstream 2.1.1
  258. * Wed Feb 07 2007 Roland Wolters <wolters.liste@gmx.net> 2.1-7
  259. - spec-file adjustments
  260. * Wed Feb 07 2007 Roland Wolters <wolters.liste@gmx.net> 2.1-6
  261. - fixed plugins bug
  262. - fixed configure warnings
  263. * Tue Feb 06 2007 Roland Wolters <wolters.liste@gmx.net> 2.1-4
  264. - added avahi-devel dependecy
  265. * Mon Feb 05 2007 Roland Wolters <wolters.liste@gmx.net> 2.1-3
  266. - Update to upstream version 2.1
  267. * Fri Oct 13 2006 Roland Wolters <wolters.liste@gmx.net> 2.0.3-4
  268. - Update to upstream version 2.0.3
  269. - added znow patch for ppc
  270. * Thu Sep 07 2006 Roland Wolters <wolters.liste@gmx.net> 2.0.2-3
  271. - mass rebuild
  272. * Tue Aug 30 2006 Roland Wolters <wolters.liste@gmx.net> 2.0.2-1
  273. - minor bugfix update
  274. * Tue Aug 29 2006 Roland Wolters <wolters.liste@gmx.net> 2.0.1-3
  275. - mass rebuild
  276. * Mon Aug 21 2006 Roland Wolters <wolters.liste@gmx.net> 2.0.1-1
  277. - update to version 2.0.1
  278. * Sun Aug 20 2006 Roland Wolters <wolters.liste@gmx.net> 2.0-6
  279. - increased minor version to avoid broken update path
  280. * Mon Aug 14 2006 Roland Wolters <wolters.liste@gmx.net> 2.0-3
  281. - fixed small errors in spec file
  282. * Wed Aug 09 2006 Roland Wolters <wolters.liste@gmx.net> 2.0-1
  283. - update to version 2.0
  284. * Fri Jun 23 2006 Roland Wolters <wolters.liste@gmx.net> 1.2-6
  285. - fixed doublication error in rpm spec
  286. - spec file polishing
  287. * Fri Jun 23 2006 Roland Wolters <wolters.liste@gmx.net> 1.2-5
  288. - added %%{_datadir}/apps/ktorrent
  289. - removed redundant KTorrent in summary
  290. * Wed Jun 21 2006 Roland Wolters <wolters.liste@gmx.net> 1.2-4
  291. - changed e-mail address to correct packager address
  292. * Wed Apr 5 2006 Roland Wolters <rolandwolters@web.de> 1.2-3
  293. - corrected *.desktop files
  294. - changed icon scriplets
  295. * Wed Apr 5 2006 Roland Wolters <rolandwolters@web.de> 1.2-2
  296. - set vendor string to ""
  297. - added gtk-update-icon-cache scriplets to post and postun
  298. - added desktop-database scriplet because of MimeType in ktorrent.desktop
  299. - moved %%{_libdir}/kde3/* to main package
  300. - moved %%{_libdir}/libktorrent.so to main package
  301. - configure with disable-static and enable-shared
  302. - added %%exclude %%{_libdir}/lib*.la
  303. * Mon Apr 3 2006 Roland Wolters <rolandwolters@web.de> 1.2-1
  304. - initial packaging