From c764cf961c71248001ca36726f1a7883fa213000 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sun, 15 Aug 2021 23:32:38 -0300 Subject: [PATCH] Updating windows package. --- win/x86_32/mingw32-lib3270.spec | 5 +++-- win/x86_64/mingw64-lib3270.spec | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/win/x86_32/mingw32-lib3270.spec b/win/x86_32/mingw32-lib3270.spec index 06b5806..254bfe2 100644 --- a/win/x86_32/mingw32-lib3270.spec +++ b/win/x86_32/mingw32-lib3270.spec @@ -44,6 +44,7 @@ BuildRoot: /var/tmp/%{name}-%{version} BuildRequires: autoconf >= 2.61 BuildRequires: automake +BuildRequires: libtool BuildRequires: gettext-devel BuildRequires: xz BuildRequires: fdupes @@ -66,7 +67,7 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ . #---[ Library ]------------------------------------------------------------------------------------------------------- %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) -%define MINOR_VERSION %(echo %{version} | cut -d. -f2) +%define MINOR_VERSION %(echo %{version} | cut -d. -f2 | cut -d+ -f1) %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} %package -n %{name}-%{_libvrs} @@ -111,7 +112,7 @@ make all %{?_smp_mflags} #%{_mingw64_makeinstall} make DESTDIR=%{buildroot} install -%_mingw32_find_lang %{_libname} langfiles +%_mingw32_find_lang %{_libname}-%{MAJOR_VERSION}.%{MINOR_VERSION} langfiles %fdupes %{buildroot} %files -n %{name}-%{_libvrs} -f langfiles diff --git a/win/x86_64/mingw64-lib3270.spec b/win/x86_64/mingw64-lib3270.spec index d06b444..057a8f5 100644 --- a/win/x86_64/mingw64-lib3270.spec +++ b/win/x86_64/mingw64-lib3270.spec @@ -44,6 +44,7 @@ BuildRoot: /var/tmp/%{name}-%{version} BuildRequires: autoconf >= 2.61 BuildRequires: automake +BuildRequires: libtool BuildRequires: gettext-devel BuildRequires: xz BuildRequires: fdupes @@ -66,7 +67,7 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ . #---[ Library ]------------------------------------------------------------------------------------------------------- %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) -%define MINOR_VERSION %(echo %{version} | cut -d. -f2) +%define MINOR_VERSION %(echo %{version} | cut -d. -f2 | cut -d+ -f1) %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} %package -n %{name}-%{_libvrs} @@ -111,7 +112,7 @@ make all %{?_smp_mflags} #%{_mingw64_makeinstall} make DESTDIR=%{buildroot} install -%_mingw64_find_lang %{_libname} langfiles +%_mingw64_find_lang %{_libname}-%{MAJOR_VERSION}.%{MINOR_VERSION} langfiles %fdupes %{buildroot} %files -n %{name}-%{_libvrs} -f langfiles -- libgit2 0.21.2