Move find_lang {name} to install, fix not found {name}.lang if disable check build

This commit is contained in:
dwl301 2023-03-02 12:29:45 +08:00
parent 6445696c26
commit aa0715e1f5

View File

@ -15,7 +15,7 @@
Name: gnome-photos
Version: 43.0
Release: 1
Release: 2
Summary: Access, organize and share your photos on GNOME
License: GPLv3+ and LGPLv2+
URL: https://wiki.gnome.org/Apps/Photos
@ -94,12 +94,12 @@ This package contains the installable tests for %{name}.
%install
%meson_install
%find_lang %{name} --with-gnome
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Photos.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%find_lang %{name} --with-gnome
%files -f %{name}.lang
%license COPYING
%{_bindir}/%{name}
@ -123,6 +123,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%{_datadir}/installed-tests
%changelog
* Thu Mar 02 2023 wenlong ding <wenlong.ding@turbolinux.com.cn> - 43.0-2
- Move '%%find_lang %{name}' to %%install, fix not found %{name}.lang if disable %%check build
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 43.0-1
- Update to 43.0