]> git.pld-linux.org Git - packages/dialog.git/blame - dialog.spec
- add --tag=CC to libtool invocations
[packages/dialog.git] / dialog.spec
CommitLineData
2a78fd85
TP
1%define ver 1.1
2%define sdate 20080819
9f01d675 3Summary: A program to build tty dialog boxes
9894b95b
ER
4Summary(de.UTF-8): Ein Programm zum Erstellen von tty-Dialogfeldern
5Summary(fr.UTF-8): Programme pour construire des boîtes de dialogue en mode texte
6Summary(pl.UTF-8): Dialog tworzy okienkowy interfejs użytkownika na terminalu tekstowym
7Summary(tr.UTF-8): tty diyalog kutuları oluşturan bir program
9f01d675 8Name: dialog
53ff8074 9Version: %{ver}.%{sdate}
2a78fd85 10Release: 1
3a3a8d17 11Epoch: 1
53ff8074 12License: LGPL v2.1
3a3a8d17 13Group: Applications/Terminal
53ff8074 14Source0: ftp://invisible-island.net/dialog/%{name}-%{ver}-%{sdate}.tgz
2a78fd85 15# Source0-md5: 3caebd641a9f337b980becb4444336c5
e5d1eecd 16Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
78e1c6b9 17# Source1-md5: 932081790cd8aa857822bd2b0eafa5bb
47c16b19
JB
18Patch0: %{name}-link.patch
19Patch1: %{name}-pl.po-update.patch
0c09f545 20Patch2: libtool.patch
53ff8074 21URL: http://invisible-island.net/dialog/dialog.html
47c16b19
JB
22BuildRequires: gettext-devel
23BuildRequires: ncurses-devel >= 5.4
24BuildRequires: libtool
09d63e72 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92313b76 26
27%description
9f01d675 28Dialog 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
30ask the user questions or present with choices in a more user friendly
3a3a8d17 31manner.
92313b76 32
d4d53770 33%description -l de.UTF-8
9f01d675 34Dialog ist ein Dienstprogramm, das das Erstellen einer
d4d53770 35Benutzeroberfläche in einem TTY ermöglicht (nur Textmodus). Sie können
9f01d675 36dialog mit einem Shell-Script aufrufen, um dem Benutzer auf
37benutzerfreundliche Weise Fragen zu stellen oder eine Auswahl
47c16b19 38anzubieten. Unter %{_examplesdir}/%{name}-%{version} finden Sie
9f01d675 39einige Beispiele.
92313b76 40
d4d53770 41%description -l fr.UTF-8
92313b76 42dialog est un utilitaire permettant de construire des interfaces
d4d53770
JR
43utilisateur en mode texte. On peut appeler dialog à partir d'un script
44shell pour poser des questions à l'utilisateur ou lui proposer des
45choix de façon conviviale. Voir %{_examplesdir}/%{name}-%{version}
9f01d675 46pour quelques exemples.
92313b76 47
d4d53770
JR
48%description -l pl.UTF-8
49Dialog jest narzędziem umożliwiającym stworzenie przyjaznego
50interfejsu użytkownika na terminalu pracującym w trybie tekstowym. Do
51programu dołączone są przykładowe skrypty, ułatwiające rozpoczęcie
9f01d675 52pracy.
92313b76 53
d4d53770
JR
54%description -l tr.UTF-8
55Dialog, metin ekran için kullanıcı arayüzleri oluşturmayı sağlayan bir
56araçtır. Kullanıcıya seçenekleri göstermek veya sorular sormak için,
57dialog 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 61Summary: Libraries and headers files for dialog
9894b95b 62Summary(pl.UTF-8): Biblioteki i pliki nagółwkowe dla dialog
d2a77f7f 63Group: Development/Libraries
47c16b19
JB
64Requires: %{name} = %{epoch}:%{version}-%{release}
65Requires: ncurses-devel >= 5.4
d2a77f7f
AF
66
67%description devel
4ef7c0e1 68Libraries and header files for dialog.
d2a77f7f 69
d4d53770
JR
70%description devel -l pl.UTF-8
71Biblioteki i pliki nagłówkowe dla dialog.
d2a77f7f 72
4ef7c0e1 73%package static
d2a77f7f 74Summary: Static dialog library
9894b95b 75Summary(pl.UTF-8): Statyczna biblioteka dialog
d2a77f7f 76Group: Development/Libraries
47c16b19 77Requires: %{name}-devel = %{epoch}:%{version}-%{release}
d2a77f7f
AF
78
79%description static
25dd5c02 80Static dialog library.
d2a77f7f 81
d4d53770 82%description static -l pl.UTF-8
25dd5c02 83Statyczna 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
90mv 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 102rm -rf $RPM_BUILD_ROOT
47c16b19 103install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
92313b76 104
3a3a8d17 105%{__make} install \
53ff8074 106 DESTDIR=$RPM_BUILD_ROOT
d2a77f7f 107
47c16b19 108cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
92313b76 109
7cc32508 110bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
60b655a2 111
53ff8074
AF
112%find_lang %{name}
113
92313b76 114%clean
115rm -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
This page took 0.092865 seconds and 4 git commands to generate.