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