]>
Commit | Line | Data |
---|---|---|
7ad95f16 | 1 | # TODO: use system libevent |
0f16bf9a | 2 | Summary: A versatile and multi-platform BitTorrent client |
f2dfe381 | 3 | Summary(hu.UTF-8): Egy sokoldalú és multiplatformos BitTorrent kliens |
bb59eb4f | 4 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta |
905dacdd | 5 | Name: transmission |
2e12f7e7 | 6 | Version: 1.60 |
820ff2df | 7 | Release: 2 |
0f16bf9a PZ |
8 | License: MIT |
9 | Group: Applications/Communications | |
f2dfe381 | 10 | Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2 |
2e12f7e7 | 11 | # Source0-md5: 8b30cf189240f0c50ccd11c618a6906a |
147f3fba | 12 | Patch0: %{name}-ckb_po.patch |
ec12ede2 | 13 | URL: http://transmissionbt.com/ |
7ad95f16 JB |
14 | BuildRequires: curl-devel >= 7.15.0 |
15 | BuildRequires: dbus-glib-devel >= 0.70 | |
f237c99d | 16 | BuildRequires: gettext-devel |
7ad95f16 | 17 | BuildRequires: glib2-devel >= 1:2.16.0 |
0f16bf9a PZ |
18 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
19 | BuildRequires: intltool >= 0.35.5 | |
7ad95f16 JB |
20 | #BuildRequires: libevent-devel |
21 | BuildRequires: libnotify-devel >= 0.4.4 | |
f237c99d | 22 | BuildRequires: libstdc++-devel |
7ad95f16 | 23 | BuildRequires: openssl-devel >= 0.9.4 |
0f16bf9a PZ |
24 | BuildRequires: pkgconfig |
25 | BuildRequires: rpmbuild(macros) >= 1.357 | |
820ff2df | 26 | BuildRequires: qt4-qmake |
f237c99d | 27 | Obsoletes: Transmission <= 1.05 |
b4dc7e64 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0f16bf9a | 29 | |
c6dfa0bb | 30 | %define _appdir %{_datadir}/%{name}/web |
31 | ||
0f16bf9a PZ |
32 | %description |
33 | Transmission has been built from the ground up to be a lightweight, | |
34 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
35 | designed to integrate tightly with whatever computing environment you | |
36 | choose to use. Transmission strikes a balance between providing useful | |
37 | functionality without feature bloat. | |
38 | ||
f2dfe381 ZU |
39 | %description -l hu.UTF-8 |
40 | Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens. | |
41 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen | |
42 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
43 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
44 | ||
bb59eb4f JB |
45 | %description -l pl.UTF-8 |
46 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
47 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
48 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
49 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
50 | przydatnej funkcjonalności bez nadmiaru opcji. | |
51 | ||
f237c99d KK |
52 | %package gui |
53 | Summary: A versatile and multi-platform BitTorrent client | |
54 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta | |
55 | Group: X11/Applications/Communications | |
56 | Requires(post,postun): hicolor-icon-theme | |
57 | Requires(post,postun): gtk+2 | |
30875bc9 | 58 | Requires: %{name} = %{version}-%{release} |
f237c99d | 59 | Requires: gtk+2 >= 2:2.6.0 |
f237c99d KK |
60 | |
61 | %description gui | |
62 | Transmission has been built from the ground up to be a lightweight, | |
63 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
64 | designed to integrate tightly with whatever computing environment you | |
65 | choose to use. Transmission strikes a balance between providing useful | |
66 | functionality without feature bloat. | |
67 | ||
68 | %description gui -l hu.UTF-8 | |
69 | Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens. | |
70 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen | |
71 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
72 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
73 | ||
74 | %description gui -l pl.UTF-8 | |
75 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
76 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
77 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
78 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
79 | przydatnej funkcjonalności bez nadmiaru opcji. | |
80 | ||
820ff2df ZU |
81 | %package gui-qt |
82 | Summary: A GUI to Transmission based on Qt4 | |
83 | Group: X11/Applications/Communications | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | ||
86 | %description gui-qt | |
87 | A GUI to Transmission based on Qt4. | |
88 | ||
0f16bf9a | 89 | %prep |
0fc49842 | 90 | %setup -q -c -n transmission-%{version} |
bac64279 | 91 | mv transmission-%{version}/* . |
147f3fba | 92 | %patch0 -p1 |
ec12ede2 | 93 | %{__rm} po/ckb.po |
0f16bf9a PZ |
94 | |
95 | %build | |
96 | %configure | |
97 | %{__make} | |
98 | ||
820ff2df ZU |
99 | cd qt |
100 | qmake-qt4 | |
101 | %{__sed} -i "s@^CFLAGS.*=.*@CFLAGS = %{rpmcflags} -I/usr/include/openssl $(DEFINES)@" Makefile | |
102 | %{__sed} -i "s@^CXXFLAGS.*=.*@CXXFLAGS = %{rpmcxxflags} -I/usr/include/openssl $(DEFINES)@" Makefile | |
103 | %{__make} | |
104 | ||
0f16bf9a PZ |
105 | %install |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
ec12ede2 | 111 | # unsupported |
65730317 ZU |
112 | %{__rm} -rf $RPM_BUILD_ROOT%{_localedir}/eu |
113 | ||
114 | %find_lang %{name} --all-name --with-gnome | |
ec12ede2 | 115 | |
820ff2df ZU |
116 | install qt/qtr $RPM_BUILD_ROOT%{_bindir} |
117 | ||
ec12ede2 | 118 | # copy of GPLv2 not needed |
119 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/transmission/web/LICENSE | |
120 | ||
0f16bf9a PZ |
121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
f237c99d | 124 | %post gui |
0f16bf9a | 125 | %update_desktop_database_post |
e65cafbb | 126 | %update_icon_cache hicolor |
0f16bf9a | 127 | |
f237c99d | 128 | %postun gui |
0f16bf9a | 129 | %update_desktop_database_postun |
e65cafbb | 130 | %update_icon_cache hicolor |
0f16bf9a PZ |
131 | |
132 | %files -f %{name}.lang | |
133 | %defattr(644,root,root,755) | |
134 | %doc AUTHORS NEWS README | |
95c51d91 | 135 | %attr(755,root,root) %{_bindir}/transmissioncli |
09c73228 | 136 | %attr(755,root,root) %{_bindir}/transmission-daemon |
09c73228 | 137 | %attr(755,root,root) %{_bindir}/transmission-remote |
5de6d863 ZU |
138 | %{_mandir}/man1/transmissioncli.1* |
139 | %{_mandir}/man1/transmission-daemon.1* | |
140 | %{_mandir}/man1/transmission-remote.1* | |
147f3fba | 141 | %dir %{_datadir}/%{name} |
c4a49d1e | 142 | %dir %{_appdir} |
c6dfa0bb | 143 | %{_appdir}/images |
144 | %{_appdir}/javascript | |
145 | %{_appdir}/stylesheets | |
146 | %{_appdir}/index.html | |
f237c99d KK |
147 | |
148 | %files gui | |
c1ca1d17 | 149 | %defattr(644,root,root,755) |
f237c99d | 150 | %attr(755,root,root) %{_bindir}/transmission |
5de6d863 | 151 | %{_mandir}/man1/transmission.1* |
f237c99d KK |
152 | %{_desktopdir}/transmission.desktop |
153 | %{_pixmapsdir}/transmission.png | |
154 | %{_iconsdir}/hicolor/*/apps/transmission.png | |
155 | %{_iconsdir}/hicolor/*/apps/transmission.svg | |
820ff2df ZU |
156 | |
157 | %files gui-qt | |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_bindir}/qtr |