transmission-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. Name: transmission
  2. Version: 2.76
  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. make %{?_smp_mflags}
  129. popd
  130. %install
  131. rm -rf $RPM_BUILD_ROOT
  132. mkdir -p %{buildroot}%{_initddir}
  133. install -m755 %{SOURCE1} %{buildroot}%{_initddir}/transmission-daemon
  134. mkdir -p %{buildroot}/var/lib/transmission
  135. make install DESTDIR=$RPM_BUILD_ROOT
  136. make install INSTALL_ROOT=%{buildroot}%{_prefix} -C qt
  137. %find_lang %{name}-gtk
  138. desktop-file-install --vendor "" \
  139. --delete-original \
  140. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  141. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop
  142. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  143. cat > $RPM_BUILD_ROOT%{_datadir}/applications/transmission-qt.desktop << EOF
  144. [Desktop Entry]
  145. Encoding=UTF-8
  146. Name=Qtransmission Bittorrent Client
  147. Name[ja]=Qtransmission Bittorrent クライアント
  148. GenericName=BitTorrent Client
  149. GenericName[ja]=BitTorrent クライアント
  150. Comment=Download and share files over BitTorrent
  151. Comment[ja]=BitTorrent でファイルをダウンロード及び共有します
  152. Exec=transmission-qt %F
  153. Icon=transmission
  154. Terminal=false
  155. Type=Application
  156. MimeType=application/x-bittorrent;
  157. Categories=Network;FileTransfer;P2P;Qt;
  158. NotShowIn=GNOME;MATE;XFCE;LXDE;
  159. EOF
  160. %clean
  161. rm -rf $RPM_BUILD_ROOT
  162. %post daemon
  163. /sbin/chkconfig --add transmission-daemon
  164. %post gtk
  165. touch --no-create %{_datadir}/icons/hicolor || :
  166. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  167. update-desktop-database > /dev/null 2>&1 || :
  168. %postun gtk
  169. touch --no-create %{_datadir}/icons/hicolor || :
  170. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  171. update-desktop-database > /dev/null 2>&1 || :
  172. %preun daemon
  173. if [ $1 = 0 ] ; then
  174. /sbin/service transmission-daemon stop >/dev/null 2>&1
  175. /sbin/chkconfig --del transmission-daemon
  176. fi
  177. %postun daemon
  178. if [ "$1" -ge "1" ] ; then
  179. /sbin/service transmission-daemon condrestart >/dev/null 2>&1 || :
  180. fi
  181. %files
  182. %files common
  183. %defattr(-, root, root, -)
  184. %doc AUTHORS COPYING NEWS README
  185. %{_bindir}/transmission-create
  186. %{_bindir}/transmission-edit
  187. %{_bindir}/transmission-remote
  188. %{_bindir}/transmission-show
  189. %{_datadir}/transmission/web/
  190. %{_datadir}/pixmaps/*
  191. %{_datadir}/icons/hicolor/*/apps/transmission.*
  192. %doc %{_mandir}/man1/transmission-create*
  193. %doc %{_mandir}/man1/transmission-edit*
  194. %doc %{_mandir}/man1/transmission-remote*
  195. %doc %{_mandir}/man1/transmission-show*
  196. %files cli
  197. %defattr(-, root, root, -)
  198. %{_bindir}/transmission-cli
  199. %doc %{_mandir}/man1/transmission-cli*
  200. %files daemon
  201. %defattr(-, root, root, -)
  202. %{_bindir}/transmission-daemon
  203. %{_initddir}/transmission-daemon
  204. %attr(-,transmission, transmission)/var/lib/transmission/
  205. %doc %{_mandir}/man1/transmission-daemon*
  206. %files gtk -f %{name}-gtk.lang
  207. %defattr(-,root,root)
  208. %{_bindir}/%{name}-gtk
  209. %{_datadir}/applications/%{name}-gtk.desktop
  210. %{_mandir}/man1/transmission-gtk.1*
  211. %files qt
  212. %defattr(-,root,root)
  213. %{_bindir}/transmission-qt
  214. %{_datadir}/applications/transmission-qt.desktop
  215. %{_mandir}/man1/transmission-qt.1*
  216. %changelog
  217. * Fri Jan 11 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.76-1
  218. - new upstream release
  219. * Fri Dec 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.75-1
  220. - new upstream release
  221. * Thu Oct 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.73-1
  222. - new upstream release
  223. * Sat Oct 20 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.72-1
  224. - new upstream release
  225. * Thu Sep 27 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.71-1
  226. - new upstream release
  227. - deleted Patch0
  228. - changed BuildRequires: gtk3-devel >= 3.4.0
  229. * Wed Jul 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.61-1
  230. - new upstream release
  231. - deleted conditional branch for GTK+2
  232. - because not supported GTK+2, GTK+3 only
  233. * Sat Jul 07 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.60-1
  234. - new upstream release
  235. * Sat May 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.52-1
  236. - new upstream release
  237. - added patch0 to fix .desktop validate
  238. * Thu Apr 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.51-1
  239. - new upstream release
  240. - fixed conditional branch
  241. * Thu Feb 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.50-1
  242. - new upstream release
  243. - deleted unrecognized option: --enable-gtk
  244. - fixed transmission-qt desktop entry a little
  245. * Wed Nov 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.42-1
  246. - new upstream release
  247. - aded BuildRequires: gtk3-devel >= 3.2.0
  248. - made conditional branch for Vine 6 (support for GTK+2)
  249. * Mon Oct 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.41-1
  250. - new upstream release
  251. - changed BuildRequires
  252. - gtk2-devel >= 2.6.0 to gtk2-devel >= 2.22.0
  253. - glib2-devel >= 2.28.0
  254. - deleted unrecognized option: --enable-libcanberra
  255. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.33-1
  256. - new upstream release
  257. - remove BuildRequires: GConf2-devel
  258. * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32-2
  259. - rebuild with libnotify-0.7
  260. * Sun Jul 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.32-1
  261. - new upstream release
  262. * Thu May 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.31-1
  263. - new upstream release
  264. - suppressed warning in installing desktop file
  265. - added configure option
  266. --enable-utp, --enable-nls, --enable-cli, --enable-daemon
  267. * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22-1
  268. - update to 2.22
  269. * Sat Feb 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.20-1
  270. - Update to upstream 2.20
  271. * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-2
  272. - rebuilt with openssl-1.0.0c
  273. * Sat Dec 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-1
  274. - Update to upstream 2.13
  275. - deleted disable option
  276. - added configure option --enable-gtk
  277. * Mon Nov 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.12-1
  278. - Update to upstream 2.12
  279. * Mon Oct 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.11-1
  280. - Update to upstream 2.11
  281. * Thu Oct 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-2
  282. - fixed and changed transmission-qt.desktop
  283. - did not show transmission-qt.desktop in LXDE
  284. * Mon Oct 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-1
  285. - Update to upstream 2.10
  286. * Mon Aug 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.04-1
  287. - Update to upstream 2.04
  288. * Fri Jul 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.03-1
  289. - Update to upstream 2.03
  290. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.01-1
  291. - Update to upstream 2.01
  292. * Fri Jun 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.00-1
  293. - Update to upstream 2.00
  294. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.93-1
  295. - Update to upstream 1.93
  296. * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.92-1
  297. - Update to upstream 1.92
  298. - applied new naming policy to spec
  299. * Mon Feb 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.91-1
  300. - Update to upstream 1.91
  301. - changed summary, summary(ja) a little
  302. - added %configure option --enable-libcanberra --enable-daemon
  303. - added Source1 from Fedora
  304. - splitted common, cli, daemon, gtk, qt packages
  305. * Sat Jan 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.83-1
  306. - Update to upstream 1.83
  307. - added BuildRequires: libcanberra-devel, libevent-devel
  308. * Sun Jan 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.82-1
  309. - Update to upstream 1.82
  310. * Fri Jan 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.80-1
  311. - Update to upstream 1.80
  312. - changed BuildRequires: intltool >= 0.40
  313. * Sun Jan 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.77-1
  314. - Update to upstream 1.77
  315. - dropt Patch1
  316. - aded BuildRequires: GConf2-devel
  317. * Mon Oct 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.76-1
  318. - Update to upstream 1.76
  319. * Tue Sep 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-2
  320. - a few fixed transmission_ja_po.patch
  321. - added --disable-static=no to configure option
  322. - run gtk-update-icon-cache in %post, %postun
  323. - cleaned up spec
  324. * Tue Sep 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-1
  325. - Update to upstream 1.75
  326. * Sun Jul 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.73-1
  327. - Update to upstream 1.73
  328. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.72-1
  329. - Update to upstream 1.72
  330. - cleaned up spec
  331. * Tue Jun 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.71-1
  332. - Update to upstream 1.71
  333. * Sat Jun 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.70-1
  334. - Update to upstream 1.70
  335. * Tue May 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.61-1
  336. - Update to upstream 1.61
  337. - added BuildRequires: glib2-devel
  338. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.60-1
  339. - Update to upstream 1.60
  340. - spec in UTF-8
  341. * Mon Apr 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.52-1
  342. - Update to upstream 1.52
  343. - fixed Desktop-file name
  344. - fixed BuildRoot
  345. * Sat Feb 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.51-1
  346. - Update to upstream 1.51
  347. - changed BuildRequires: curl-devel >= 7.18.0
  348. - dropped Patch1
  349. * Sun Feb 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.50-1
  350. - Update to upstream 1.50
  351. * Thu Jan 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-2
  352. - added Summary(ja)
  353. - fixed Lisense
  354. - added patch1 (transmission-1.42-libevent.patch, from Fedora)
  355. - fixed %build
  356. - changed %install
  357. - fixed %changelog
  358. * Sat Dec 27 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-1
  359. - initial build for VineSeed
  360. - Update to upstream 1.42
  361. - dropped Patch0 (transmission-0.71-manpath.patch)
  362. - added patch0 (transmission_ja_po.patch, to fix ja.po)
  363. - modified %files, %install
  364. - modified BuildRoot
  365. - added BuildRequires to curl-devel, dbus-glib-devel, libnotify-devel
  366. * Thu Feb 4 2008 Denis Leroy <denis@poolshark.org> - 1.04-1
  367. - Update to upstream 1.04
  368. - Modified Build-Require
  369. * Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 0.80-1
  370. - Update to upstream 0.80
  371. * Wed May 2 2007 Denis Leroy <denis@poolshark.org> - 0.72-1
  372. - Update to 0.72
  373. - Added libevent BR
  374. * Wed Apr 25 2007 Denis Leroy <denis@poolshark.org> - 0.71-1
  375. - Update to 0.71
  376. - Removed custom desktop file
  377. - Added patch to fix manpath
  378. * Thu Sep 28 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-3
  379. - Added project icon
  380. - Honor cc variable
  381. * Mon Sep 25 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-2
  382. - Removed ldconfig Requires
  383. * Wed Sep 13 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-1
  384. - First version