--- /dev/null
+--- cdecl-2.5/cdecl.c.orig Wed Nov 21 21:29:59 2001
++++ cdecl-2.5/cdecl.c Wed Nov 21 21:32:54 2001
+@@ -125,7 +125,9 @@
+
+ #if __STDC__
+ char *ds(char *), *cat(char *, ...), *visible(int);
++#ifdef NOGETOPT
+ int getopt(int,char **,char *);
++#endif
+ int main(int, char **);
+ int yywrap(void);
+ int dostdin(void);
+@@ -143,7 +145,9 @@
+ int dotmpfile(int, char**), dofileargs(int, char**);
+ #else
+ char *ds(), *cat(), *visible();
++#ifdef NOGETOPT
+ int getopt();
++#endif
+ void mbcheck(), dohelp(), usage();
+ void prompt(), doprompt(), noprompt();
+ void unsupp(), notsupported();
Summary(tr): Ýngilizceden C/C++ bildirimlerine çevirici
Name: cdecl
Version: 2.5
-Release: 20
+Release: 21
License: distributable
Group: Development/Tools
Group(de): Entwicklung/Werkzeuge
Group(pl): Programowanie/Narzêdzia
Source0: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/%{name}-%{version}.tar.gz
Patch0: %{name}-misc.patch
-BuildRequires: byacc
+Patch1: %{name}-glibc.patch
+BuildRequires: flex
+BuildRequires: bison
BuildRequires: readline-devel >= 4.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
%build
+bison -y cdgram.y && mv -f y.tab.c cdgram.c
%{__make} CFLAGS="%{rpmcflags} %{rpmldflags} -DUSE_READLINE" \
LIBS="-lreadline -ltinfo"