Hello community,
here is the log from the commit of package cdecl for openSUSE:Factory
checked in at Wed Jun 1 12:00:13 CEST 2011.
--------
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/cdecl/cdecl.changes 2011-03-23 14:09:10.000000000 +0100
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Fri Aug 13 00:56:53 UTC 2010 - jengelh@medozas.de
+
+- Add -DOLD_READLINE to get prototypes into scope
calling whatdependson for head-i586
New:
----
cdecl-2.5-deb11.diff
cdecl-2.5.tar.xz
cdecl.changes
cdecl.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ cdecl.spec ++++++
#
# spec file for package cdecl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cdecl
Version: 2.5
Release: 1
Group: Development/Languages/C and C++
Summary: C/C++ function declaration translator
Url: ftp://ftp.oss.cc.gatech.edu/pub/linux/devel/lang/c/cdecl-2.5.tar.gz
License: Public Domain
Source: %name-%version.tar.xz
Patch1: %name-2.5-deb11.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison flex readline-devel xz
%description
Turn English phrases to C or C++ declarations Cdecl is a program
which will turn English-like phrases such as "declare foo as array 5
of pointer to function returning int" into C declarations such as
"int (*foo[5])()". It can also translate the C into the
pseudo-English. And it handles typecasts, too. Plus C++. And in this
version it has command line editing and history with the GNU readline
library.
Author:
-------
David R. Conrad
%prep
%setup
%patch -P 1 -p1
%build
make CFLAGS="%optflags -DUSE_READLINE -DOLD_READLINE";
%install
b="%buildroot";
install -dm0755 "$b/%_bindir";
install -dm0755 "$b/%_mandir/man1";
make install BINDIR="$b/%_bindir" MANDIR="$b/%_mandir/man1";
%files
%defattr(-,root,root)
%_bindir/*
%_mandir/*/*
%changelog
++++++ cdecl-2.5-deb11.diff ++++++
--- cdecl-2.5.orig/Makefile
+++ cdecl-2.5/Makefile
@@ -15,9 +15,9 @@
#
# add -DUSE_READLINE To compile in support for the GNU readline library.
-CFLAGS= -s -O2 -DUSE_READLINE
+CFLAGS= -g -O2 -DUSE_READLINE
CC= gcc
-LIBS= -lreadline -ltermcap
+LIBS= -lreadline
ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
BINDIR= /usr/bin
MANDIR= /usr/man/man1
@@ -26,7 +26,7 @@
INSTALL_DATA= install -c -m 644
cdecl: c++decl
- ln c++decl cdecl
+ ln -s c++decl cdecl
c++decl: cdgram.c cdlex.c cdecl.c
$(CC) $(CFLAGS) -o c++decl cdecl.c $(LIBS)
@@ -44,7 +44,7 @@
install: cdecl
$(INSTALL) cdecl $(BINDIR)
- ln $(BINDIR)/cdecl $(BINDIR)/c++decl
+ ln -s cdecl $(BINDIR)/c++decl
$(INSTALL_DATA) cdecl.1 $(MANDIR)
$(INSTALL_DATA) c++decl.1 $(MANDIR)
--- cdecl-2.5.orig/cdecl.1
+++ cdecl-2.5/cdecl.1
@@ -274,7 +274,7 @@
<modifier> ::= short | long | unsigned | signed | <ptrmod>
<ptrmodlist> ::= <ptrmod> <ptrmodlist> | NOTHING
<ptrmod> ::= const | volatile | noalias
- <storage> ::= auto | extern | register | auto
+ <storage> ::= auto | extern | register | static
<optstorage> ::= NOTHING | <storage>
<options> ::= NOTHING | <options>
| create | nocreate
--- cdecl-2.5.orig/cdecl.c
+++ cdecl-2.5/cdecl.c
@@ -67,6 +67,7 @@
# include