transmission-vl.spec 13 KB

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