339952c76932f9ca47f6e2df606e3ac1ffc1b31a
[packages/cdecl.git] / cdecl.spec
1 Summary:        Programs for encoding and decoding C and C++ function declarations.
2 Name:           cdecl
3 Version:        2.5
4 Release:        12
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
10 BuildRequires:  byacc
11 BuildRequires:  ncurses-devel >= 5.0
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
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.
17
18 You should install the cdecl package if you intend to do C and/or C++
19 programming.
20
21 %prep
22 %setup -q
23 %patch -p1
24
25 %build
26 make CFLAGS="$RPM_OPT_FLAGS -DUSE_READLINE -s" \
27         LIBS="-lreadline -ltinfo"
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT/usr/{bin,share/man/man1}
32
33 make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
34         install
35
36 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/*
44 %{_mandir}/man1/*
This page took 0.083185 seconds and 2 git commands to generate.