10 Commits

Author SHA256 Message Date
218b788ef7 Accepting request 1305683 from KDE:Frameworks5
OBS-URL: https://build.opensuse.org/request/show/1305683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=54
2025-09-24 13:22:20 +00:00
Christophe Marin
1462fae3d0 Accepting request 1305675 from GNOME:Next
- Re-enable test suite: inject the nobwrap.helper from bubblewrap
  into ~/bin
- Add glycin-loaders and bubblewrap BuildRequires: needed to pass
  the test suite

- Do not run test suite: gdk-image laoders have switched to
  glycin-loaders, which use bubblewrap. bwrap in turn is not
  functional in OBS.
- Drop gdk-pixbuf-loader-rsvg BuildRequires: only needed by the
  test suite.

OBS-URL: https://build.opensuse.org/request/show/1305675
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=134
2025-09-18 07:26:48 +00:00
7c66fd70a2 Accepting request 1299458 from KDE:Frameworks5
Update to 1.0.6

OBS-URL: https://build.opensuse.org/request/show/1299458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=53
2025-08-16 18:36:57 +00:00
Christophe Marin
6744589f82 1.0.6
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=132
2025-08-14 18:14:52 +00:00
e63a2c65fd Accepting request 1281899 from KDE:Frameworks5
OBS-URL: https://build.opensuse.org/request/show/1281899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=52
2025-06-04 18:27:33 +00:00
Christophe Marin
3e64e24054 - Make qt6 the default qt flavor and qt5 the flavor built
separately and disable the qt5 flavor in SLE16 where we don't
  want to have Qt5 libraries.

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=130
2025-06-02 12:21:58 +00:00
04fede2f94 Accepting request 1273709 from KDE:Frameworks5
Update to 1.0.5

