[Libosinfo] [osinfo-db-tools PATCH 1/4] mingw: Use %find_lang macro

Fabiano Fidêncio fidencio at redhat.com
Tue Mar 5 09:42:26 UTC 2019


Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 mingw-osinfo-db-tools.spec.in | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/mingw-osinfo-db-tools.spec.in b/mingw-osinfo-db-tools.spec.in
index 486492f..14e275c 100644
--- a/mingw-osinfo-db-tools.spec.in
+++ b/mingw-osinfo-db-tools.spec.in
@@ -74,22 +74,24 @@ information about operating systems for use with virtualization
 rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
 rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
 
-%files -n mingw32-osinfo-db-tools
+%find_lang osinfo-db-tools
+grep "%{mingw32_datadir}" osinfo-db-tools.lang > mingw32-osinfo-db-tools.lang
+grep "%{mingw64_datadir}" osinfo-db-tools.lang > mingw64-osinfo-db-tools.lang
+
+%files -n mingw32-osinfo-db-tools -f mingw32-osinfo-db-tools.lang
 %doc AUTHORS ChangeLog NEWS README
 %license COPYING
 %{mingw32_bindir}/osinfo-db-export.exe
 %{mingw32_bindir}/osinfo-db-import.exe
 %{mingw32_bindir}/osinfo-db-path.exe
 %{mingw32_bindir}/osinfo-db-validate.exe
-%{mingw32_datadir}/locale/*/LC_MESSAGES/osinfo-db-tools.mo
 
-%files -n mingw64-osinfo-db-tools
+%files -n mingw64-osinfo-db-tools -f mingw64-osinfo-db-tools.lang
 %doc AUTHORS ChangeLog NEWS README
 %license COPYING
 %{mingw64_bindir}/osinfo-db-export.exe
 %{mingw64_bindir}/osinfo-db-import.exe
 %{mingw64_bindir}/osinfo-db-path.exe
 %{mingw64_bindir}/osinfo-db-validate.exe
-%{mingw64_datadir}/locale/*/LC_MESSAGES/osinfo-db-tools.mo
 
 %changelog
-- 
2.20.1




More information about the Libosinfo mailing list