Add metainfo.xml file.

This commit is contained in:
Roman Telezhynskyi 2023-01-13 17:12:13 +02:00
parent 78076e6dbf
commit 769b11926a
7 changed files with 121 additions and 3 deletions

View File

@ -5,7 +5,7 @@ Valentina Web page: https://smart-pattern.com.ua/
Wiki: https://wiki.valentinaproject.org Wiki: https://wiki.valentinaproject.org
Valentina main repository: https://gitlab.com/smart-pattern/valentina Valentina main repository: https://gitlab.com/smart-pattern/valentina
PPA for Ubuntu (develop): https://launchpad.net/~dismine/+archive/valentina-dev PPA for Ubuntu (develop): https://launchpad.net/~dismine/+archive/valentina-dev
Help translate https://www.transifex.com/organization/valentina Help translate https://explore.transifex.com/valentina/valentina-project/
Valentina Valentina
========== ==========

View File

@ -16,3 +16,4 @@ usr/share/icons/hicolor/256x256/mimetypes/*
usr/share/icons/hicolor/512x512/apps/* usr/share/icons/hicolor/512x512/apps/*
usr/share/icons/hicolor/512x512/mimetypes/* usr/share/icons/hicolor/512x512/mimetypes/*
usr/share/applications/* usr/share/applications/*
usr/share/metainfo/*

View File

@ -23,6 +23,9 @@ BuildRequires: qt5-qtxmlpatterns-devel >= 5.4.0
BuildRequires: qt5-qtsvg-devel >= 5.4.0 BuildRequires: qt5-qtsvg-devel >= 5.4.0
BuildRequires: qt5-qttools-devel >= 5.4.0 BuildRequires: qt5-qttools-devel >= 5.4.0
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
Requires: qt5-qtsvg >= 5.4.0 Requires: qt5-qtsvg >= 5.4.0
Requires: qt5-qtbase-gui >= 5.4.0 Requires: qt5-qtbase-gui >= 5.4.0
Requires: qt5-qtxmlpatterns >= 5.4.0 Requires: qt5-qtxmlpatterns >= 5.4.0
@ -172,6 +175,12 @@ cp dist/debian/valentina.mime dist/debian/%{name} &&
%suse_update_desktop_file -r puzzle Utility Applet %suse_update_desktop_file -r puzzle Utility Applet
%endif %endif
%check
appstream-util validate-relax --nonet "%{buildroot}%{_datadir}/metainfo/ua.com.smart-pattern.valentina.metainfo.xml"
desktop-file-validate %{buildroot}%{_datadir}/applications/ua.com.smart-pattern.valentina.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/ua.com.smart-pattern.tape.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/ua.com.smart-pattern.puzzle.desktop
%post %post
/sbin/ldconfig /sbin/ldconfig
update-desktop-database &> /dev/null ||: update-desktop-database &> /dev/null ||:
@ -219,6 +228,7 @@ fi
%{_datadir}/applications/ua.com.smart-pattern.valentina.desktop %{_datadir}/applications/ua.com.smart-pattern.valentina.desktop
%{_datadir}/applications/ua.com.smart-pattern.tape.desktop %{_datadir}/applications/ua.com.smart-pattern.tape.desktop
%{_datadir}/applications/ua.com.smart-pattern.puzzle.desktop %{_datadir}/applications/ua.com.smart-pattern.puzzle.desktop
%{_datadir}/metainfo/ua.com.smart-pattern.valentina.metainfo.xml
%{_datadir}/icons/hicolor %{_datadir}/icons/hicolor

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2023 Roman Telezhynskyi dismine@gmail.com -->
<component type="desktop">
<id>ua.com.smart-pattern.valentina.desktop</id>
<launchable type="desktop-id">ua.com.smart-pattern.valentina.desktop</launchable>
<name>Valentina</name>
<summary>Provides a cross-platform patternmaking program which allows designers to create and model patterns of clothing</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<description>
<p>
Valentina is a cross-platform patternmaking program which allows designers
to create and model patterns of clothing. This software allows pattern
creation, using either standard sizing tables or an individuals set of
measurements. It blends new technologies with traditional methods to create
a unique pattern making tool.
</p>
</description>
<categories>
<category>Graphics</category>
</categories>
<url type="homepage">https://smart-pattern.com.ua/valentina/download/</url>
<url type="bugtracker">https://gitlab.com/smart-pattern/valentina/-/issues</url>
<url type="translate">https://explore.transifex.com/valentina/valentina-project/</url>
<url type="contact">https://smart-pattern.com.ua/contact/</url>
<url type="vcs-browser">https://gitlab.com/smart-pattern/valentina</url>
<url type="contribute">https://smart-pattern.com.ua/valentina/contribute/</url>
<developer_name>Roman Telezhynskyi</developer_name>
<update_contact>contact@smart-pattern.com.ua</update_contact>
<content_rating type="oars-1.1" />
<releases>
<release version="0.7.53" type="development">
<description>
<p>
This is a development release in the 0.7 series.
</p>
<ul>
<li>Fix layout sheet export with empty name.</li>
<li>Fix visualization for tool Point from circle and tangent.</li>
<li>Fix loading background image.</li>
<li>Puzzle: message "Invalid version: Max supported version 0.1.2" when opening 0.1.1 file in Val 0.7.52.</li>
<li>Fix export measurement separator to CSV.</li>
<li>Fix option Hide labels.</li>
<li>Improve segmenting a curve for calculating a piece path.</li>
<li>[smart-pattern/valentina#184] Fix incorrect seam allowance.</li>
<li>Export area of piece in Final measurements.</li>
<li>New option Show accuracy radius.</li>
<li>New option Interactive tools.</li>
<li>Improve error messages while import CSV data.</li>
<li>Fix regression in dialog Known measurements.</li>
</ul>
</description>
<issues>
<issue url="https://gitlab.com/smart-pattern/valentina/-/issues/187">valentina#187</issue>
<issue url="https://gitlab.com/smart-pattern/valentina/-/issues/189">valentina#189</issue>
</issues>
</release>
</releases>
<release version="0.7.52" type="development" date="2020-09-12">
<description>
<p>
This is a development release in the 0.7 series.
</p>
<ul>
<li>Fix crash when default locale is ru.</li>
<li>Puzzle app. Fix incorrect update of a layout piece.</li>
<li>Fix visualization for tool Point of intersection line and axis.</li>
<li>Improved curve segment warnings.</li>
<li>Tape app. Add action Add separator to menu.</li>
<li>Tape app. Fix crash after switching language.</li>
<li>Fix Valentina app crash after canceling a tool.</li>
<li>Puzzle app. Fix reading a piece name.</li>
<li>Fix warning while segmenting flipped arc.</li>
<li>Tape app. "Export from existing ..." now supports multisize measurements.</li>
<li>Fix main path validation. False positive double curve.</li>
<li>Fix Setup multisize measurements dialog. Improved handling Height dimension.</li>
<li>Fix updating dimension labels in Valentina app.</li>
<li>Fix menu on Mac OS X.</li>
<li>Add function's argument template with name in the Formula Wizard.</li>
<li>Unit type for increments.</li>
<li>Support for options Force Flipping and Forbid Flipping in Puzzle.</li>
<li>Remember selected dimension values.</li>
<li>Fix segmenting a simple curve.</li>
<li>Fix export tiled pdf on Mac OS.</li>
<li>Improve visualization for tools.</li>
<li>Fix calculating an elliptical arc.</li>
<li>Enable Approximation scale option for Elliptical arc.</li>
<li>Fix bug in seam allowance.</li>
<li>Allow resizing Spline path dialog.</li>
<li>Improve highlighting file in file browser for Linux.</li>
</ul>
</description>
</release>
</releases>
</component>

View File

@ -25,8 +25,7 @@ VApp {
name: "freedesktop" name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator()) prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
files: [ files: [
"ua.com.smart-pattern." + product.targetName + ".desktop", "ua.com.smart-pattern." + product.targetName + ".desktop"
"ua.com.smart-pattern." + product.targetName + ".metainfo.xml"
] ]
} }

View File

@ -158,6 +158,10 @@ unix{
desktop.files += ../../../dist/ua.com.smart-pattern.tape.desktop \ desktop.files += ../../../dist/ua.com.smart-pattern.tape.desktop \
desktop.files += ../../../dist/ua.com.smart-pattern.puzzle.desktop desktop.files += ../../../dist/ua.com.smart-pattern.puzzle.desktop
# .metainfo.xml file
metainfo.path = $$DATADIR/metainfo/
metainfo.files += ../../../dist/ua.com.smart-pattern.$${TARGET}.metainfo.xml
# logo # logo
hicolor_48_apps.path = $$DATADIR/icons/hicolor/48x48/apps/ hicolor_48_apps.path = $$DATADIR/icons/hicolor/48x48/apps/
hicolor_48_apps.files += \ hicolor_48_apps.files += \
@ -245,6 +249,7 @@ unix{
tape \ tape \
puzzle \ puzzle \
desktop \ desktop \
metainfo \
hicolor_48_apps \ hicolor_48_apps \
hicolor_48_mimetypes \ hicolor_48_mimetypes \
hicolor_64_apps \ hicolor_64_apps \

View File

@ -209,6 +209,14 @@ VToolApp {
qbs.installDir: buildconfig.installBinaryPath qbs.installDir: buildconfig.installBinaryPath
} }
Group {
name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
files: [
"ua.com.smart-pattern." + product.targetName + ".metainfo.xml"
]
}
Group { Group {
name: "48x48/apps" name: "48x48/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "apps", FileInfo.pathSeparator()) prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "apps", FileInfo.pathSeparator())