From 23853a57a2fc4ae6ecf1d15d39770a1dfb773d8b Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Oct 10 2005 17:05:39 +0000 Subject: Description: Use of -DUSE_FN_MATCH --- diff --git a/highlight-2.4-makefile.patch b/highlight-2.4-makefile.patch index d99b632..5e51fda 100644 --- a/highlight-2.4-makefile.patch +++ b/highlight-2.4-makefile.patch @@ -1,5 +1,5 @@ --- highlight-2.4-2/makefile.mak 2005-09-22 22:51:16.000000000 +0200 -+++ highlight-2.4-2/makefile 2005-10-09 22:05:40.000000000 +0200 ++++ highlight-2.4-2/makefile 2005-10-10 18:19:47.000000000 +0200 @@ -9,8 +9,8 @@ data_dir = ${DESTDIR}/usr/share/highlight/ diff --git a/highlight-2.4-rpmoptflags.patch b/highlight-2.4-rpmoptflags.patch index 48c2d04..18880b0 100644 --- a/highlight-2.4-rpmoptflags.patch +++ b/highlight-2.4-rpmoptflags.patch @@ -1,11 +1,11 @@ ---- highlight-2.4-1/highlight/makefile.BAD 2005-08-03 10:44:08.000000000 -0500 -+++ highlight-2.4-1/highlight/makefile 2005-08-03 10:44:36.000000000 -0500 -@@ -15,7 +15,7 @@ - - CXX=c++ - --CFLAGS := -O2 -Wall -pedantic -DHL_DATA_DIR=\"${HL_DATA_DIR}\" -+CFLAGS := $(RPM_OPT_FLAGS) -DHL_DATA_DIR=\"${HL_DATA_DIR}\" - - LDFLAGS = -L/usr/lib -s - +--- highlight-2.4-2/highlight/makefile.rpx 2005-08-04 19:49:31.000000000 +0200 ++++ highlight-2.4-2/highlight/makefile 2005-10-10 18:22:14.000000000 +0200 +@@ -15,7 +15,7 @@ + + CXX=c++ + +-CFLAGS := -O2 -Wall -pedantic -DHL_DATA_DIR=\"${HL_DATA_DIR}\" ++CFLAGS := $(RPM_OPTS_FLAG) -DHL_DATA_DIR=\"${HL_DATA_DIR}\" -DUSE_FN_MATCH + + LDFLAGS = -L/usr/lib -s + diff --git a/highlight.spec b/highlight.spec index c5f74a6..be2b3d6 100644 --- a/highlight.spec +++ b/highlight.spec @@ -1,13 +1,16 @@ +%define hver 2.4 +%define lver 2 + Name: highlight Summary: Universal source code to formatted text converter -Version: 2.4.2 -Release: 1%{?dist} +Version: %{hver}.%{lver} +Release: 2%{?dist} Group: Development/Tools License: GPL URL: http://www.andre-simon.de/ -Source0: http://www.andre-simon.de/zip/%{name}-2.4-2.tar.gz +Source0: http://www.andre-simon.de/zip/%{name}-%{hver}-%{lver}.tar.gz Patch1: highlight-2.4-makefile.patch Patch2: highlight-2.4-rpmoptflags.patch @@ -22,7 +25,7 @@ The utility offers indentation and reformatting capabilities. It is easily possible to create new language definitions and colour themes. %prep -%setup -q -n %{name}-2.4-2 +%setup -q -n %{name}-%{hver}-%{lver} %patch1 -p1 -b .mak %patch2 -p1 @@ -49,7 +52,10 @@ rm -rf $RPM_BUILD_ROOT %doc ChangeLog AUTHORS README* COPYING TODO examples/ %changelog -* Sun Oct 9 2005 Jochen Schmitt 2.4.2-0 +* Mon Oct 10 2005 Jochen Schmitt 2.4.2-2 +- Use -DUSE_FN_MATCH + +* Sun Oct 9 2005 Jochen Schmitt 2.4.2-1 - New upstream release * Wed Aug 10 2005 Jochen Schmitt 2.4.1-6