use %find_lang macro [release 2.1.0-2mamba;Sat Nov 09 2024]

This commit is contained in:
Silvan Calarco 2024-11-13 22:54:46 +01:00
parent 60c50198a6
commit a6117ef8d5

View File

@ -1,6 +1,6 @@
Name: liblxqt Name: liblxqt
Version: 2.0.0 Version: 2.1.0
Release: 1mamba Release: 2mamba
Summary: The core library of LXQt providing essential functionality needed by nearly all of its components Summary: The core library of LXQt providing essential functionality needed by nearly all of its components
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -11,6 +11,11 @@ Source: https://github.com/lxqt/liblxqt.git/%{version}/liblxqt-%{version}
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libQt6Core
BuildRequires: libQt6DBus
BuildRequires: libQt6Gui
BuildRequires: libQt6Widgets
BuildRequires: libQt6Xml
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXScrnSaver-devel BuildRequires: libXScrnSaver-devel
BuildRequires: libgcc BuildRequires: libgcc
@ -59,17 +64,11 @@ This package contains utility applications for %{name}.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build %makeinstall -C build
find %{buildroot}/usr/share/*/translations/ -name *.qm | \ %find_lang %{name} --with-qt
while read line; do
bn=`echo ${line}|cut -d_ -f2-3`
echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang
done
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -94,6 +93,12 @@ done
%{_datadir}/lxqt/power.conf %{_datadir}/lxqt/power.conf
%changelog %changelog
* Sat Nov 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- use %find_lang macro
* Fri Nov 08 2024 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
- automatic version update by autodist
* Wed Apr 24 2024 Automatic Build System <autodist@openmamba.org> 2.0.0-1mamba * Wed Apr 24 2024 Automatic Build System <autodist@openmamba.org> 2.0.0-1mamba
- automatic version update by autodist - automatic version update by autodist