OBS-URL: https://build.opensuse.org/request/show/1273709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=51
2025-05-01 13:22:41 +00:00
Christophe Marin
20598eb3ed Update to 0.59
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=128
2025-04-30 15:31:45 +00:00
2def405793 Accepting request 1255545 from KDE:Frameworks5
OBS-URL: https://build.opensuse.org/request/show/1255545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/AppStream?expand=0&rev=50
2025-03-25 21:07:41 +00:00
Christophe Marin
5385790162 Accepting request 1255437 from home:msmeissn:branches:KDE:Frameworks5
- build with PIE mode also when using gcc13 (bsc#1239941)

OBS-URL: https://build.opensuse.org/request/show/1255437
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=126
2025-03-24 09:20:01 +00:00
8 changed files with 209 additions and 105 deletions

Binary file not shown.

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE0zo/DKFrCsxRpgc4SUyKX79N7OsFAmdWHykACgkQSUyKX79N
7OsXYA/+NB7UtHMYck//r/7r//RmCZ1fN8TTAEjRrf1qnECuvEh0Tpm3J+pytN6C
Caczv36ZM7pdr/W8ivLXmExjiielo38cG5rpiL1qkt2KNMq1Ub2dnDu36KNI5vvb
G1T7YOIpXpgEgi9gChcpksZ8pFN26qEDrogjG2+qck7faOglAUox5lp9muKBoEsM
UkAKT49slQEGeucWffKnIF/wxX902jtbrvcdIyrDuhadiCa4KK7KJ9VcJ0j+mTWH
6erJ3DOhx8+bRaqxeQDCfZKhkxvEQ1Rt2fOk4qg3TGPhwS42mTNg5C8WHXgT44Zg
p2ph998TJsUz5ucLfbir05fnhXOyBbALRndG65JNYCloPctDF0bEC1rK9bJbdHm5
rJlf9J+cC5rBV936jh5fC0qwz0u8T31V3Dfs8VY0aFidMizl78qflUU0pod/ppNj
9Wrw/7q8HWStMQYflSNJ0niXlzRb//PCodjJ7UbxaLTyBukVOtpHCABklKc9OA4y
me0ks1vvgomy91iybnjA/kk/0UaZOIqkjAfU7vdxGy8vmmigEt0+WvbN7e1xRgpT
bDF0V9POWEE69sVLCw76GamkgIYID9lEa0CRmdxfr+xnrId+pywjfdwINK6W9vsn
3NyVMicP3vKMg1Cztfp2xsJcZnCXTOfpGOVjTuS1MZBSPC+y6Tw=
=I0fK
-----END PGP SIGNATURE-----

3
AppStream-1.0.6.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db4439db6a33de3ca1041473501610844ddf1b72ae23016c05242c681c380b4d
size 2736948

View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE0zo/DKFrCsxRpgc4SUyKX79N7OsFAmid+LkACgkQSUyKX79N
7OukYhAAiRYdeZqsNCvWRGjI/lWaSc/zLuCvaNJ7G5oUPY8NmPjCvh6uPFnzaeJg
Yit5gt5uS8TyanI8sPzO1aDa3OZ8ERixU8NMsgGzFQZpTJkC+HzcTV+pG/zQ5ilD
qW7Mu954EwIPFu5gOybqx6HKLeuC+NkucAZpeUd3YQWTvzLCEOLoraFDZw2uP+1w
nxZPxox/SSsgY050z1e4nGewUyblqHtOFC5QpXFz2s9BWrFpKeDzJHxY8ejtBq8p
wxkOUYMGPe+smYv+u3hXnpDdPmBSXv2RYa1O0trkIaNPjRJUTis56PcgGzNsHYVA
DBUOoNgeTMqpsoBmdLE1gF6wlV7j0dMF0m/xTB5gQocS7TtUCtCQzZcZ8MNjtOwI
WRXtvViHXz1B1l8p8Zmua7nVn99HJ2lo/gaynDoftg71pT/dNk1ASHDycuz/sVqf
AWZrQNV8lIM+jdaujSfsepqDFZrgV0YlBABQJHXQpLwRKYuCjbNZvkqDY1cHvQvK
1oZPTVDt2eWKvJl6aBvY1BjH7koXl6ncQtKJ35b3M8suJseA5pC1Igj763pbtvaa
LiP03I7Ca5Xc6B+t8wfJKb+t1r/WaHdJWwUdvUnwXbGht6mMYRUzTuLgPwUFQj3s
uCW2LIUz5d2CK2qmABa824IbSQVuc5bN4qf4+2skTWgXK4oNffk=
=Uleo
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,88 @@
-------------------------------------------------------------------
Wed Sep 10 13:43:47 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Re-enable test suite: inject the nobwrap.helper from bubblewrap
into ~/bin
- Add glycin-loaders and bubblewrap BuildRequires: needed to pass
the test suite
-------------------------------------------------------------------
Tue Sep 9 11:14:09 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Do not run test suite: gdk-image laoders have switched to
glycin-loaders, which use bubblewrap. bwrap in turn is not
functional in OBS.
- Drop gdk-pixbuf-loader-rsvg BuildRequires: only needed by the
test suite.
-------------------------------------------------------------------
Thu Aug 14 18:14:14 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 1.0.6
Features:
* compose: Accept .ttc font files
* compose: Give font icons a background shape
* compose: Render more elaborate font sample cards
Bugfixes:
* compose: Insert screenshot tags for auto-generated font screenshots
* compose: Trim substring when truncating font sample text
* meson: don't override appstreamcli when cross-building
* compose: Prefer rendering font icon with "Regular" style
* compose: Sanitize font text samples before using them as icon
* Follow directory symlinks when looking for Flatpak data
* compose: Drop bad private-header include in public header
* compose: Drop unneeded const declaration for GKeyFile
* Fix typo that prevented video metadata from being composed properly
-------------------------------------------------------------------
Fri May 30 08:17:19 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
- Make qt6 the default qt flavor and qt5 the flavor built
separately and disable the qt5 flavor in SLE16 where we don't
want to have Qt5 libraries.
-------------------------------------------------------------------
Wed Apr 30 15:23:00 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 1.0.5
Features:
* qt: Expose markup conversion utils
* desktop-styles: Add android and iOS
* validator: Check for xml:lang="en" being used on description
template elements
* validator: Flag cases of raw text in "description" elements
* metadata: Add more known extensions into
as_metadata_file_guess_style()
Specification:
* docs: Clarify that the style segment of a screenshot
environment is optional
* docs: Explain consequences of defining an icon for
desktop-app metainfo
* docs: Clarify that description content must be in p/li
elements
Bugfixes:
* validator: mark as_validator_issue_tag_list static
* docs: Add workaround for gi-docgen misnaming devhelp files
* compose: Do not permit SVG images as screenshots
* compose: Don't "forget" to scan remaining paths when
re-encountering a dir
* pool: Try explicit singular term match if we only have
low-quality tokens
* utils: Provide compatibility with Fedora icon tarballs when
installing them
* utils: Remove leftover g_chmod()
* zstd-decompressor: Pass output/written data when decompression
finished
* utils: Expect a dash in icons file name
* utils: Recognize .yml* and .yaml* file extension variants,
and .zst extension
* utils: Rename the appstream file when re-saving it on install
-------------------------------------------------------------------
Sun Mar 23 19:05:11 UTC 2025 - Marcus Meissner <meissner@suse.com>
- build with PIE mode also when using gcc13 (bsc#1239941)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 20 20:08:20 UTC 2024 - Christophe Marin <christophe@krop.fr> Fri Dec 20 20:08:20 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package AppStream # spec file for package AppStream
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,16 @@
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%flavor" == "qt6" %if "%flavor" == "qt5"
%define pkg_suffix -qt6
%define qt6 1
%define min_qt_version 6.2.4
%else
%define min_qt_version 5.15 %define min_qt_version 5.15
%define qt5 1
%define pkg_suffix -qt5
%if 0%{?suse_version} == 1600 && ! 0%{?is_opensuse}
ExclusiveArch: donotbuild
%endif
%else
%define min_qt_version 6.2.4
%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse} || 0%{?sle_version} >= 150600 || 0%{?suse_version} > 1500 %if 0%{?sle_version} >= 150400 && 0%{?is_opensuse} || 0%{?sle_version} >= 150600 || 0%{?suse_version} > 1500
%bcond_without vala %bcond_without vala
%endif %endif
@@ -36,7 +40,7 @@
%define libAppStreamQt_sover 3 %define libAppStreamQt_sover 3
%define libappstream_compose_sover 0 %define libappstream_compose_sover 0
Name: AppStream%{?pkg_suffix} Name: AppStream%{?pkg_suffix}
Version: 1.0.4 Version: 1.0.6
Release: 0 Release: 0
Summary: Tools and libraries to work with AppStream metadata Summary: Tools and libraries to work with AppStream metadata
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@@ -50,21 +54,27 @@ BuildRequires: cairo-devel
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
%if %{with gcc13} %if %{with gcc13}
BuildRequires: gcc13 BuildRequires: gcc13
BuildRequires: gcc13-PIE
BuildRequires: gcc13-c++ BuildRequires: gcc13-c++
%endif %endif
%if 0%{?suse_version} > 1600
BuildRequires: bubblewrap
BuildRequires: glycin-loaders
%else
BuildRequires: gdk-pixbuf-loader-rsvg BuildRequires: gdk-pixbuf-loader-rsvg
%endif
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: gperf BuildRequires: gperf
BuildRequires: itstool BuildRequires: itstool
BuildRequires: meson >= 0.59 BuildRequires: meson >= 0.59
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xsltproc BuildRequires: xsltproc
%if 0%{?qt6} %if 0%{?qt5}
BuildRequires: pkgconfig(Qt6Core) >= %{min_qt_version}
BuildRequires: pkgconfig(Qt6Test) >= %{min_qt_version}
%else
BuildRequires: pkgconfig(Qt5Core) >= %{min_qt_version} BuildRequires: pkgconfig(Qt5Core) >= %{min_qt_version}
BuildRequires: pkgconfig(Qt5Test) >= %{min_qt_version} BuildRequires: pkgconfig(Qt5Test) >= %{min_qt_version}
%else
BuildRequires: pkgconfig(Qt6Core) >= %{min_qt_version}
BuildRequires: pkgconfig(Qt6Test) >= %{min_qt_version}
%endif %endif
BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-2.0)
@@ -86,34 +96,7 @@ BuildRequires: vala
AppStream-Core makes it easy to access application information from the AppStream-Core makes it easy to access application information from the
AppStream database over a nice GObject-based interface. AppStream database over a nice GObject-based interface.
%if 0%{?qt6} %if 0%{?qt5}
%package -n libAppStreamQt%{libAppStreamQt_sover}
Summary: Qt 6 bindings for AppStream
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libAppStreamQt%{libAppStreamQt_sover}
The Qt 6 bindings for AppStream.
%package -n appstream-qt6-devel
Summary: Header files for AppStream's Qt 6 bindings
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Requires: libAppStreamQt%{libAppStreamQt_sover} = %{version}
Requires: libappstream%{libappstream_sover} = %{version}
Conflicts: libAppStreamQt-devel < 1.0
%description -n appstream-qt6-devel
This package contains all necessary include files, libraries,
configuration files and development tools (with manual pages) needed to
compile and link applications using the Qt bindings for AppStream.
%else
%package -n libappstream%{libappstream_sover}
Summary: The main library for AppStream
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libappstream%{libappstream_sover}
The main library for AppStream.
%package -n libAppStreamQt5-%{libAppStreamQt_sover} %package -n libAppStreamQt5-%{libAppStreamQt_sover}
Summary: Qt 5 bindings for AppStream Summary: Qt 5 bindings for AppStream
License: GPL-2.0-or-later AND LGPL-2.1-or-later License: GPL-2.0-or-later AND LGPL-2.1-or-later
@@ -135,11 +118,43 @@ This package contains all necessary include files, libraries,
configuration files and development tools (with manual pages) needed to configuration files and development tools (with manual pages) needed to
compile and link applications using the Qt bindings for AppStream. compile and link applications using the Qt bindings for AppStream.
%else
%package -n libAppStreamQt%{libAppStreamQt_sover}
Summary: Qt 6 bindings for AppStream
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libAppStreamQt%{libAppStreamQt_sover}
The Qt 6 bindings for AppStream.
%package -n appstream-qt6-devel
Summary: Header files for AppStream's Qt 6 bindings
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Requires: libAppStreamQt%{libAppStreamQt_sover} = %{version}
Requires: libappstream%{libappstream_sover} = %{version}
Conflicts: libAppStreamQt-devel < 1.0
%description -n appstream-qt6-devel
This package contains all necessary include files, libraries,
configuration files and development tools (with manual pages) needed to
compile and link applications using the Qt bindings for AppStream.
%package -n libappstream%{libappstream_sover}
Summary: The main library for AppStream
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libappstream%{libappstream_sover}
The main library for AppStream.
%package compose %package compose
Summary: Support for appstreamcli compose Summary: Support for appstreamcli compose
License: GPL-2.0-or-later AND LGPL-2.1-or-later License: GPL-2.0-or-later AND LGPL-2.1-or-later
Requires: AppStream = %{version} Requires: AppStream = %{version}
%if 0%{?suse_version} > 1600
Requires: glycin-loaders
%else
Requires: gdk-pixbuf-loader-rsvg Requires: gdk-pixbuf-loader-rsvg
%endif
%description compose %description compose
This package contains all necessary files, libraries, This package contains all necessary files, libraries,
@@ -208,6 +223,11 @@ GObject introspection bindings for interfaces provided by AppStream.
%prep %prep
%autosetup -p1 -n %{rname}-%{version} %autosetup -p1 -n %{rname}-%{version}
%if 0%{?suse_version} > 1600
test -d ~/bin || mkdir ~/bin
cp %{_datadir}/doc/packages/bubblewrap/nobwrap.helper ~/bin/bwrap
chmod 755 ~/bin/bwrap
%endif
%build %build
%define common_options -Ddocs=false -Dapidocs=false -Dstemming=false %define common_options -Ddocs=false -Dapidocs=false -Dstemming=false
@@ -217,10 +237,10 @@ GObject introspection bindings for interfaces provided by AppStream.
%define build_vapi false %define build_vapi false
%endif %endif
%if 0%{?qt6} %if 0%{?qt5}
%define options -Dqt=true -Dqt-versions=6 -Dvapi=false -Dcompose=false -Dgir=false %define options -Dqt=true -Dqt-versions=5 -Dvapi=false -Dcompose=false -Dgir=false
%else %else
%define options -Dqt=true -Dqt-versions=5 -Dcompose=true -Dvapi=%{build_vapi} %define options -Dqt=true -Dqt-versions=6 -Dcompose=true -Dvapi=%{build_vapi}
%endif %endif
%if %{with gcc13} %if %{with gcc13}
@@ -237,8 +257,8 @@ export CC=gcc-13 CXX=g++-13
# Unneeded test file # Unneeded test file
rm -r %{buildroot}%{_datadir}/installed-tests rm -r %{buildroot}%{_datadir}/installed-tests
# Only keep the Qt6 library when using the qt6 flavor # Only keep the Qt5 library when using the qt5 flavor
%if 0%{?qt6} %if 0%{?qt5}
rm %{buildroot}%{_bindir}/appstreamcli rm %{buildroot}%{_bindir}/appstreamcli
rm %{buildroot}%{_libdir}/libappstream.so* rm %{buildroot}%{_libdir}/libappstream.so*
rm -r %{buildroot}%{_datadir}/{appstream,doc,gettext,locale,man,metainfo} rm -r %{buildroot}%{_datadir}/{appstream,doc,gettext,locale,man,metainfo}
@@ -249,26 +269,26 @@ rm -r %{buildroot}%{_libdir}/pkgconfig
%endif %endif
%check %check
export PATH=~/bin:$PATH
%meson_test %meson_test
%if 0%{?qt6} %if 0%{?qt5}
%ldconfig_scriptlets -n libAppStreamQt%{libAppStreamQt_sover} %ldconfig_scriptlets -n libAppStreamQt5-%{libAppStreamQt_sover}
%else %else
%ldconfig_scriptlets -n libappstream%{libappstream_sover} %ldconfig_scriptlets -n libappstream%{libappstream_sover}
%ldconfig_scriptlets -n libAppStreamQt5-%{libAppStreamQt_sover} %ldconfig_scriptlets -n libAppStreamQt%{libAppStreamQt_sover}
%ldconfig_scriptlets -n libappstream-compose%{libappstream_compose_sover} %ldconfig_scriptlets -n libappstream-compose%{libappstream_compose_sover}
%endif %endif
%if 0%{?qt6} %if 0%{?qt5}
%files -n libAppStreamQt%{libAppStreamQt_sover} %files -n libAppStreamQt5-%{libAppStreamQt_sover}
%{_libdir}/libAppStreamQt.so.%{libAppStreamQt_sover} %{_libdir}/libAppStreamQt5.so.%{libAppStreamQt_sover}
%{_libdir}/libAppStreamQt.so.%{version} %{_libdir}/libAppStreamQt5.so.%{version}
%files -n appstream-qt6-devel
%{_includedir}/AppStreamQt/
%{_libdir}/cmake/AppStreamQt/
%{_libdir}/libAppStreamQt.so
%files -n appstream-qt5-devel
%{_includedir}/AppStreamQt5/
%{_libdir}/cmake/AppStreamQt5/
%{_libdir}/libAppStreamQt5.so
%else %else
%files lang -f %{name}.lang %files lang -f %{name}.lang
@@ -287,14 +307,14 @@ rm -r %{buildroot}%{_libdir}/pkgconfig
%{_libdir}/libappstream.so.%{libappstream_sover} %{_libdir}/libappstream.so.%{libappstream_sover}
%{_libdir}/libappstream.so.%{version} %{_libdir}/libappstream.so.%{version}
%files -n libAppStreamQt5-%{libAppStreamQt_sover} %files -n libAppStreamQt%{libAppStreamQt_sover}
%{_libdir}/libAppStreamQt5.so.%{libAppStreamQt_sover} %{_libdir}/libAppStreamQt.so.%{libAppStreamQt_sover}
%{_libdir}/libAppStreamQt5.so.%{version} %{_libdir}/libAppStreamQt.so.%{version}
%files -n appstream-qt5-devel %files -n appstream-qt6-devel
%{_includedir}/AppStreamQt5/ %{_includedir}/AppStreamQt/
%{_libdir}/cmake/AppStreamQt5/ %{_libdir}/cmake/AppStreamQt/
%{_libdir}/libAppStreamQt5.so %{_libdir}/libAppStreamQt.so
%files compose %files compose
%{_datadir}/metainfo/org.freedesktop.appstream.compose.metainfo.xml %{_datadir}/metainfo/org.freedesktop.appstream.compose.metainfo.xml

