]> git.pld-linux.org Git - packages/cproto.git/blob - cproto.spec
- BuildRequires: flex, bison
[packages/cproto.git] / cproto.spec
1 Summary:        C Prototype Utility
2 Summary(de):    C-Prototyp-Dienstprogramm
3 Summary(fr):    Utilitaire de prototypage C
4 Summary(pl):    Narzêdzia dla prototypów C
5 Summary(tr):    C prototip aracý
6 Name:           cproto
7 Version:        4.6
8 Release:        4
9 License:        Public Domain
10 Group:          Development/Tools
11 Group(fr):      Development/Outils
12 Group(pl):      Programowanie/Narzêdzia
13 Source0:        ftp://ftp.oce.com/pub/cproto/%{name}-%{version}.tar.gz
14 Patch0:         cproto.patch
15 BuildRequires:  flex
16 BuildRequires:  bison
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Cproto generates function prototypes for functions defined in the
21 specified C source files to the standard output. The function
22 definitions may be in the old style or ANSI C style. Optionally,
23 cproto also outputs declarations for variables defined in the files.
24 If no file argument is given, cproto reads its input from the standard
25 input.
26
27 %description -l de
28 Cproto erzeugt Funktionsprototypen für in C-Quelldateien definierte
29 Funktionen für die Standardausgabe. Die Funktionsdefinitionen können
30 im alten oder ANSI-C-Format vorliegen. cproto kann auch Deklarationen
31 für in den Dateien definierten Variablen ausgeben. Wird kein
32 Dateiargument angegeben, liest cproto die Eingabe aus der
33 Standardeingabe.
34
35 %description -l fr
36 Cproto génére des prototypes de fonction définies dans sources C
37 spécifiées sur la sortie standard. Les fonctions défines peuvent être
38 en vieux style ou en style C ANSI. Optionnelement, cproto affiche
39 aussi les déclarations pour les variables définies dans ces sources.
40 Si aucun argument ne lui est donné, cproto lit ses entrées depuis
41 l'entrée standard.
42
43 %description -l pl
44 Cproto jest programem do generowania prototypów funkcji,
45 zdefiniowanych w plikach ¼ród³owych C. Definicje funkcji mog± byæ
46 zarówno zgodne z ANSI C jak i ze starszymi. Cproto mo¿e tak¿e
47 dodatkowo tworzyæ wynik deklaracji dla ró¿nych zmiennych
48 zdefiniowanych w pliku. Je¿eli argumentem nie jest plik, cproto
49 pobiera argumenty ze standardowego wej¶cia (stdin).
50
51 %description -l tr
52 Cproto, verilen C kaynak dosyalarýnda tanýmlanmýþ fonksiyonlar için
53 standart çýktýda prototipler oluþturur. Ýstenirse dosyalardaki
54 deðiþken tanýmlamalarýný da çýkartabilir. Programa hiçbir argüman
55 verilmemiþse, cproto girdi olarak standart giriþten bilgi okur.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 autoconf
63 CPP="/lib/cpp"
64 LDFLSGS="-s"
65 export CPP export
66 %configure \
67         --prefix=%{_prefix} \
68         --exec-prefix=%{_prefix}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
74
75 %{__make} install \
76         bindir=$RPM_BUILD_ROOT%{_bindir} \
77         mandir=$RPM_BUILD_ROOT%{_mandir}/man1
78
79 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
80         README CHANGES
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc *.gz
88 %attr(755,root,root) %{_bindir}/cproto
89 %{_mandir}/man1/*
This page took 0.057763 seconds and 4 git commands to generate.