]>
Commit | Line | Data |
---|---|---|
b9242e20 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7e15c8c5 | 4 | %define kdeappsver 24.01.95 |
011d9f01 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
8c3c0a2a WF |
7 | %define kaname kget |
8 | Summary: kget | |
9 | Name: ka5-%{kaname} | |
7e15c8c5 WF |
10 | Version: 24.01.95 |
11 | Release: 0.1 | |
8c3c0a2a WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
7e15c8c5 WF |
14 | Source0: https://download.kde.org/unstable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
15 | # Source0-md5: 55ab0b9f9047d940b1746e79d617b965 | |
8c3c0a2a | 16 | URL: http://www.kde.org/ |
7e15c8c5 WF |
17 | BuildRequires: Qt6Core-devel >= %{qtver} |
18 | BuildRequires: Qt6DBus-devel | |
19 | BuildRequires: Qt6Gui-devel | |
20 | BuildRequires: Qt6Network-devel | |
21 | BuildRequires: Qt6PrintSupport-devel | |
22 | BuildRequires: Qt6Sql-devel | |
23 | BuildRequires: Qt6Test-devel | |
24 | BuildRequires: Qt6Widgets-devel | |
25 | BuildRequires: Qt6Xml-devel | |
8c3c0a2a | 26 | BuildRequires: boost-devel |
818e8974 | 27 | BuildRequires: cmake >= 3.20 |
8c3c0a2a WF |
28 | BuildRequires: gettext-devel |
29 | BuildRequires: gpgme-c++-devel >= 1.7.0 | |
7e15c8c5 | 30 | BuildRequires: gpgme-qt6-devel |
a1329a67 | 31 | BuildRequires: ka5-dolphin-devel >= %{kdeappsver} |
b10254a5 | 32 | BuildRequires: ka5-libktorrent-devel >= %{kdeappsver} |
7e15c8c5 WF |
33 | BuildRequires: kf6-extra-cmake-modules >= %{kframever} |
34 | BuildRequires: kf6-karchive-devel >= %{kframever} | |
35 | BuildRequires: kf6-kcmutils-devel >= %{kframever} | |
36 | BuildRequires: kf6-kcompletion-devel >= %{kframever} | |
37 | BuildRequires: kf6-kconfig-devel >= %{kframever} | |
38 | BuildRequires: kf6-kconfigwidgets-devel >= %{kframever} | |
39 | BuildRequires: kf6-kcoreaddons-devel >= %{kframever} | |
40 | BuildRequires: kf6-kdbusaddons-devel >= %{kframever} | |
41 | BuildRequires: kf6-kdoctools-devel >= %{kframever} | |
42 | BuildRequires: kf6-ki18n-devel >= %{kframever} | |
43 | BuildRequires: kf6-kiconthemes-devel >= %{kframever} | |
44 | BuildRequires: kf6-kio-devel >= %{kframever} | |
45 | BuildRequires: kf6-kitemviews-devel >= %{kframever} | |
46 | BuildRequires: kf6-knotifications-devel >= %{kframever} | |
47 | BuildRequires: kf6-knotifyconfig-devel >= %{kframever} | |
48 | BuildRequires: kf6-kparts-devel >= %{kframever} | |
49 | BuildRequires: kf6-kservice-devel >= %{kframever} | |
50 | BuildRequires: kf6-ktextwidgets-devel >= %{kframever} | |
51 | BuildRequires: kf6-kwallet-devel >= %{kframever} | |
52 | BuildRequires: kf6-kwidgetsaddons-devel >= %{kframever} | |
53 | BuildRequires: kf6-kwindowsystem-devel >= %{kframever} | |
54 | BuildRequires: kf6-kxmlgui-devel >= %{kframever} | |
55 | BuildRequires: kf6-solid-devel >= %{kframever} | |
32b98474 | 56 | BuildRequires: libmms-devel |
c0ca3c5b | 57 | BuildRequires: ninja |
7e15c8c5 WF |
58 | BuildRequires: qca-qt6-devel >= 2.1.0 |
59 | BuildRequires: qt6-build >= %{qtver} | |
8c3c0a2a WF |
60 | BuildRequires: rpmbuild(macros) >= 1.164 |
61 | BuildRequires: shared-mime-info | |
62 | BuildRequires: tar >= 1:1.22 | |
63 | BuildRequires: xz | |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
66 | %description | |
67 | KGet is a versatile and user-friendly download manager.. Features. | |
68 | Downloading files from FTP and HTTP(S) sources. Pausing and resuming | |
69 | of downloading files, as well as the ability to restart a download. | |
70 | ||
45098add WF |
71 | %description -l pl.UTF-8 |
72 | KGet jest wszechstronnym i łatwym w użyciu menadżerem pobierania. | |
73 | Cechy: pobiera plików przez FTP i HTTP(S). Wstrzymywanie i wznawianie | |
74 | pobierania plików, a także możliwość zrestartowania downloadu. | |
75 | ||
8c3c0a2a WF |
76 | %prep |
77 | %setup -q -n %{kaname}-%{version} | |
78 | ||
79 | %build | |
8c3c0a2a | 80 | %cmake \ |
818e8974 | 81 | -B build \ |
c0ca3c5b | 82 | -G Ninja \ |
b9242e20 | 83 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a1329a67 | 84 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
7e15c8c5 WF |
85 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
86 | -DQT_MAJOR_VERSION=6 | |
818e8974 | 87 | %ninja_build -C build |
8c3c0a2a | 88 | |
b9242e20 | 89 | %if %{with tests} |
818e8974 | 90 | ctest --test-dir build |
b9242e20 WF |
91 | %endif |
92 | ||
93 | ||
8c3c0a2a WF |
94 | %install |
95 | rm -rf $RPM_BUILD_ROOT | |
c0ca3c5b | 96 | %ninja_install -C build |
8c3c0a2a | 97 | |
a1329a67 | 98 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/sr |
8c3c0a2a WF |
99 | %find_lang %{kaname} --all-name --with-kde |
100 | ||
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
9f82a84d WF |
104 | %post -p /sbin/ldconfig |
105 | %postun -p /sbin/ldconfig | |
106 | ||
8c3c0a2a WF |
107 | %files -f %{kaname}.lang |
108 | %defattr(644,root,root,755) | |
8c3c0a2a | 109 | %attr(755,root,root) %{_bindir}/kget |
c651630f | 110 | %{_libdir}/libkgetcore.so |
7e15c8c5 WF |
111 | %ghost %{_libdir}/libkgetcore.so.6 |
112 | %attr(755,root,root) %{_libdir}/libkgetcore.so.*.* | |
113 | %dir %{_libdir}/qt6/plugins/kget | |
114 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_bittorrent.so | |
115 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_checksumsearchfactory.so | |
116 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_kio.so | |
117 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_metalinkfactory.so | |
118 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_mirrorsearchfactory.so | |
119 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_mmsfactory.so | |
120 | %attr(755,root,root) %{_libdir}/qt6/plugins/kget/kget_multisegkiofactory.so | |
8c3c0a2a WF |
121 | %{_desktopdir}/org.kde.kget.desktop |
122 | %{_datadir}/config.kcfg/kget.kcfg | |
123 | %{_datadir}/config.kcfg/kget_checksumsearchfactory.kcfg | |
124 | %{_datadir}/config.kcfg/kget_mirrorsearchfactory.kcfg | |
c6efbec0 | 125 | %{_datadir}/config.kcfg/kget_mmsfactory.kcfg |
8c3c0a2a WF |
126 | %{_datadir}/config.kcfg/kget_multisegkiofactory.kcfg |
127 | %{_datadir}/dbus-1/services/org.kde.kget.service | |
7e15c8c5 | 128 | %{_iconsdir}/hicolor/*x*/apps/kget.png |
8c3c0a2a | 129 | %{_datadir}/kget |
7e15c8c5 | 130 | %{_datadir}/knotifications6/kget.notifyrc |
8c3c0a2a | 131 | %{_datadir}/metainfo/org.kde.kget.appdata.xml |
7e15c8c5 | 132 | %{_datadir}/qlogging-categories6/kget.categories |
bb6acd89 | 133 | %{_datadir}/kio/servicemenus/kget_download.desktop |
7e15c8c5 WF |
134 | %dir %{_libdir}/qt6/plugins/kget_kcms |
135 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_bittorrentfactory.so | |
136 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_checksumsearchfactory.so | |
137 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_metalinkfactory.so | |
138 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_mirrorsearchfactory.so | |
139 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_mmsfactory.so | |
140 | %{_libdir}/qt6/plugins/kget_kcms/kcm_kget_multisegkiofactory.so | |
141 | %{_datadir}/kio/servicemenus/kget_plugin.desktop |