]> git.pld-linux.org Git - packages/cdecl.git/blob - cdecl.spec
50b117fd38d04406d4f8ec0a90a05b7cba0b3e5e
[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:        11
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 BuildRoot:      /tmp/%{name}-%{version}-root
12
13 %description
14 The cdecl package includes the cdecl and c++decl utilities, which are used
15 to translate English to C or C++ function declarations and vice versa.
16
17 You should install the cdecl package if you intend to do C and/or C++
18 programming.
19
20 %prep
21 %setup -q
22 %patch -p1
23
24 %build
25 make CFLAGS="$RPM_OPT_FLAGS -DUSE_READLINE -s" \
26         LIBS="-lreadline -lncurses"
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT/usr/{bin,share/man/man1}
31
32 make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
33         install
34
35 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_bindir}/*
43 %{_mandir}/man1/*
This page took 0.025144 seconds and 2 git commands to generate.