transmission-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. Name: transmission
  2. Version: 2.73
  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. * Thu Oct 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.73-1
  218. - new upstream release
  219. * Sat Oct 20 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.72-1
  220. - new upstream release
  221. * Thu Sep 27 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.71-1
  222. - new upstream release
  223. - deleted Patch0
  224. - changed BuildRequires: gtk3-devel >= 3.4.0
  225. * Wed Jul 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.61-1
  226. - new upstream release
  227. - deleted conditional branch for GTK+2
  228. - because not supported GTK+2, GTK+3 only
  229. * Sat Jul 07 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.60-1
  230. - new upstream release
  231. * Sat May 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.52-1
  232. - new upstream release
  233. - added patch0 to fix .desktop validate
  234. * Thu Apr 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.51-1
  235. - new upstream release
  236. - fixed conditional branch
  237. * Thu Feb 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.50-1
  238. - new upstream release
  239. - deleted unrecognized option: --enable-gtk
  240. - fixed transmission-qt desktop entry a little
  241. * Wed Nov 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.42-1
  242. - new upstream release
  243. - aded BuildRequires: gtk3-devel >= 3.2.0
  244. - made conditional branch for Vine 6 (support for GTK+2)
  245. * Mon Oct 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.41-1
  246. - new upstream release
  247. - changed BuildRequires
  248. - gtk2-devel >= 2.6.0 to gtk2-devel >= 2.22.0
  249. - glib2-devel >= 2.28.0
  250. - deleted unrecognized option: --enable-libcanberra
  251. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.33-1
  252. - new upstream release
  253. - remove BuildRequires: GConf2-devel
  254. * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32-2
  255. - rebuild with libnotify-0.7
  256. * Sun Jul 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.32-1
  257. - new upstream release
  258. * Thu May 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.31-1
  259. - new upstream release
  260. - suppressed warning in installing desktop file
  261. - added configure option
  262. --enable-utp, --enable-nls, --enable-cli, --enable-daemon
  263. * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22-1
  264. - update to 2.22
  265. * Sat Feb 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.20-1
  266. - Update to upstream 2.20
  267. * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-2
  268. - rebuilt with openssl-1.0.0c
  269. * Sat Dec 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.13-1
  270. - Update to upstream 2.13
  271. - deleted disable option
  272. - added configure option --enable-gtk
  273. * Mon Nov 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.12-1
  274. - Update to upstream 2.12
  275. * Mon Oct 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.11-1
  276. - Update to upstream 2.11
  277. * Thu Oct 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-2
  278. - fixed and changed transmission-qt.desktop
  279. - did not show transmission-qt.desktop in LXDE
  280. * Mon Oct 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10-1
  281. - Update to upstream 2.10
  282. * Mon Aug 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.04-1
  283. - Update to upstream 2.04
  284. * Fri Jul 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.03-1
  285. - Update to upstream 2.03
  286. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.01-1
  287. - Update to upstream 2.01
  288. * Fri Jun 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.00-1
  289. - Update to upstream 2.00
  290. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.93-1
  291. - Update to upstream 1.93
  292. * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.92-1
  293. - Update to upstream 1.92
  294. - applied new naming policy to spec
  295. * Mon Feb 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.91-1
  296. - Update to upstream 1.91
  297. - changed summary, summary(ja) a little
  298. - added %configure option --enable-libcanberra --enable-daemon
  299. - added Source1 from Fedora
  300. - splitted common, cli, daemon, gtk, qt packages
  301. * Sat Jan 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.83-1
  302. - Update to upstream 1.83
  303. - added BuildRequires: libcanberra-devel, libevent-devel
  304. * Sun Jan 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.82-1
  305. - Update to upstream 1.82
  306. * Fri Jan 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.80-1
  307. - Update to upstream 1.80
  308. - changed BuildRequires: intltool >= 0.40
  309. * Sun Jan 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.77-1
  310. - Update to upstream 1.77
  311. - dropt Patch1
  312. - aded BuildRequires: GConf2-devel
  313. * Mon Oct 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.76-1
  314. - Update to upstream 1.76
  315. * Tue Sep 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-2
  316. - a few fixed transmission_ja_po.patch
  317. - added --disable-static=no to configure option
  318. - run gtk-update-icon-cache in %post, %postun
  319. - cleaned up spec
  320. * Tue Sep 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-1
  321. - Update to upstream 1.75
  322. * Sun Jul 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.73-1
  323. - Update to upstream 1.73
  324. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.72-1
  325. - Update to upstream 1.72
  326. - cleaned up spec
  327. * Tue Jun 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.71-1
  328. - Update to upstream 1.71
  329. * Sat Jun 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.70-1
  330. - Update to upstream 1.70
  331. * Tue May 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.61-1
  332. - Update to upstream 1.61
  333. - added BuildRequires: glib2-devel
  334. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.60-1
  335. - Update to upstream 1.60
  336. - spec in UTF-8
  337. * Mon Apr 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.52-1
  338. - Update to upstream 1.52
  339. - fixed Desktop-file name
  340. - fixed BuildRoot
  341. * Sat Feb 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.51-1
  342. - Update to upstream 1.51
  343. - changed BuildRequires: curl-devel >= 7.18.0
  344. - dropped Patch1
  345. * Sun Feb 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.50-1
  346. - Update to upstream 1.50
  347. * Thu Jan 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-2
  348. - added Summary(ja)
  349. - fixed Lisense
  350. - added patch1 (transmission-1.42-libevent.patch, from Fedora)
  351. - fixed %build
  352. - changed %install
  353. - fixed %changelog
  354. * Sat Dec 27 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-1
  355. - initial build for VineSeed
  356. - Update to upstream 1.42
  357. - dropped Patch0 (transmission-0.71-manpath.patch)
  358. - added patch0 (transmission_ja_po.patch, to fix ja.po)
  359. - modified %files, %install
  360. - modified BuildRoot
  361. - added BuildRequires to curl-devel, dbus-glib-devel, libnotify-devel
  362. * Thu Feb 4 2008 Denis Leroy <denis@poolshark.org> - 1.04-1
  363. - Update to upstream 1.04
  364. - Modified Build-Require
  365. * Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 0.80-1
  366. - Update to upstream 0.80
  367. * Wed May 2 2007 Denis Leroy <denis@poolshark.org> - 0.72-1
  368. - Update to 0.72
  369. - Added libevent BR
  370. * Wed Apr 25 2007 Denis Leroy <denis@poolshark.org> - 0.71-1
  371. - Update to 0.71
  372. - Removed custom desktop file
  373. - Added patch to fix manpath
  374. * Thu Sep 28 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-3
  375. - Added project icon
  376. - Honor cc variable
  377. * Mon Sep 25 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-2
  378. - Removed ldconfig Requires
  379. * Wed Sep 13 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-1
  380. - First version