diff --git a/.abf.yml b/.abf.yml index 7bcb72c..2ef22dc 100644 --- a/.abf.yml +++ b/.abf.yml @@ -2,3 +2,4 @@ removed_sources: android-file-transfer-linux-2.2.tar.gz: feb7c7a2abdc653bb20502f2d78c38a6071aa617 sources: android-file-transfer-linux-2.3.tar.gz: e1619f0b9f11fdb7e04ef06a445e82902887ad00 + android-file-transfer.appdata.xml: c6cb8c6c35eb82da77e3ce8e74e63e8b2977922f diff --git a/android-file-transfer.spec b/android-file-transfer.spec index 5f6f378..73e17e8 100644 --- a/android-file-transfer.spec +++ b/android-file-transfer.spec @@ -3,12 +3,16 @@ Summary: Interactive MTP client with Qt GUI Name: android-file-transfer Version: 2.3 -Release: 1 +Release: 2 License: GPLv2+ Group: File tools Url: https://github.com/whoozle/android-file-transfer-linux/ # From git by tag https://github.com/whoozle/android-file-transfer-linux/ Source0: %{name}-linux-%{version}.tar.gz +# Provided upstream by the developer : +# https://github.com/whoozle/android-file-transfer-linux/commit/ada01cf7bc57fcfb99f540cc098e5393937a0436 +Source1: android-file-transfer.appdata.xml + BuildRequires: cmake BuildRequires: imagemagick BuildRequires: pkgconfig(fuse) @@ -16,8 +20,7 @@ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: desktop-file-utils -# Turned off by default since 2.0 -#BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: appstream-util %description Interactive MTP client with Qt GUI. @@ -35,6 +38,7 @@ Interactive MTP client with Qt GUI. %prep %setup -qn %{name}-linux-%{version} +cp -R %{SOURCE1} android-file-transfer.appdata.xml %build %cmake_qt5 @@ -56,27 +60,6 @@ done #appdata mkdir -p %{buildroot}%{_appdatadir} -cat > %{buildroot}%{_appdatadir}/%{name}.appdata.xml << EOF - - - %{name}.desktop - GPLv2+ - %{name} - Interactive MTP client with Qt5 GUI - -

- -Simple Qt UI with progress dialogs. - -FUSE wrapper (If you'd prefer mounting your device), - supporting partial read/writes, allowing instant access to your files. - -No file size limits. - -Automatically renames album cover to make it visible from media player. - -No extra dependencies (e.g. libptp/libmtp). - -Available as static/shared library. - -Simple CLI tool. -

-
- - vladimir.menshakov_at_gmail.com -
-EOF +cp -R %{SOURCE1} %{buildroot}%{_appdatadir}/android-file-transfer.appdata.xml +appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml