transmission-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. Name: transmission
  2. Version: 2.01
  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 --with-gtk --disable-wx --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}
  129. desktop-file-install --vendor vine \
  130. --delete-original \
  131. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  132. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  133. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  134. cat > $RPM_BUILD_ROOT%{_datadir}/applications/vine-qtr.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=qtr %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;
  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-remote
  177. %{_datadir}/transmission/web/
  178. %{_datadir}/pixmaps/*
  179. %{_datadir}/icons/hicolor/*/apps/transmission.*
  180. %doc %{_mandir}/man1/transmission-remote*
  181. %files cli
  182. %defattr(-, root, root, -)
  183. %{_bindir}/transmissioncli
  184. %doc %{_mandir}/man1/transmissioncli*
  185. %files daemon
  186. %defattr(-, root, root, -)
  187. %{_bindir}/transmission-daemon
  188. %{_initddir}/transmission-daemon
  189. %attr(-,transmission, transmission)/var/lib/transmission/
  190. %doc %{_mandir}/man1/transmission-daemon*
  191. %files gtk -f %{name}.lang
  192. %defattr(-,root,root)
  193. %{_bindir}/%{name}
  194. %{_datadir}/applications/vine-%{name}.desktop
  195. %{_mandir}/man1/transmission.1*
  196. %files qt
  197. %defattr(-,root,root)
  198. %{_bindir}/qtr
  199. %{_datadir}/applications/vine-qtr.desktop
  200. %changelog
  201. * Fri Jul 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.01-1
  202. - Update to upstream 2.01
  203. * Fri Jun 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.00-1
  204. - Update to upstream 2.00
  205. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.93-1
  206. - Update to upstream 1.93
  207. * Thu Mar 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.92-1
  208. - Update to upstream 1.92
  209. - applied new naming policy to spec
  210. * Mon Feb 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.91-1
  211. - Update to upstream 1.91
  212. - changed summary, summary(ja) a little
  213. - added %configure option --enable-libcanberra --enable-daemon
  214. - added Source1 from Fedora
  215. - splitted common, cli, daemon, gtk, qt packages
  216. * Sat Jan 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.83-1
  217. - Update to upstream 1.83
  218. - added BuildRequires: libcanberra-devel, libevent-devel
  219. * Sun Jan 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.82-1
  220. - Update to upstream 1.82
  221. * Fri Jan 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.80-1
  222. - Update to upstream 1.80
  223. - changed BuildRequires: intltool >= 0.40
  224. * Sun Jan 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.77-1
  225. - Update to upstream 1.77
  226. - dropt Patch1
  227. - aded BuildRequires: GConf2-devel
  228. * Mon Oct 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.76-1
  229. - Update to upstream 1.76
  230. * Tue Sep 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-2
  231. - a few fixed transmission_ja_po.patch
  232. - added --disable-static=no to configure option
  233. - run gtk-update-icon-cache in %post, %postun
  234. - cleaned up spec
  235. * Tue Sep 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.75-1
  236. - Update to upstream 1.75
  237. * Sun Jul 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.73-1
  238. - Update to upstream 1.73
  239. * Sun Jun 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.72-1
  240. - Update to upstream 1.72
  241. - cleaned up spec
  242. * Tue Jun 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.71-1
  243. - Update to upstream 1.71
  244. * Sat Jun 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.70-1
  245. - Update to upstream 1.70
  246. * Tue May 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.61-1
  247. - Update to upstream 1.61
  248. - added BuildRequires: glib2-devel
  249. * Wed May 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.60-1
  250. - Update to upstream 1.60
  251. - spec in UTF-8
  252. * Mon Apr 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.52-1
  253. - Update to upstream 1.52
  254. - fixed Desktop-file name
  255. - fixed BuildRoot
  256. * Sat Feb 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.51-1
  257. - Update to upstream 1.51
  258. - changed BuildRequires: curl-devel >= 7.18.0
  259. - dropped Patch1
  260. * Sun Feb 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.50-1
  261. - Update to upstream 1.50
  262. * Thu Jan 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-2
  263. - added Summary(ja)
  264. - fixed Lisense
  265. - added patch1 (transmission-1.42-libevent.patch, from Fedora)
  266. - fixed %build
  267. - changed %install
  268. - fixed %changelog
  269. * Sat Dec 27 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.42-1
  270. - initial build for VineSeed
  271. - Update to upstream 1.42
  272. - dropped Patch0 (transmission-0.71-manpath.patch)
  273. - added patch0 (transmission_ja_po.patch, to fix ja.po)
  274. - modified %files, %install
  275. - modified BuildRoot
  276. - added BuildRequires to curl-devel, dbus-glib-devel, libnotify-devel
  277. * Thu Feb 4 2008 Denis Leroy <denis@poolshark.org> - 1.04-1
  278. - Update to upstream 1.04
  279. - Modified Build-Require
  280. * Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 0.80-1
  281. - Update to upstream 0.80
  282. * Wed May 2 2007 Denis Leroy <denis@poolshark.org> - 0.72-1
  283. - Update to 0.72
  284. - Added libevent BR
  285. * Wed Apr 25 2007 Denis Leroy <denis@poolshark.org> - 0.71-1
  286. - Update to 0.71
  287. - Removed custom desktop file
  288. - Added patch to fix manpath
  289. * Thu Sep 28 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-3
  290. - Added project icon
  291. - Honor cc variable
  292. * Mon Sep 25 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-2
  293. - Removed ldconfig Requires
  294. * Wed Sep 13 2006 Denis Leroy <denis@poolshark.org> - 0.6.1-1
  295. - First version