]>
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 | |
53ff8074 | 20 | URL: http://invisible-island.net/dialog/dialog.html |
47c16b19 JB |
21 | BuildRequires: gettext-devel |
22 | BuildRequires: ncurses-devel >= 5.4 | |
23 | BuildRequires: libtool | |
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 | |
47c16b19 | 37 | anzubieten. Unter %{_examplesdir}/%{name}-%{version} finden Sie |
9f01d675 | 38 | einige 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 JB |
86 | %patch0 -p1 |
87 | %patch1 -p1 | |
92313b76 | 88 | |
89 | %build | |
53ff8074 AF |
90 | %configure \ |
91 | --with-libtool \ | |
92 | --with-ncursesw \ | |
93 | --enable-widec \ | |
94 | --enable-nls | |
d2a77f7f | 95 | |
53ff8074 | 96 | %{__make} |
92313b76 | 97 | |
98 | %install | |
9f01d675 | 99 | rm -rf $RPM_BUILD_ROOT |
47c16b19 | 100 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
92313b76 | 101 | |
3a3a8d17 | 102 | %{__make} install \ |
53ff8074 | 103 | DESTDIR=$RPM_BUILD_ROOT |
d2a77f7f | 104 | |
47c16b19 | 105 | cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
92313b76 | 106 | |
7cc32508 | 107 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
60b655a2 | 108 | |
53ff8074 AF |
109 | %find_lang %{name} |
110 | ||
92313b76 | 111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
4ef7c0e1 JB |
114 | %post -p /sbin/ldconfig |
115 | %postun -p /sbin/ldconfig | |
116 | ||
53ff8074 | 117 | %files -f %{name}.lang |
b7e62594 | 118 | %defattr(644,root,root,755) |
47c16b19 | 119 | %doc CHANGES README |
c7b857d6 | 120 | %attr(755,root,root) %{_bindir}/dialog |
47c16b19 | 121 | %attr(755,root,root) %{_libdir}/libdialog.so.*.*.* |
537c4707 | 122 | %{_mandir}/man1/* |
60b655a2 | 123 | %lang(hu) %{_mandir}/hu/man1/* |
124 | %lang(pl) %{_mandir}/pl/man1/* | |
92313b76 | 125 | |
d2a77f7f AF |
126 | %files devel |
127 | %defattr(644,root,root,755) | |
47c16b19 JB |
128 | %attr(755,root,root) %{_libdir}/libdialog.so |
129 | %{_libdir}/libdialog.la | |
130 | %{_includedir}/*.h | |
131 | %{_mandir}/man3/dialog.3* | |
16fd492c | 132 | %dir %{_examplesdir}/%{name}-%{version} |
133 | %{_examplesdir}/%{name}-%{version}/README | |
134 | %{_examplesdir}/%{name}-%{version}/*.txt | |
135 | %{_examplesdir}/%{name}-%{version}/*.?? | |
136 | %{_examplesdir}/%{name}-%{version}/install | |
137 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/[fgkmpry]* | |
138 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copismall | |
139 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/ca* | |
140 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist | |
141 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist9 | |
142 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist[!9]* | |
143 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/in[fp]* | |
16fd492c | 144 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/t[ai]* |
145 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/tes* | |
146 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox | |
147 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox[0-9] | |
148 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/wheel | |
d8ef833f | 149 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/listing |
16fd492c | 150 | %dir %{_examplesdir}/%{name}-%{version}/copifuncs |
151 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/a* | |
16fd492c | 152 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/com* |
153 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/copi.[!t]* | |
154 | %{_examplesdir}/%{name}-%{version}/copifuncs/copi.t* | |
155 | %{_examplesdir}/%{name}-%{version}/copifuncs/ifpatch | |
2a78fd85 TP |
156 | %{_examplesdir}/%{name}-%{version}/dselect |
157 | %{_examplesdir}/%{name}-%{version}/editbox* | |
d2a77f7f AF |
158 | |
159 | %files static | |
25dd5c02 | 160 | %defattr(644,root,root,755) |
47c16b19 | 161 | %{_libdir}/libdialog.a |