]> git.pld-linux.org Git - packages/dialog.git/blob - dialog.spec
- use new %doc packing infrastructure.
[packages/dialog.git] / dialog.spec
1 Summary:        A program to build tty dialog boxes
2 Summary(de):    Ein Programm zum Erstellen von tty-Dialogfeldern
3 Summary(fr):    Programme pour construire des boîtes de dialogue en mode texte
4 Summary(pl):    Dialog tworzy okienkowy interfejs u¿ytkownika na terminalu tekstowym
5 Summary(tr):    tty diyalog kutularý oluþturan bir program
6 Name:           dialog
7 Version:        0.69
8 Release:        9
9 Epoch:          1
10 License:        GPL
11 Group:          Applications/Terminal
12 Source0:        ftp://iride.unipv.it/pub/linux/dialog/%{name}-%{version}.tar.gz
13 # other (more recent but probably worse) dialog source:
14 # ftp://AdvancedResearch.org/pub/vstemen/%{name}-0.7.tar.gz
15 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
16 Patch0:         %{name}-shared.patch
17 Patch1:         %{name}-manpath.patch
18 Patch2:         %{name}-awk.patch
19 Patch3:         %{name}-examples.patch
20 Patch4:         %{name}-opt.patch
21 Patch5:         %{name}-menumouse.patch
22 Patch6:         %{name}-menuborder.patch
23 Patch7:         %{name}-segv.patch
24 URL:            http://www.AdvancedResearch.org/dialog/
25 BuildRequires:  autoconf
26 BuildRequires:  gpm-devel
27 BuildRequires:  ncurses-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Dialog is a utility that allows you to build user interfaces in a TTY
32 (text mode only). You can call dialog from within a shell script to
33 ask the user questions or present with choices in a more user friendly
34 manner.
35
36 %description -l de
37 Dialog ist ein Dienstprogramm, das das Erstellen einer
38 Benutzeroberfläche in einem TTY ermöglicht (nur Textmodus). Sie können
39 dialog mit einem Shell-Script aufrufen, um dem Benutzer auf
40 benutzerfreundliche Weise Fragen zu stellen oder eine Auswahl
41 anzubieten. Unter /usr/src/examples/dialog-%{version} finden Sie
42 einige Beispiele.
43
44 %description -l fr
45 dialog est un utilitaire permettant de construire des interfaces
46 utilisateur en mode texte. On peut appeler dialog à partir d'un script
47 shell pour poser des questions à l'utilisateur ou lui proposer des
48 choix de façon conviviale. Voir /usr/src/examples/dialog-%{version}
49 pour quelques exemples.
50
51 %description -l pl
52 Dialog jest narzêdziem umo¿liwiaj±cym stworzenie przyjaznego
53 interfejsu u¿ytkownika na terminalu pracuj±cym w trybie tekstowym. Do
54 programu do³±czone s± przyk³adowe skrypty, u³atwiaj±ce rozpoczêcie
55 pracy.
56
57 %description -l tr
58 Dialog, metin ekran için kullanýcý arayüzleri oluþturmayý saðlayan bir
59 araçtýr. Kullanýcýya seçenekleri göstermek veya sorular sormak için,
60 dialog programýný bir kabuk programcýðý içinden çaðýrabilirsiniz.
61 Örnekler için /usr/src/examples/dialog-%{version} dizinine bakýnýz.
62
63 %package devel
64 Summary:        Libraries and headers files for dialog
65 Summary(pl):    Biblioteki i pliki nagó³wkowe dla dialog
66 Group:          Development/Libraries
67 Requires:       %{name} = %{version}
68
69 %description devel
70 Libraries and header files for dialog.
71
72 %description devel -l pl
73 Biblioteki i pliki nag³ówkowe dla dialog.
74
75 %package static
76 Summary:        Static dialog library
77 Summary(pl):    Statyczna biblioteka dialog
78 Group:          Development/Libraries
79 Requires:       %{name}-devel = %{version}
80
81 %description static
82 Static dialog library.
83
84 %description static -l pl
85 Statyczna biblioteka dialog.
86
87 %prep
88 %setup  -q
89 %patch0 -p1
90 %patch1 -p1
91 %patch2 -p1
92 %patch3 -p1
93 %patch4 -p1
94 %patch5 -p1
95 %patch6 -p1
96 %patch7 -p1
97
98 %build
99 autoconf
100 %configure
101
102 %{__make} depend shared all
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name}}
107
108 %{__make} install \
109     prefix=$RPM_BUILD_ROOT%{_prefix} \
110     mandir=$RPM_BUILD_ROOT%{_mandir}
111
112 cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}
113
114 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post   -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
121
122 %files
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_bindir}/dialog
125 %attr(755,root,root) %{_libdir}/lib*.so.*
126 %{_mandir}/man1/*
127 %lang(hu) %{_mandir}/hu/man1/*
128 %lang(pl) %{_mandir}/pl/man1/*
129
130 %files devel
131 %defattr(644,root,root,755)
132 %doc dialog.lsm README CMDLINE
133 %attr(755,root,root) %{_libdir}/lib*.so
134 %{_includedir}/*
135 %{_mandir}/man3/*
136 %attr(- ,root,root) %{_examplesdir}/dialog
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib*.a
This page took 0.035596 seconds and 4 git commands to generate.