[Libosinfo] [libosinfo PATCH 6/7] mingw: Use %find_Lang macro

Christophe Fergeau cfergeau at redhat.com
Tue Mar 5 13:52:48 UTC 2019


On Tue, Mar 05, 2019 at 10:37:54AM +0100, Fabiano Fidêncio wrote:
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
>  mingw-libosinfo.spec.in | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/mingw-libosinfo.spec.in b/mingw-libosinfo.spec.in
> index e99885c..14b4c60 100644
> --- a/mingw-libosinfo.spec.in
> +++ b/mingw-libosinfo.spec.in
> @@ -89,7 +89,11 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
>  rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc
>  rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
>  
> -%files -n mingw32-libosinfo
> +%find_lang osinfo-db-tools
> +grep "%{mingw32_datadir}" libosinfo.lang > mingw32-libosinfo.lang
> +grep "%{mingw64_datadir}" libosinfo.lang > mingw64-libosinfo.lang
> +

Probably can be %mingw_find_lang?

> +%files -n mingw32-libosinfo -f mingw32-libosinfo.lang
>  %doc AUTHORS ChangeLog COPYING.LIB NEWS README
>  %{mingw32_bindir}/osinfo-detect.exe
>  %{mingw32_bindir}/osinfo-install-script.exe
> @@ -103,9 +107,8 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
>  %dir %{mingw32_datadir}/libosinfo
>  %{mingw32_datadir}/libosinfo/usb.ids
>  %{mingw32_datadir}/libosinfo/pci.ids
> -%{mingw32_datadir}/locale/*/LC_MESSAGES/libosinfo.mo
>  
> -%files -n mingw64-libosinfo
> +%files -n mingw64-libosinfo -f mingw64-libosinfo.lang
>  %doc AUTHORS ChangeLog COPYING.LIB NEWS README
>  %{mingw64_bindir}/osinfo-detect.exe
>  %{mingw64_bindir}/osinfo-install-script.exe
> @@ -119,6 +122,5 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
>  %dir %{mingw64_datadir}/libosinfo
>  %{mingw64_datadir}/libosinfo/usb.ids
>  %{mingw64_datadir}/libosinfo/pci.ids
> -%{mingw64_datadir}/locale/*/LC_MESSAGES/libosinfo.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/243d2f08/attachment.sig>


More information about the Libosinfo mailing list