]>
Commit | Line | Data |
---|---|---|
14266e31 AG |
1 | %define ver 1.3 |
2 | %define sdate 20190211 | |
9f01d675 | 3 | Summary: A program to build tty dialog boxes |
9894b95b ER |
4 | Summary(de.UTF-8): Ein Programm zum Erstellen von tty-Dialogfeldern |
5 | Summary(fr.UTF-8): Programme pour construire des boîtes de dialogue en mode texte | |
6 | Summary(pl.UTF-8): Dialog tworzy okienkowy interfejs użytkownika na terminalu tekstowym | |
7 | Summary(tr.UTF-8): tty diyalog kutuları oluşturan bir program | |
9f01d675 | 8 | Name: dialog |
53ff8074 | 9 | Version: %{ver}.%{sdate} |
14266e31 | 10 | Release: 1 |
3a3a8d17 | 11 | Epoch: 1 |
53ff8074 | 12 | License: LGPL v2.1 |
3a3a8d17 | 13 | Group: Applications/Terminal |
14266e31 AG |
14 | Source0: ftp://ftp.invisible-island.net/dialog/%{name}-%{ver}-%{sdate}.tgz |
15 | # Source0-md5: 27d05caef648e8e02d0908a59951d44c | |
e5d1eecd | 16 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
78e1c6b9 | 17 | # Source1-md5: 932081790cd8aa857822bd2b0eafa5bb |
53ff8074 | 18 | URL: http://invisible-island.net/dialog/dialog.html |
4d8cdc89 | 19 | BuildRequires: gettext-tools |
47c16b19 | 20 | BuildRequires: libtool |
d7a19f5b | 21 | BuildRequires: ncurses-devel >= 5.4 |
09d63e72 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
92313b76 | 23 | |
24 | %description | |
9f01d675 | 25 | Dialog is a utility that allows you to build user interfaces in a TTY |
26 | (text mode only). You can call dialog from within a shell script to | |
27 | ask the user questions or present with choices in a more user friendly | |
3a3a8d17 | 28 | manner. |
92313b76 | 29 | |
d4d53770 | 30 | %description -l de.UTF-8 |
9f01d675 | 31 | Dialog ist ein Dienstprogramm, das das Erstellen einer |
d4d53770 | 32 | Benutzeroberfläche in einem TTY ermöglicht (nur Textmodus). Sie können |
9f01d675 | 33 | dialog mit einem Shell-Script aufrufen, um dem Benutzer auf |
34 | benutzerfreundliche Weise Fragen zu stellen oder eine Auswahl | |
d7a19f5b SP |
35 | anzubieten. Unter %{_examplesdir}/%{name}-%{version} finden Sie einige |
36 | Beispiele. | |
92313b76 | 37 | |
d4d53770 | 38 | %description -l fr.UTF-8 |
92313b76 | 39 | dialog est un utilitaire permettant de construire des interfaces |
d4d53770 JR |
40 | utilisateur en mode texte. On peut appeler dialog à partir d'un script |
41 | shell pour poser des questions à l'utilisateur ou lui proposer des | |
42 | choix de façon conviviale. Voir %{_examplesdir}/%{name}-%{version} | |
9f01d675 | 43 | pour quelques exemples. |
92313b76 | 44 | |
d4d53770 JR |
45 | %description -l pl.UTF-8 |
46 | Dialog jest narzędziem umożliwiającym stworzenie przyjaznego | |
47 | interfejsu użytkownika na terminalu pracującym w trybie tekstowym. Do | |
48 | programu dołączone są przykładowe skrypty, ułatwiające rozpoczęcie | |
9f01d675 | 49 | pracy. |
92313b76 | 50 | |
d4d53770 JR |
51 | %description -l tr.UTF-8 |
52 | Dialog, metin ekran için kullanıcı arayüzleri oluşturmayı sağlayan bir | |
53 | araçtır. Kullanıcıya seçenekleri göstermek veya sorular sormak için, | |
54 | dialog programını bir kabuk programcığı içinden çağırabilirsiniz. | |
55 | Örnekler için %{_examplesdir}/%{name}-%{version} dizinine bakınız. | |
92313b76 | 56 | |
9f01d675 | 57 | %package devel |
d2a77f7f | 58 | Summary: Libraries and headers files for dialog |
9894b95b | 59 | Summary(pl.UTF-8): Biblioteki i pliki nagółwkowe dla dialog |
d2a77f7f | 60 | Group: Development/Libraries |
47c16b19 JB |
61 | Requires: %{name} = %{epoch}:%{version}-%{release} |
62 | Requires: ncurses-devel >= 5.4 | |
d2a77f7f AF |
63 | |
64 | %description devel | |
4ef7c0e1 | 65 | Libraries and header files for dialog. |
d2a77f7f | 66 | |
d4d53770 JR |
67 | %description devel -l pl.UTF-8 |
68 | Biblioteki i pliki nagłówkowe dla dialog. | |
d2a77f7f | 69 | |
4ef7c0e1 | 70 | %package static |
d2a77f7f | 71 | Summary: Static dialog library |
9894b95b | 72 | Summary(pl.UTF-8): Statyczna biblioteka dialog |
d2a77f7f | 73 | Group: Development/Libraries |
47c16b19 | 74 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d2a77f7f AF |
75 | |
76 | %description static | |
25dd5c02 | 77 | Static dialog library. |
d2a77f7f | 78 | |
d4d53770 | 79 | %description static -l pl.UTF-8 |
25dd5c02 | 80 | Statyczna biblioteka dialog. |
d2a77f7f | 81 | |
92313b76 | 82 | %prep |
53ff8074 | 83 | %setup -q -n %{name}-%{ver}-%{sdate} |
92313b76 | 84 | |
85 | %build | |
53ff8074 AF |
86 | %configure \ |
87 | --with-libtool \ | |
88 | --with-ncursesw \ | |
d50a0a9a JB |
89 | --enable-nls \ |
90 | --enable-widec | |
d2a77f7f | 91 | |
53ff8074 | 92 | %{__make} |
92313b76 | 93 | |
94 | %install | |
9f01d675 | 95 | rm -rf $RPM_BUILD_ROOT |
47c16b19 | 96 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
92313b76 | 97 | |
3a3a8d17 | 98 | %{__make} install \ |
53ff8074 | 99 | DESTDIR=$RPM_BUILD_ROOT |
d2a77f7f | 100 | |
47c16b19 | 101 | cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
92313b76 | 102 | |
7cc32508 | 103 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
60b655a2 | 104 | |
53ff8074 AF |
105 | %find_lang %{name} |
106 | ||
92313b76 | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
4ef7c0e1 JB |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
112 | ||
53ff8074 | 113 | %files -f %{name}.lang |
b7e62594 | 114 | %defattr(644,root,root,755) |
47c16b19 | 115 | %doc CHANGES README |
c7b857d6 | 116 | %attr(755,root,root) %{_bindir}/dialog |
0c09f545 | 117 | %attr(755,root,root) %{_libdir}/libdialog.so.*.*.* |
14266e31 | 118 | %attr(755,root,root) %ghost %{_libdir}/libdialog.so.15 |
d50a0a9a JB |
119 | %{_mandir}/man1/dialog.1* |
120 | %lang(hu) %{_mandir}/hu/man1/dialog.1* | |
121 | %lang(pl) %{_mandir}/pl/man1/dialog.1* | |
92313b76 | 122 | |
d2a77f7f AF |
123 | %files devel |
124 | %defattr(644,root,root,755) | |
7636c2ce | 125 | %attr(755,root,root) %{_bindir}/dialog-config |
47c16b19 JB |
126 | %attr(755,root,root) %{_libdir}/libdialog.so |
127 | %{_libdir}/libdialog.la | |
d50a0a9a JB |
128 | %{_includedir}/dialog.h |
129 | %{_includedir}/dlg_*.h | |
47c16b19 | 130 | %{_mandir}/man3/dialog.3* |
16fd492c | 131 | %dir %{_examplesdir}/%{name}-%{version} |
14266e31 | 132 | %dir %{_examplesdir}/%{name}-%{version}/copifuncs |
16fd492c | 133 | %{_examplesdir}/%{name}-%{version}/README |
134 | %{_examplesdir}/%{name}-%{version}/*.txt | |
2e7e102b MK |
135 | %{_examplesdir}/%{name}-%{version}/*.rc |
136 | %{_examplesdir}/%{name}-%{version}/dialog* | |
137 | %{_examplesdir}/%{name}-%{version}/report* | |
138 | %{_examplesdir}/%{name}-%{version}/setup* | |
139 | %{_examplesdir}/%{name}-%{version}/testdata-8bit | |
140 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/buildlist* | |
141 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/calendar* | |
16fd492c | 142 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist |
143 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist9 | |
144 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist[!9]* | |
14266e31 | 145 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/* |
2e7e102b | 146 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/dft* |
14266e31 | 147 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/dselect* |
2e7e102b MK |
148 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/editbox* |
149 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/form* | |
150 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/fselect* | |
151 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/gauge* | |
152 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/infobox* | |
153 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/inputbox* | |
154 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/inputmenu* | |
155 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/killall | |
156 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/listing | |
157 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/menubox* | |
158 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/mixedform* | |
159 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/mixedgauge | |
160 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/msgbox* | |
161 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/password* | |
162 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/pause* | |
163 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/prgbox* | |
164 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/programbox* | |
165 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/progress* | |
166 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/radiolist* | |
167 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/rangebox* | |
168 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/rotated-data | |
169 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/shortlist | |
170 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/tailbox* | |
16fd492c | 171 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox |
2e7e102b MK |
172 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox[0-9\-]* |
173 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/timebox* | |
174 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/treeview* | |
16fd492c | 175 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/wheel |
2e7e102b MK |
176 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/with* |
177 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/yesno* | |
d2a77f7f AF |
178 | |
179 | %files static | |
25dd5c02 | 180 | %defattr(644,root,root,755) |
47c16b19 | 181 | %{_libdir}/libdialog.a |