use %find_lang macro [release 2.1.0-2mamba;Sat Nov 09 2024]
This commit is contained in:
parent
7a6795d942
commit
c8426a0963
@ -1,6 +1,6 @@
|
||||
Name: libfm-qt
|
||||
Version: 2.0.2
|
||||
Release: 1mamba
|
||||
Version: 2.1.0
|
||||
Release: 2mamba
|
||||
Summary: Qt port of libfm, a library providing components to build desktop file managers which belongs to LXDE
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -11,6 +11,9 @@ Source: https://github.com/lxqt/libfm-qt.git/%{version}/libfm-qt-%{versio
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libQt6Core
|
||||
BuildRequires: libQt6Gui
|
||||
BuildRequires: libQt6Widgets
|
||||
BuildRequires: libexif-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libglib-devel
|
||||
@ -64,17 +67,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)
|
||||
@ -103,6 +100,12 @@ done
|
||||
%{_datadir}/mime/packages/libfm-qt6-mimetypes.xml
|
||||
|
||||
%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
|
||||
|
||||
* Thu May 09 2024 Automatic Build System <autodist@openmamba.org> 2.0.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user