File: cproto.spec

package info (click to toggle)
cproto 4.7y-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,112 kB
  • sloc: ansic: 4,508; sh: 4,284; lex: 1,032; yacc: 924; makefile: 283
file content (65 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Summary: generate C function prototypes and convert function definitions
# $Id: cproto.spec,v 1.21 2025/09/01 10:51:16 tom Exp $
Name: cproto
Version: 4.7y
Release: 1
License: Public Domain
Group: Applications/Development
URL: https://invisible-island.net/%{name}
Source0: %{name}-%{version}.tgz
Packager: Thomas Dickey <dickey@invisible-island.net>

%description
Cproto generates function prototypes for functions defined in the specified C
source files to the standard output.  The function definitions may be in the
old style or ANSI C style.  Optionally, cproto also outputs declarations for
variables defined in the files.

%prep

%define debug_package %{nil}

%setup -q -n %{name}-%{version}

%build

INSTALL_PROGRAM='${INSTALL}' \
%configure \
  --target %{_target_platform} \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} \
  --libdir=%{_libdir} \
  --mandir=%{_mandir} \
  --enable-llib           

make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

make install                    DESTDIR=$RPM_BUILD_ROOT

strip $RPM_BUILD_ROOT%{_bindir}/%{name}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_prefix}/bin/%{name}
%{_mandir}/man1/%{name}.*

%changelog
# each patch should add its ChangeLog entries here

* Mon Sep 01 2025 Thomas E. Dickey
- testing cproto 4.7y-1

* Wed May 23 2018 Thomas Dickey
- turn off debug package; add llib feature

* Sun Jan 02 2011 Thomas Dickey
- cproto 4.7j

* Wed Jul 14 2010 Thomas Dickey
- initial version