transmission-vl.spec 15 KB

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