transmission-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. Name: transmission
  2. Version: 2.84
  3. Release: 1%{?_dist_release}
  4. Summary: A lightweight BitTorrent client
  5. Summary(ja): 軽量な BitTorrent クライアント
  6. Group: Applications/Internet
  7. License: MIT and GPLv2+
  8. URL: http://www.transmissionbt.com/
  9. Source0: http://download.m0k.org/transmission/files/transmission-%{version}.tar.xz
  10. Source1: transmission-daemon-init
  11. #Patch0: desktop_fix.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: openssl-devel
  14. BuildRequires: curl-devel >= 7.18.0
  15. BuildRequires: dbus-glib-devel
  16. BuildRequires: glib2-devel >= 2.28.0
  17. BuildRequires: libnotify-devel
  18. BuildRequires: gtk3-devel >= 3.2.0
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: gettext >= 0.14.1
  21. BuildRequires: intltool >= 0.40
  22. BuildRequires: libcanberra-devel
  23. BuildRequires: libevent-devel
  24. Requires: transmission-cli
  25. Requires: transmission-gtk
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: kudoh
  29. %description
  30. Transmission is a free, lightweight BitTorrent client. It features a
  31. simple, intuitive interface on top on an efficient, cross-platform
  32. back-end.
  33. %description -l ja
  34. Transmission はフリーで軽量な BitTorrent クライアントです。
  35. シンプル且つ直感的なインターフェイス、クロスプラットフォームなバックエンドが特色です。
  36. %package common
  37. Summary: Common files for Transmission BitTorrent client
  38. Summary(ja): Transmission BitTorrent クライアントの共通ファイル
  39. Group: Applications/Internet
  40. Obsoletes: transmission =< 1.83
  41. %description common
  42. Transmission is a free, lightweight BitTorrent client. This package
  43. contains the common files used by the different front-ends.
  44. %description -l ja common
  45. Transmission はフリーで軽量な BitTorrent クライアントです。
  46. このパッケージは異なるフロントエンドにより使用される
  47. 共通ファイルを含みます。
  48. %package cli
  49. Summary: Transmission command line implementation
  50. Summary(ja): Transmission のコマンドライン実装
  51. Group: Applications/Internet
  52. Requires: transmission-common
  53. Provides: transmission = %{version}-%{release}
  54. %description cli
  55. Command line version of Transmission BitTorrent client.
  56. %description cli -l ja
  57. Transmission BitTorrent クライアントのコマンドライン版です。
  58. %package daemon
  59. Summary: Transmission daemon
  60. Summary(ja): Transmission デーモン
  61. Group: Applications/Internet
  62. Requires: transmission-common
  63. Requires(pre): shadow-utils
  64. Requires(post): chkconfig
  65. Requires(preun): chkconfig
  66. Requires(preun): initscripts
  67. Requires(postun): initscripts
  68. Provides: transmission = %{version}-%{release}
  69. %description daemon
  70. Transmission BitTorrent client daemon.
  71. %description daemon -l ja
  72. Transmission BitTorrent クライアントデーモンです。
  73. %package gtk
  74. Summary: GTK Interface for Transmission BitTorrent client
  75. Summary(ja): Transmission BitTorrent client の GTK インターフェイス
  76. Group: Applications/Internet
  77. BuildRequires: gtk3-devel >= 3.2.0
  78. Requires: %{name}-common = %{version}
  79. Provides: %{name} = %{version}-%{release}
  80. Provides: %{name}-gui = %{version}-%{release}
  81. Obsoletes: transmission =< 1.83
  82. %description gtk
  83. Transmission is a free, lightweight BitTorrent client. It features a
  84. simple, intuitive interface on top of an efficient back-end.
  85. This package provides the GTK Interface.
  86. %description -l ja gtk
  87. Transmission はフリーで軽量な BitTorrent クライアントです。
  88. シンプル且つ直感的なインターフェイス、クロスプラットフォームなバックエンドが特色です。
  89. このパッケージは GTK インターフェイスを提供します。
  90. %package qt
  91. Summary: Qt4 Interface for Transmission BitTorrent client
  92. Summary(ja): Transmission BitTorrent client の Qt4 インターフェイス
  93. Group: Applications/Internet
  94. Provides: %{name}-gui = %{version}-%{release}
  95. Requires: %{name}-common = %{version}
  96. BuildRequires: qt4-devel qt4-designer
  97. %description qt
  98. Transmission is a simple BitTorrent client. It features a very simple,
  99. intuitive interface on top on an efficient, cross-platform back-end.
  100. This package contains QTransmission, a QT4 based GUI for Transmission
  101. loosely based on the GTK+ client.
  102. %description -l ja qt
  103. Transmission はフリーで軽量な BitTorrent クライアントです。
  104. シンプル且つ直感的なインターフェイス、クロスプラットフォームなバックエンドが特色です。
  105. このパッケージは QTransmission - GTK+ クライアントに概ね基づいた
  106. Transmission の QT4 ベース GUI - を含みます。
  107. %pre daemon
  108. getent group transmission >/dev/null || groupadd -r transmission
  109. getent passwd transmission >/dev/null || \
  110. useradd -r -g transmission -d /var/lib/transmission -s /sbin/nologin \
  111. -c "transmission daemon account" transmission
  112. exit 0
  113. %prep
  114. %setup -q
  115. #sed -i "s/x-bittorrent;x-scheme-handler\/magnet;/x-bittorrent;/g" \
  116. # gtk/transmission-gtk.desktop.in
  117. #sed -i "s/OnlyShowIn=Unity/OnlyShowIn=Unity;/g" \
  118. # gtk/transmission-gtk.desktop.in
  119. #%patch0 -p1
  120. %build
  121. %configure --disable-static --enable-daemon \
  122. --enable-utp --enable-nls --enable-cli
  123. make %{?_smp_mflags} CC=%{__cc}
  124. #make CFLAGS="$RPM_OPT_FLAGS"
  125. #for QT gui build
  126. pushd qt
  127. #%{_libdir}/qt4/bin/qmake qtr.pro
  128. %{_libdir}/qt4/bin/qmake QMAKE_LFLAGS="$RPM_LD_FLAGS" QMAKE_CXXFLAGS="$CXXFLAGS -std=c++11" qtr.pro
  129. make %{?_smp_mflags}
  130. popd
  131. %install
  132. rm -rf $RPM_BUILD_ROOT
  133. mkdir -p %{buildroot}%{_initddir}
  134. install -m755 %{SOURCE1} %{buildroot}%{_initddir}/transmission-daemon
  135. mkdir -p %{buildroot}/var/lib/transmission
  136. make install DESTDIR=$RPM_BUILD_ROOT
  137. make install INSTALL_ROOT=%{buildroot}%{_prefix} -C qt
  138. %find_lang %{name}-gtk
  139. desktop-file-install --vendor "" \
  140. --delete-original \
  141. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  142. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop
  143. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  144. cat > $RPM_BUILD_ROOT%{_datadir}/applications/transmission-qt.desktop << EOF
  145. [Desktop Entry]
  146. Encoding=UTF-8
  147. Name=Qtransmission Bittorrent Client
  148. Name[ja]=Qtransmission Bittorrent クライアント
  149. GenericName=BitTorrent Client
  150. GenericName[ja]=BitTorrent クライアント
  151. Comment=Download and share files over BitTorrent
  152. Comment[ja]=BitTorrent でファイルをダウンロード及び共有します
  153. Exec=transmission-qt %F
  154. Icon=transmission
  155. Terminal=false
  156. Type=Application
  157. MimeType=application/x-bittorrent;
  158. Categories=Network;FileTransfer;P2P;Qt;
  159. NotShowIn=GNOME;MATE;XFCE;LXDE;
  160. EOF
  161. %clean
  162. rm -rf $RPM_BUILD_ROOT
  163. %post daemon
  164. /sbin/chkconfig --add transmission-daemon
  165. %post gtk
  166. touch --no-create %{_datadir}/icons/hicolor || :
  167. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  168. update-desktop-database > /dev/null 2>&1 || :
  169. %postun gtk
  170. touch --no-create %{_datadir}/icons/hicolor || :
  171. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  172. update-desktop-database > /dev/null 2>&1 || :
  173. %preun daemon
  174. if [ $1 = 0 ] ; then
  175. /sbin/service transmission-daemon stop >/dev/null 2>&1
  176. /sbin/chkconfig --del transmission-daemon
  177. fi
  178. %postun daemon
  179. if [ "$1" -ge "1" ] ; then
  180. /sbin/service transmission-daemon condrestart >/dev/null 2>&1 || :
  181. fi
  182. %files
  183. %files common
  184. %defattr(-, root, root, -)
  185. %doc AUTHORS COPYING NEWS README
  186. %{_bindir}/transmission-create
  187. %{_bindir}/transmission-edit
  188. %{_bindir}/transmission-remote
  189. %{_bindir}/transmission-show
  190. %{_datadir}/transmission/web/
  191. %{_datadir}/pixmaps/*
  192. %{_datadir}/icons/hicolor/*/apps/transmission.*
  193. %doc %{_mandir}/man1/transmission-create*
  194. %doc %{_mandir}/man1/transmission-edit*
  195. %doc %{_mandir}/man1/transmission-remote*
  196. %doc %{_mandir}/man1/transmission-show*
  197. %files cli
  198. %defattr(-, root, root, -)
  199. %{_bindir}/transmission-cli
  200. %doc %{_mandir}/man1/transmission-cli*
  201. %files daemon
  202. %defattr(-, root, root, -)
  203. %{_bindir}/transmission-daemon
  204. %{_initddir}/transmission-daemon
  205. %attr(-,transmission, transmission)/var/lib/transmission/
  206. %doc %{_mandir}/man1/transmission-daemon*
  207. %files gtk -f %{name}-gtk.lang
  208. %defattr(-,root,root)
  209. %{_bindir}/%{name}-gtk
  210. %{_datadir}/applications/%{name}-gtk.desktop
  211. %{_mandir}/man1/transmission-gtk.1*
  212. %files qt
  213. %defattr(-,root,root)
  214. %{_bindir}/transmission-qt
  215. %{_datadir}/applications/transmission-qt.desktop
  216. %{_mandir}/man1/transmission-qt.1*
  217. %changelog
  218. * Sun Jul 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.84-1
  219. - new upstream release
  220. - fixed qmake paramater
  221. - fixed License a little (GPLv2 to GPLv2+)
  222. * Sat Jul 20 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.81-1
  223. - new upstream release
  224. * Sat Jun 29 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.80-1
  225. - new upstream release
  226. * Sun Feb 24 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.77-1
  227. - new upstream release
  228. * Fri Jan 11 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.76-1
  229. - new upstream release
  230. * Fri Dec 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.75-1
  231. - new upstream release
  232. * Thu Oct 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.73-1
  233. - new upstream release
  234. * Sat Oct 20 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.72-1
  235. - new upstream release
  236. * Thu Sep 27 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.71-1
  237. - new upstream release
  238. - deleted Patch0
  239. - changed BuildRequires: gtk3-devel >= 3.4.0
  240. * Wed Jul 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.61-1
  241. - new upstream release
  242. - deleted conditional branch for GTK+2
  243. - because not supported GTK+2, GTK+3 only
  244. * Sat Jul 07 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.60-1
  245. - new upstream release
  246. * Sat May 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.52-1
  247. - new upstream release
  248. - added patch0 to fix .desktop validate
  249. * Thu Apr 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.51-1
  250. - new upstream release
  251. - fixed conditional branch
  252. * Thu Feb 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.50-1
  253. - new upstream release
  254. - deleted unrecognized option: --enable-gtk
  255. - fixed transmission-qt desktop entry a little
  256. * Wed Nov 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.42-1
  257. - new upstream release
  258. - aded BuildRequires: gtk3-devel >= 3.2.0
  259. - made conditional branch for Vine 6 (support for GTK+2)
  260. * Mon Oct 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.41-1
  261. - new upstream release
  262. - changed BuildRequires
  263. - gtk2-devel >= 2.6.0 to gtk2-devel >= 2.22.0
  264. - glib2-devel >= 2.28.0
  265. - deleted unrecognized option: --enable-libcanberra
  266. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.33-1
  267. - new upstream release
  268. - remove BuildRequires: GConf2-devel
  269. * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32-2
  270. - rebuild with libnotify-0.7
  271. * Sun Jul 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.32-1
  272. - new upstream release
  273. * Thu May 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.31-1
  274. - new upstream release
  275. - suppressed warning in installing desktop file
  276. - added configure option
  277. --enable-utp, --enable-nls, --enable-cli, --enable-daemon
  278. * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22-1
  279. - update to 2.22
  280. * Sat Feb 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.20-1
  281. - Update to upstream 2.20
  282. * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-2
  283. - rebuilt with openssl-1.0.0c
  284. * Sat Dec 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-1
  285. - Update to upstream 2.13
  286. - deleted disable option
  287. - added configure option --enable-gtk
  288. * Mon Nov 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.12-1
  289. - Update to upstream 2.12
  290. * Mon Oct 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.11-1
  291. - Update to upstream 2.11
  292. * Thu Oct 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-2
  293. - fixed and changed transmission-qt.desktop
  294. - did not show transmission-qt.desktop in LXDE
  295. * Mon Oct 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-1
  296. - Update to upstream 2.10
  297. * Mon Aug 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.04-1
  298. - Update to upstream 2.04
  299. * Fri Jul 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.03-1
  300. - Update to upstream 2.03
  301. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.01-1
  302. - Update to upstream 2.01
  303. * Fri Jun 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.00-1
  304. - Update to upstream 2.00
  305. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.93-1
  306. - Update to upstream 1.93
  307. * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.92-1
  308. - Update to upstream 1.92
  309. - applied new naming policy to spec
  310. * Mon Feb 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.91-1
  311. - Update to upstream 1.91
  312. - changed summary, summary(ja) a little
  313. - added %configure option --enable-libcanberra --enable-daemon
  314. - added Source1 from Fedora
  315. - splitted common, cli, daemon, gtk, qt packages
  316. * Sat Jan 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.83-1
  317. - Update to upstream 1.83
  318. - added BuildRequires: libcanberra-devel, libevent-devel
  319. * Sun Jan 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.82-1
  320. - Update to upstream 1.82
  321. * Fri Jan 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.80-1
  322. - Update to upstream 1.80
  323. - changed BuildRequires: intltool >= 0.40
  324. * Sun Jan 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.77-1
  325. - Update to upstream 1.77
  326. - dropt Patch1
  327. - aded BuildRequires: GConf2-devel
  328. * Mon Oct 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.76-1
  329. - Update to upstream 1.76
  330. * Tue Sep 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-2
  331. - a few fixed transmission_ja_po.patch
  332. - added --disable-static=no to configure option
  333. - run gtk-update-icon-cache in %post, %postun
  334. - cleaned up spec
  335. * Tue Sep 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-1
  336. - Update to upstream 1.75
  337. * Sun Jul 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.73-1
  338. - Update to upstream 1.73
  339. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.72-1
  340. - Update to upstream 1.72
  341. - cleaned up spec
  342. * Tue Jun 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.71-1
  343. - Update to upstream 1.71
  344. * Sat Jun 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.70-1
  345. - Update to upstream 1.70
  346. * Tue May 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.61-1
  347. - Update to upstream 1.61
  348. - added BuildRequires: glib2-devel
  349. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.60-1
  350. - Update to upstream 1.60
  351. - spec in UTF-8
  352. * Mon Apr 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.52-1
  353. - Update to upstream 1.52
  354. - fixed Desktop-file name
  355. - fixed BuildRoot
  356. * Sat Feb 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.51-1
  357. - Update to upstream 1.51
  358. - changed BuildRequires: curl-devel >= 7.18.0
  359. - dropped Patch1
  360. * Sun Feb 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.50-1
  361. - Update to upstream 1.50
  362. * Thu Jan 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-2
  363. - added Summary(ja)
  364. - fixed Lisense
  365. - added patch1 (transmission-1.42-libevent.patch, from Fedora)
  366. - fixed %build
  367. - changed %install
  368. - fixed %changelog
  369. * Sat Dec 27 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-1
  370. - initial build for VineSeed
  371. - Update to upstream 1.42
  372. - dropped Patch0 (transmission-0.71-manpath.patch)
  373. - added patch0 (transmission_ja_po.patch, to fix ja.po)
  374. - modified %files, %install
  375. - modified BuildRoot
  376. - added BuildRequires to curl-devel, dbus-glib-devel, libnotify-devel
  377. * Mon Feb 4 2008 Denis Leroy <denis@poolshark.org> - 1.04-1
  378. - Update to upstream 1.04
  379. - Modified Build-Require
  380. * Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 0.80-1
  381. - Update to upstream 0.80
  382. * Wed May 2 2007 Denis Leroy <denis@poolshark.org> - 0.72-1
  383. - Update to 0.72
  384. - Added libevent BR
  385. * Wed Apr 25 2007 Denis Leroy <denis@poolshark.org> - 0.71-1
  386. - Update to 0.71
  387. - Removed custom desktop file
  388. - Added patch to fix manpath
  389. * Thu Sep 28 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-3
  390. - Added project icon
  391. - Honor cc variable
  392. * Mon Sep 25 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-2
  393. - Removed ldconfig Requires
  394. * Wed Sep 13 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-1
  395. - First version