]>
Commit | Line | Data |
---|---|---|
010acf0c ER |
1 | # TODO |
2 | # - BUILD_QT_UI off bcond | |
3 | # - subpackages | |
4 | Summary: Android File Transfer for Linux | |
5 | Name: android-file-transfer | |
6 | Version: 3.4 | |
7 | Release: 0.1 | |
8 | License: LGPLv2.1 | |
9 | Group: X11/Applications | |
10 | Source0: https://github.com/whoozle/android-file-transfer-linux/archive/v%{version}/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 691142fdbea216676df27bfc94885f71 | |
12 | URL: https://whoozle.github.io/android-file-transfer-linux/ | |
6c6c3756 | 13 | BuildRequires: Qt5Widgets-devel |
010acf0c ER |
14 | BuildRequires: build-essential |
15 | BuildRequires: cmake | |
16 | BuildRequires: libfuse-devel | |
6c6c3756 | 17 | BuildRequires: libstdc++-devel |
010acf0c | 18 | BuildRequires: ninja |
6c6c3756 ER |
19 | BuildRequires: pkgconfig |
20 | BuildRequires: qt5-build | |
21 | BuildRequires: qt5-qmake | |
010acf0c ER |
22 | BuildRequires: readline-devel |
23 | BuildRequires: rpmbuild(macros) >= 1.727 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Android File Transfer for Linux - reliable MTP client with | |
28 | minimalistic UI similar to Android File Transfer for Mac. | |
29 | ||
30 | Features: | |
31 | - Simple Qt UI with progress dialogs. | |
32 | - FUSE wrapper (If you'd prefer mounting your device), supporting | |
33 | partial read/writes, allowing instant access to your files. | |
34 | - No file size limits. | |
35 | - Automatically renames album cover to make it visible from media | |
36 | player. | |
37 | - USB 'Zerocopy' support found in recent Linux kernel (no user/kernel | |
38 | data copying) | |
39 | - No extra dependencies (e.g. libptp/libmtp). | |
40 | - Available as static/shared library. | |
41 | - Command line tool (aft-mtp-cli) | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{name}-linux-%{version} | |
45 | ||
46 | %build | |
47 | install -d build | |
48 | cd build | |
49 | %cmake -G Ninja .. | |
50 | %ninja_build | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | %ninja_install -C build | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %attr(755,root,root) %{_bindir}/aft-mtp-cli | |
62 | %attr(755,root,root) %{_bindir}/aft-mtp-mount | |
63 | %attr(755,root,root) %{_bindir}/android-file-transfer | |
64 | %{_libdir}/libmtp-ng-static.a | |
65 | %{_desktopdir}/android-file-transfer.desktop | |
66 | %{_iconsdir}/hicolor/512x512/apps/android-file-transfer.png | |
67 | %{_datadir}/metainfo/android-file-transfer.appdata.xml |