From 3ae1559b00d9d672187589804ebdba05da9a34e2 Mon Sep 17 00:00:00 2001 From: He Rengui Date: Wed, 16 Jun 2021 11:44:17 +0800 Subject: [PATCH] The font file should be installed in the /usr/share directory Signed-off-by: He Rengui --- figlet.spec | 12 ++++++++---- fix-install-prefix-path.patch | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 fix-install-prefix-path.patch diff --git a/figlet.spec b/figlet.spec index 07aa38c..32684b9 100644 --- a/figlet.spec +++ b/figlet.spec @@ -1,14 +1,13 @@ -#%global debug_package %{nil} - Name: figlet Version: 2.2.5 -Release: 2 +Release: 3 Summary: FIGlet is a program for making large letters out of ordinary text License: BSD URL: http://www.figlet.org/ Source0: https://github.com/cmatsuoka/figlet/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: figlet-fix-man-install-path.patch +Patch1: fix-install-prefix-path.patch BuildRequires: gcc autoconf automake @@ -22,12 +21,13 @@ end of e-mail and UseNet messages. %prep %setup -q -n %{name}-%{version}/ %patch0 -p1 +%patch1 -p1 %build %make_build %install -%make_install prefix="/usr/" +%make_install %pre %preun @@ -44,6 +44,10 @@ end of e-mail and UseNet messages. /usr/share/%{name}/ %changelog +* Wed Jun 16 2021 He Rengui - 2.2.5-3 +- fix: showfigfonts cannot found flf files +- allow generating debugsource package + * Tue Oct 13 2020 liqingqing_1229 - update source0 diff --git a/fix-install-prefix-path.patch b/fix-install-prefix-path.patch new file mode 100644 index 0000000..da1dfc7 --- /dev/null +++ b/fix-install-prefix-path.patch @@ -0,0 +1,26 @@ +From d2ad64d909f82a16402d991fbebac3bb798b1f43 Mon Sep 17 00:00:00 2001 +From: He Rengui +Date: Wed, 16 Jun 2021 11:27:59 +0800 +Subject: [PATCH] The font file should be installed in the /usr/share directory + +Signed-off-by: He Rengui +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 79768e9..1974443 100644 +--- a/Makefile ++++ b/Makefile +@@ -29,7 +29,7 @@ LDFLAGS = + XCFLAGS = -DTLF_FONTS + + # Where to install files +-prefix = /usr/local ++prefix = /usr + + # Where the executables should be put + BINDIR = $(prefix)/bin +-- +2.20.1 + -- Gitee