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