[torrent-file-editor] Added AppData file
ivanromanov
ivanromanov at fedoraproject.org
Sun Jan 25 11:47:53 UTC 2015
commit 5f1d05e176eb771b0104168b98e5634d9d4f5be9
Author: Ivan Romanov <drizt at land.ru>
Date: Sun Jan 25 16:48:20 2015 +0500
Added AppData file
torrent-file-editor-appdata.patch | 96 +++++++++++++++++++++++++++++++++++++
torrent-file-editor.spec | 13 ++++-
2 files changed, 107 insertions(+), 2 deletions(-)
---
diff --git a/torrent-file-editor-appdata.patch b/torrent-file-editor-appdata.patch
new file mode 100644
index 0000000..907280d
--- /dev/null
+++ b/torrent-file-editor-appdata.patch
@@ -0,0 +1,96 @@
+From d8833f10c67fdc436bf7af7ac4fbd7c14e34521b Mon Sep 17 00:00:00 2001
+From: Ivan Romanov <drizt at land.ru>
+Date: Sun, 25 Jan 2015 16:33:10 +0500
+Subject: [PATCH] Added AppData file
+
+AppData file allows to user to look screenshots and translaed
+descriptions before app installing.
+AppData specification: http://people.freedesktop.org/~hughsient/appdata/
+
+Fixed #1.
+---
+ CMakeLists.txt | 1 +
+ torrent-file-editor.appdata.xml | 59 +++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 60 insertions(+)
+ create mode 100644 torrent-file-editor.appdata.xml
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a7eb835..1fa40bf 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -115,6 +115,7 @@ add_subdirectory(translations)
+ if(UNIX AND NOT APPLE)
+ install(TARGETS ${PROJECT_NAME} DESTINATION bin)
+ install(FILES torrent-file-editor.desktop DESTINATION share/applications)
++ install(FILES torrent-file-editor.appdata.xml DESTINATION share/appdata)
+ install(FILES icons/app_16.png DESTINATION share/icons/hicolor/16x16/apps RENAME torrent-file-editor.png)
+ install(FILES icons/app_32.png DESTINATION share/icons/hicolor/32x32/apps RENAME torrent-file-editor.png)
+ install(FILES icons/app_48.png DESTINATION share/icons/hicolor/48x48/apps RENAME torrent-file-editor.png)
+diff --git a/torrent-file-editor.appdata.xml b/torrent-file-editor.appdata.xml
+new file mode 100644
+index 0000000..8f304bf
+--- /dev/null
++++ b/torrent-file-editor.appdata.xml
+@@ -0,0 +1,59 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++ <id>torrent-file-editor.desktop</id>
++ <name>Torrent File Editor</name>
++ <summary>Edit and create .torrent files</summary>
++ <summary xml:lang="ru">Редактируйте и создавайте .torrent файлы</summary>
++ <developer_name>Ivan Romanov</developer_name>
++ <description>
++ <p>
++ Qt based GUI tool designed to create and edit .torrent files.
++ This shows full content of .torrent file and allow to change any fields.
++ </p>
++ <p xml:lang="ru">
++ Основаное на Qt приложение позволяет создавать и редактировать .torrent файлы.
++ Оно показывает полное содержание .torrent файлов и позволяет менять любые значения.
++ </p>
++ <p>
++ The main features.
++ </p>
++ <p xml:lang="ru">
++ Основные возможности.
++ </p>
++ <ul>
++ <li>Create .torrent file from scratch</li>
++ <li>Edit .torrent file in user-friendly way</li>
++ <li>Edit .torrent file in JSON format</li>
++ <li>Add, remove and interchange files in .torrent file</li>
++ <li>Support for codings</li>
++ <li xml:lang="ru">Создание и редактирование .torrent файлов с нуля</li>
++ <li xml:lang="ru">Редактирование .torrent файлов в формате древовидной структуры</li>
++ <li xml:lang="ru">Редактирование .torrent файлов в JSON-формате</li>
++ <li xml:lang="ru">Добавление и удаление файлов, а также изменение их порядка в .torrent файле</li>
++ <li xml:lang="ru">Поддержка кодировок</li>
++ </ul>
++ </description>
++ <metadata_license>CC0-1.0</metadata_license>
++ <project_license>GPL-3.0+</project_license>
++ <url type="bugtracker">https://github.com/drizt/torrent-file-editor/issues</url>
++ <url type="homepage">https://sourceforge.net/projects/torrent-file-editor/</url>
++ <screenshots>
++ <screenshot type="default">
++ <caption>The Main tab and About dialog</caption>
++ <image height="608" width="1223">https://a.fsdn.com/con/app/proj/torrent-file-editor/screenshots/Selection_113.png</image>
++ </screenshot>
++ <screenshot>
++ <caption>The Files tab</caption>
++ <image height="608" width="1223">https://a.fsdn.com/con/app/proj/torrent-file-editor/screenshots/Selection_114.png</image>
++ </screenshot>
++ <screenshot>
++ <caption>The Tree tab</caption>
++ <image height="608" width="1223">https://a.fsdn.com/con/app/proj/torrent-file-editor/screenshots/Selection_115.png</image>
++ </screenshot>
++ <screenshot>
++ <caption>The Raw tab</caption>
++ <image height="608" width="1223">https://a.fsdn.com/con/app/proj/torrent-file-editor/screenshots/Selection_116.png</image>
++ </screenshot>
++ </screenshots>
++ <updatecontact>drizt at land.ru</updatecontact>
++</component>
+--
+1.9.3
+
diff --git a/torrent-file-editor.spec b/torrent-file-editor.spec
index db1aedd..1dcb3ef 100644
--- a/torrent-file-editor.spec
+++ b/torrent-file-editor.spec
@@ -1,17 +1,19 @@
Name: torrent-file-editor
Version: 0.1.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Qt based GUI tool designed to create and edit .torrent files
License: GPLv3+
URL: http://sf.net/projects/%{name}
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0: torrent-file-editor-appdata.patch
BuildRequires: cmake
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QJson)
BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
# Package puts icons to hicolor-icon-theme folders
Requires: hicolor-icon-theme
@@ -30,6 +32,7 @@ Features
%prep
%setup -q
+%patch0 -p1
%build
%cmake
@@ -43,6 +46,9 @@ make %{?_smp_mflags}
# so it need only to check this allready installed file
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+# Check AppData file
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+
%post
# Desktop file has MimeType field. Need to update MIME types database.
/usr/bin/update-desktop-database &> /dev/null || :
@@ -66,9 +72,12 @@ fi
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
-
+%{_datadir}/appdata/%{name}.appdata.xml
%changelog
+* Sun Jan 25 2015 Ivan Romanov <drizt at land.ru> - 0.1.0-4
+- Added AppData file
+
* Sun Dec 21 2014 Ivan Romanov <drizt at land.ru> - 0.1.0-3
- corrected updating icon cache
- added updating MIME type database
More information about the scm-commits
mailing list