View File

@@ -1,3 +1,3 @@
<multibuild> <multibuild>
<flavor>qt6</flavor> <flavor>qt5</flavor>
</multibuild> </multibuild>

View File

@@ -3,18 +3,18 @@ Author: Antonio Larrosa
--- ---
data/meson.build | 12 ++++++++++++ data/meson.build | 12 ++++++++++++
meson.build | 4 ++-- meson.build | 3 ++-
po/meson.build | 15 +++++++++++++++ po/meson.build | 15 +++++++++++++++
3 files changed, 29 insertions(+), 2 deletions(-) 3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/data/meson.build b/data/meson.build diff --git a/data/meson.build b/data/meson.build
index 7ae7a9b3..b9208821 100644 index 7ae7a9b..b920882 100644
--- a/data/meson.build --- a/data/meson.build
+++ b/data/meson.build +++ b/data/meson.build
@@ -24,6 +24,17 @@ metainfo_with_relinfo = custom_target('gen-output', @@ -24,6 +24,17 @@ metainfo_with_relinfo = custom_target('gen-output',
command : [ascli_exe, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@'] command : [ascli_exe, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@']
) )
+if meson.version().version_compare('<0.62') +if meson.version().version_compare('<0.62')
+metainfo_i18n = i18n.merge_file ( +metainfo_i18n = i18n.merge_file (
+ input: metainfo_with_relinfo, + input: metainfo_with_relinfo,
@@ -34,35 +34,34 @@ index 7ae7a9b3..b9208821 100644
install_dir: metainfo_dir, install_dir: metainfo_dir,
) )
+endif +endif
test('as-validate_metainfo.cli', test('as-validate_metainfo.cli',
ascli_exe, ascli_exe,
diff --git a/meson.build b/meson.build diff --git a/meson.build b/meson.build
index 4636789f..6742fc7c 100644 index ce84a77..e378bad 100644
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
project('AppStream', 'c', project('AppStream', 'c',
- meson_version: '>=0.62', - meson_version: '>=0.62',
+ meson_version: '>=0.59', + meson_version: '>=0.59',
default_options: ['c_std=c11', 'cpp_std=gnu++17'], default_options: ['c_std=gnu17', 'cpp_std=c++20'],
license: 'LGPL-2.1-or-later', license: 'LGPL-2.1-or-later',
@@ -107,7 +107,7 @@ add_project_arguments( @@ -73,6 +73,7 @@ if get_option('maintainer')
'-Werror=missing-include-dirs', '-Winline',
'-Werror=declaration-after-statement', '-Wno-error=comment',
'-Werror=format-security', '-Werror=format-security',
- + '-Werror=format',
+ '-Werror=format',
'-Wno-missing-field-initializers', # used in rsvg's headers, so we can not make this fatal yet
'-Wno-error=missing-field-initializers', '-Wno-error=expansion-to-defined',
'-Wno-unused-parameter',
diff --git a/po/meson.build b/po/meson.build diff --git a/po/meson.build b/po/meson.build
index e9ede195..f7c1d842 100644 index e9ede19..f7c1d84 100644
--- a/po/meson.build --- a/po/meson.build
+++ b/po/meson.build +++ b/po/meson.build
@@ -1,5 +1,19 @@ @@ -1,5 +1,19 @@
as_gettext_domain = 'appstream' as_gettext_domain = 'appstream'
+if meson.version().version_compare('<0.62') +if meson.version().version_compare('<0.62')
+i18n.gettext(as_gettext_domain, +i18n.gettext(as_gettext_domain,
@@ -86,8 +85,8 @@ index e9ede195..f7c1d842 100644
] ]
) )
+endif +endif
run_target ('make-linguas', run_target ('make-linguas',
command: ['sh', command: ['sh',
-- --
2.42.1 2.49.0