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