47 lines
1.1 KiB
RPMSpec
47 lines
1.1 KiB
RPMSpec
|
|
||
|
Name: cdecl
|
||
|
Version: 2.5
|
||
|
Release: 0
|
||
|
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: DFSG
|
||
|
|
||
|
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
|