]>
Commit | Line | Data |
---|---|---|
8983c7a2 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
0142ce29 | 4 | %define kdeappsver 22.04.2 |
c43b4f3b WF |
5 | %define kframever 5.82.0 |
6 | %define qtver 5.15.2 | |
7 | %define kaname ktorrent | |
8 | Summary: Native KDE BitTorrent client | |
9 | Summary(de.UTF-8): Ein nativer KDE BitTorrent Klient | |
10 | Summary(pl.UTF-8): Natywny klient BitTorrenta dla KDE | |
11 | Name: ka5-%{kaname} | |
0142ce29 | 12 | Version: 22.04.2 |
d3ff5944 | 13 | Release: 1 |
c43b4f3b WF |
14 | License: GPL v2+/LGPL v2.1+ |
15 | Group: X11/Libraries | |
0142ce29 WF |
16 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
17 | # Source0-md5: b497ac22f7806b8c95ddf7fc50aa39cf | |
c43b4f3b WF |
18 | URL: http://www.kde.org/ |
19 | BuildRequires: Qt5Core-devel >= %{qtver} | |
20 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
21 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
22 | BuildRequires: Qt5Network >= %{qtver} | |
23 | BuildRequires: Qt5Positioning-devel >= %{qtver} | |
24 | BuildRequires: Qt5PrintSupport-devel >= %{qtver} | |
25 | BuildRequires: Qt5Qml-devel >= %{qtver} | |
26 | BuildRequires: Qt5Quick-devel >= %{qtver} | |
27 | BuildRequires: Qt5Test-devel >= %{qtver} | |
28 | BuildRequires: Qt5WebChannel-devel >= %{qtver} | |
29 | BuildRequires: Qt5WebEngine-devel >= %{qtver} | |
30 | BuildRequires: Qt5Widgets-devel | |
31 | BuildRequires: boost-devel | |
32 | BuildRequires: gettext-devel | |
33 | BuildRequires: ka5-libktorrent-devel >= 21.04.1 | |
34 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} | |
35 | BuildRequires: kf5-karchive-devel >= %{kframever} | |
36 | BuildRequires: kf5-kauth-devel >= %{kframever} | |
37 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
38 | BuildRequires: kf5-kcodecs-devel >= %{kframever} | |
39 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
40 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
41 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
42 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
43 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
44 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
45 | BuildRequires: kf5-kdnssd-devel >= %{kframever} | |
46 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
47 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
48 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
49 | BuildRequires: kf5-kio-devel >= %{kframever} | |
50 | BuildRequires: kf5-kitemviews-devel >= %{kframever} | |
51 | BuildRequires: kf5-kjobwidgets-devel >= %{kframever} | |
52 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
53 | BuildRequires: kf5-knotifyconfig-devel >= %{kframever} | |
54 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
55 | BuildRequires: kf5-kplotting-devel >= %{kframever} | |
56 | BuildRequires: kf5-kross-devel >= %{kframever} | |
57 | BuildRequires: kf5-kservice-devel >= %{kframever} | |
58 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
59 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
60 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
61 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
62 | BuildRequires: kf5-solid-devel >= %{kframever} | |
63 | BuildRequires: kf5-sonnet-devel >= %{kframever} | |
64 | BuildRequires: kf5-syndication-devel >= %{kframever} | |
65 | BuildRequires: kp5-plasma-workspace-devel | |
66 | BuildRequires: phonon-qt5-devel | |
67 | BuildRequires: pkgconfig | |
68 | BuildRequires: taglib-devel | |
69 | BuildRequires: tar >= 1:1.22 | |
70 | BuildRequires: xz | |
71 | BuildRequires: zlib-devel | |
4e936473 | 72 | ExclusiveArch: i686 %{x8664} |
c43b4f3b WF |
73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
74 | ||
75 | %description | |
76 | KTorrent is a BitTorrent program for KDE. | |
77 | ||
78 | Its main features are: | |
79 | - Downloads torrent files | |
80 | - Upload speed capping, seeing that most people can't upload infinite | |
81 | amounts of data. | |
82 | - Internet searching using various search engines, you can even add | |
83 | your own. | |
84 | - UDP Trackers | |
85 | ||
86 | %description -l de.UTF-8 | |
87 | KTorrent ist ein BitTorrent Klient für KDE. | |
88 | ||
89 | Hauptfunktionen sind: | |
90 | - Torrent-Dateien Download | |
91 | - Begränzung des Uploades, so dass Mehrheit der Leute nicht unerlaubt | |
92 | unbegränzte Datenflüsse sendet | |
93 | - Durchsuchung des Internets mit hilfe diverser Browser, man kann | |
94 | sogar den eigenen Browser dazu schreiben | |
95 | - UDP Trackers | |
96 | ||
97 | %description -l pl.UTF-8 | |
98 | KTorrent to klient BitTorrenta dla KDE. | |
99 | ||
100 | Główne cechy to: | |
101 | - ściąganie plików torrent | |
7e9a5e87 WF |
102 | - ograniczanie szybkości uploadu, baczące żeby większość ludzi |
103 | nie przesyłała nieograniczonej ilości danych | |
c43b4f3b WF |
104 | - przeszukiwanie Internetu przy użyciu różnych wyszukiwarek, można |
105 | nawet dodać własną | |
106 | - trackery UDP | |
107 | ||
108 | %prep | |
109 | %setup -q -n %{kaname}-%{version} | |
110 | ||
111 | %build | |
112 | install -d build | |
113 | cd build | |
114 | %cmake \ | |
115 | -G Ninja \ | |
8983c7a2 | 116 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
c43b4f3b WF |
117 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
118 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
119 | .. | |
120 | %ninja_build | |
121 | ||
8983c7a2 WF |
122 | %if %{with tests} |
123 | ctest | |
124 | %endif | |
125 | ||
126 | ||
c43b4f3b WF |
127 | %install |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | %ninja_install -C build | |
130 | ||
131 | %find_lang %{kaname} --all-name --with-kde | |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post -p /sbin/ldconfig | |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %files -f %{kaname}.lang | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_bindir}/ktmagnetdownloader | |
142 | %attr(755,root,root) %{_bindir}/ktorrent | |
143 | %attr(755,root,root) %{_bindir}/ktupnptest | |
144 | %ghost %{_libdir}/libktcore.so.16 | |
145 | %attr(755,root,root) %{_libdir}/libktcore.so.*.*.* | |
5c95d668 WF |
146 | %{_iconsdir}/hicolor/16x16/actions/kt-add-feeds.png |
147 | %{_iconsdir}/hicolor/16x16/actions/kt-add-filters.png | |
148 | %{_iconsdir}/hicolor/16x16/actions/kt-remove-feeds.png | |
149 | %{_iconsdir}/hicolor/16x16/actions/kt-remove-filters.png | |
150 | %{_iconsdir}/hicolor/22x22/actions/kt-add-feeds.png | |
151 | %{_iconsdir}/hicolor/22x22/actions/kt-add-filters.png | |
152 | %{_iconsdir}/hicolor/22x22/actions/kt-remove-feeds.png | |
153 | %{_iconsdir}/hicolor/22x22/actions/kt-remove-filters.png | |
154 | %{_iconsdir}/hicolor/32x32/actions/kt-add-feeds.png | |
155 | %{_iconsdir}/hicolor/32x32/actions/kt-add-filters.png | |
156 | %{_iconsdir}/hicolor/32x32/actions/kt-remove-feeds.png | |
157 | %{_iconsdir}/hicolor/32x32/actions/kt-remove-filters.png | |
c43b4f3b WF |
158 | %{_desktopdir}/org.kde.ktorrent.desktop |
159 | %{_iconsdir}/hicolor/128x128/apps/ktorrent.png | |
c43b4f3b WF |
160 | %{_iconsdir}/hicolor/16x16/actions/kt-stop-all.png |
161 | %{_iconsdir}/hicolor/16x16/actions/kt-stop.png | |
162 | %{_iconsdir}/hicolor/16x16/actions/kt-upnp.png | |
163 | %{_iconsdir}/hicolor/16x16/apps/ktorrent.png | |
c43b4f3b WF |
164 | %{_iconsdir}/hicolor/22x22/actions/kt-magnet.png |
165 | %{_iconsdir}/hicolor/22x22/actions/kt-pause.png | |
c43b4f3b WF |
166 | %{_iconsdir}/hicolor/22x22/actions/kt-remove.png |
167 | %{_iconsdir}/hicolor/22x22/actions/kt-set-max-download-speed.png | |
168 | %{_iconsdir}/hicolor/22x22/actions/kt-set-max-upload-speed.png | |
169 | %{_iconsdir}/hicolor/22x22/actions/kt-speed-limits.png | |
170 | %{_iconsdir}/hicolor/22x22/actions/kt-start-all.png | |
171 | %{_iconsdir}/hicolor/22x22/actions/kt-start.png | |
172 | %{_iconsdir}/hicolor/22x22/actions/kt-stop-all.png | |
173 | %{_iconsdir}/hicolor/22x22/actions/kt-stop.png | |
174 | %{_iconsdir}/hicolor/22x22/apps/ktorrent.png | |
c43b4f3b WF |
175 | %{_iconsdir}/hicolor/32x32/actions/kt-info-widget.png |
176 | %{_iconsdir}/hicolor/32x32/actions/kt-magnet.png | |
177 | %{_iconsdir}/hicolor/32x32/actions/kt-pause.png | |
178 | %{_iconsdir}/hicolor/32x32/actions/kt-queue-manager.png | |
c43b4f3b WF |
179 | %{_iconsdir}/hicolor/32x32/actions/kt-remove.png |
180 | %{_iconsdir}/hicolor/32x32/actions/kt-set-max-download-speed.png | |
181 | %{_iconsdir}/hicolor/32x32/actions/kt-set-max-upload-speed.png | |
182 | %{_iconsdir}/hicolor/32x32/actions/kt-speed-limits.png | |
183 | %{_iconsdir}/hicolor/32x32/actions/kt-start-all.png | |
184 | %{_iconsdir}/hicolor/32x32/actions/kt-start.png | |
185 | %{_iconsdir}/hicolor/32x32/actions/kt-stop-all.png | |
186 | %{_iconsdir}/hicolor/32x32/actions/kt-stop.png | |
187 | %{_iconsdir}/hicolor/32x32/actions/kt-upnp.png | |
188 | %{_iconsdir}/hicolor/32x32/apps/ktorrent.png | |
189 | %{_iconsdir}/hicolor/48x48/actions/kt-bandwidth-scheduler.png | |
190 | %{_iconsdir}/hicolor/48x48/actions/kt-change-tracker.png | |
191 | %{_iconsdir}/hicolor/48x48/actions/kt-check-data.png | |
192 | %{_iconsdir}/hicolor/48x48/actions/kt-chunks.png | |
193 | %{_iconsdir}/hicolor/48x48/actions/kt-info-widget.png | |
194 | %{_iconsdir}/hicolor/48x48/actions/kt-magnet.png | |
195 | %{_iconsdir}/hicolor/48x48/actions/kt-pause.png | |
196 | %{_iconsdir}/hicolor/48x48/actions/kt-plugins.png | |
197 | %{_iconsdir}/hicolor/48x48/actions/kt-queue-manager.png | |
198 | %{_iconsdir}/hicolor/48x48/actions/kt-remove.png | |
199 | %{_iconsdir}/hicolor/48x48/actions/kt-restore-defaults.png | |
200 | %{_iconsdir}/hicolor/48x48/actions/kt-set-max-download-speed.png | |
201 | %{_iconsdir}/hicolor/48x48/actions/kt-set-max-upload-speed.png | |
202 | %{_iconsdir}/hicolor/48x48/actions/kt-show-hide.png | |
203 | %{_iconsdir}/hicolor/48x48/actions/kt-show-statusbar.png | |
204 | %{_iconsdir}/hicolor/48x48/actions/kt-speed-limits.png | |
205 | %{_iconsdir}/hicolor/48x48/actions/kt-start-all.png | |
206 | %{_iconsdir}/hicolor/48x48/actions/kt-start.png | |
207 | %{_iconsdir}/hicolor/48x48/actions/kt-stop-all.png | |
208 | %{_iconsdir}/hicolor/48x48/actions/kt-stop.png | |
209 | %{_iconsdir}/hicolor/48x48/actions/kt-upnp.png | |
210 | %{_iconsdir}/hicolor/48x48/apps/ktorrent.png | |
211 | %{_iconsdir}/hicolor/64x64/actions/kt-magnet.png | |
212 | %{_iconsdir}/hicolor/64x64/apps/ktorrent.png | |
213 | %{_iconsdir}/hicolor/scalable/actions/kt-magnet.svgz | |
214 | %{_iconsdir}/hicolor/scalable/actions/kt-set-max-download-speed.svgz | |
215 | %{_iconsdir}/hicolor/scalable/actions/kt-set-max-upload-speed.svgz | |
216 | %{_iconsdir}/hicolor/scalable/actions/kt-speed-limits.svgz | |
217 | %{_datadir}/knotifications5/ktorrent.notifyrc | |
218 | %{_datadir}/ktorrent | |
219 | %{_datadir}/kxmlgui5/ktorrent | |
220 | %{_datadir}/metainfo/org.kde.ktorrent.appdata.xml | |
7e9a5e87 WF |
221 | %dir %{_libdir}/qt5/plugins/ktorrent_plugins |
222 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_bwscheduler.so | |
223 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_downloadorder.so | |
224 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_infowidget.so | |
225 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_ipfilter.so | |
226 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_logviewer.so | |
227 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_magnetgenerator.so | |
228 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_mediaplayer.so | |
229 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_scanfolder.so | |
230 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_scanforlostfiles.so | |
231 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_search.so | |
232 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_shutdown.so | |
233 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_stats.so | |
234 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_syndication.so | |
235 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_upnp.so | |
236 | %attr(755,root,root) %{_libdir}/qt5/plugins/ktorrent_plugins/ktorrent_zeroconf.so |