Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82803d895c | ||
|
|
03bac9e43f | ||
|
|
e35c283610 | ||
|
|
9027143387 | ||
|
|
ffdc6191ed |
4 changed files with 28 additions and 22 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: flex
|
||||
# $Id: Makefile,v 1.1 2004/09/09 04:46:04 cvsdist Exp $
|
||||
NAME := flex
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attempt a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
22
flex-2.5.35-gcc44.patch
Normal file
22
flex-2.5.35-gcc44.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff -urNp flex-2.5.35.orig/flex.skl flex-2.5.35/flex.skl
|
||||
--- flex-2.5.35.orig/flex.skl 2009-04-20 03:09:46.000000000 +0530
|
||||
+++ flex-2.5.35/flex.skl 2009-04-20 07:46:58.000000000 +0530
|
||||
@@ -217,6 +217,7 @@ m4preproc_include(`flexint.h')
|
||||
/* begin standard C++ headers. */
|
||||
#include <iostream>
|
||||
#include <errno.h>
|
||||
+#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
/* end standard C++ headers. */
|
||||
diff -urNp flex-2.5.35.orig/skel.c flex-2.5.35/skel.c
|
||||
--- flex-2.5.35.orig/skel.c 2009-04-20 03:09:46.000000000 +0530
|
||||
+++ flex-2.5.35/skel.c 2009-04-20 07:46:40.000000000 +0530
|
||||
@@ -284,6 +284,7 @@ const char *skel[] = {
|
||||
"/* begin standard C++ headers. */",
|
||||
"#include <iostream> ",
|
||||
"#include <errno.h>",
|
||||
+ "#include <cstdio>",
|
||||
"#include <cstdlib>",
|
||||
"#include <cstring>",
|
||||
"/* end standard C++ headers. */",
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
Summary: A tool for creating scanners (text pattern recognizers)
|
||||
Name: flex
|
||||
Version: 2.5.35
|
||||
Release: 3%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: BSD
|
||||
Group: Development/Tools
|
||||
URL: http://flex.sourceforge.net/
|
||||
Source: flex-%{version}.tar.bz2
|
||||
Patch0: flex-2.5.35-sign.patch
|
||||
Patch2: flex-2.5.35-gcc44.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: m4
|
||||
BuildRequires: gettext bison m4
|
||||
|
|
@ -30,6 +31,7 @@ application development.
|
|||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS"
|
||||
|
|
@ -76,6 +78,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||
%{_infodir}/flex.info*
|
||||
|
||||
%changelog
|
||||
* Mon Apr 20 2009 Debarshi Ray <rishi@fedoraproject.org> - 2.5.35-5
|
||||
- Resolves: #496548.
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.35-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue