transmission-vl.spec 13 KB

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