transmission-vl.spec 16 KB

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