1 Summary: Programs for encoding and decoding C and C++ function declarations.
5 Copyright: distributable
6 Group: Development/Tools
7 Group(pl): Programowanie/Narzêdzia
8 Source: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/%{name}-%{version}.tar.gz
9 Patch: cdecl-misc.patch
11 BuildRequires: ncurses-devel >= 5.0
12 BuildRoot: /tmp/%{name}-%{version}-root
15 The cdecl package includes the cdecl and c++decl utilities, which are used
16 to translate English to C or C++ function declarations and vice versa.
18 You should install the cdecl package if you intend to do C and/or C++
26 make CFLAGS="$RPM_OPT_FLAGS -DUSE_READLINE -s" \
27 LIBS="-lreadline -ltinfo"
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT/usr/{bin,share/man/man1}
33 make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
36 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/*