From ce892a5fe3ad039069b3470674d94abbd4ec38ee Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 6 Jan 2020 14:06:05 -0300 Subject: [PATCH] Fixing package build. --- Makefile.in | 4 +++- rpm/libv3270.spec | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index c2f561e..74a560e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -282,7 +282,7 @@ $(OBJDIR)/marshal/%.o: \ all: \ $(BINRLS)/$(SONAME) \ $(BINRLS)/static/$(LIBNAME).a \ - locale/$(PACKAGE_TARNAME).pot + locale/$(LIBNAME).pot Release: \ $(BINRLS)/$(SONAME) \ @@ -315,6 +315,7 @@ $(BINRLS)/static/$(LIBNAME).a: \ #---[ Install Targets ]------------------------------------------------------------------ install: \ + locale/$(LIBNAME).pot \ $(foreach PKG, $(INSTALL_PACKAGES), install-$(PKG)) install-linux-lib: \ @@ -511,6 +512,7 @@ clean: \ @rm -fr $(BASEDIR)/.tmp/$(LIBNAME) @rm -fr $(POTDIR)/$(LIBNAME) @rm -fr src/include/marshal + @rm -fr locale/$(LIBNAME).pot cleanDebug: diff --git a/rpm/libv3270.spec b/rpm/libv3270.spec index 1be05d3..8abdc72 100644 --- a/rpm/libv3270.spec +++ b/rpm/libv3270.spec @@ -103,8 +103,9 @@ make %{?_smp_mflags} %install %make_install +%find_lang libv3270 langfiles -%files -n %{name}-%{_libvrs} +%files -n %{name}-%{_libvrs} -f langfiles # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros %if 0%{?sle_version} > 120200 -- libgit2 0.21.2