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

Christophe Fergeau cfergeau at redhat.com
Tue Mar 5 13:34:51 UTC 2019


On Tue, Mar 05, 2019 at 10:42:26AM +0100, Fabiano Fidêncio wrote:
> 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

Why not %mingw_find_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
> 
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20190305/ef476a92/attachment.sig>


More information about the Libosinfo mailing list