2011-06-01 12:00:16 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-03-26 10:28:50 +01:00
|
|
|
|
2011-06-01 12:00:16 +02:00
|
|
|
# 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
|
2012-02-13 12:17:01 +01:00
|
|
|
License: SUSE-Public-Domain
|
2011-06-01 12:00:16 +02:00
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
Patch1: %name-2.5-deb11.diff
|
2015-06-11 11:40:20 +02:00
|
|
|
Patch2: keyword-identifier.patch
|
2011-06-01 12:00:16 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: bison flex readline-devel xz
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2015-06-11 11:52:25 +02:00
|
|
|
%patch -P 1 -P 2 -p1
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-19 10:49:25 +02:00
|
|
|
make CFLAGS="%optflags -DUSE_READLINE -DOLD_READLINE" %{?_smp_mflags};
|
2011-03-26 10:28:50 +01:00
|
|
|
|
|
|
|
%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
|