]> git.pld-linux.org Git - packages/dialog.git/blob - dialog.spec
- outdated (no manpager in current dialog)
[packages/dialog.git] / dialog.spec
1 %define         ver   1.0
2 %define         sdate 20060126
3 Summary:        A program to build tty dialog boxes
4 Summary(de):    Ein Programm zum Erstellen von tty-Dialogfeldern
5 Summary(fr):    Programme pour construire des boîtes de dialogue en mode texte
6 Summary(pl):    Dialog tworzy okienkowy interfejs u¿ytkownika na terminalu tekstowym
7 Summary(tr):    tty diyalog kutularý oluþturan bir program
8 Name:           dialog
9 Version:        %{ver}.%{sdate}
10 Release:        0.9
11 Epoch:          1
12 License:        LGPL v2.1
13 Group:          Applications/Terminal
14 Source0:        ftp://invisible-island.net/dialog/%{name}-%{ver}-%{sdate}.tgz
15 # Source0-md5:  48dc347ac316fb40bf2ab36d955d0cc7
16 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
17 # Source1-md5:  932081790cd8aa857822bd2b0eafa5bb
18 Patch0:         %{name}-examples.patch
19 URL:            http://invisible-island.net/dialog/dialog.html
20 BuildRequires:  autoconf
21 BuildRequires:  gpm-devel
22 BuildRequires:  ncurses-devel
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Dialog is a utility that allows you to build user interfaces in a TTY
27 (text mode only). You can call dialog from within a shell script to
28 ask the user questions or present with choices in a more user friendly
29 manner.
30
31 %description -l de
32 Dialog ist ein Dienstprogramm, das das Erstellen einer
33 Benutzeroberfläche in einem TTY ermöglicht (nur Textmodus). Sie können
34 dialog mit einem Shell-Script aufrufen, um dem Benutzer auf
35 benutzerfreundliche Weise Fragen zu stellen oder eine Auswahl
36 anzubieten. Unter /usr/src/examples/dialog-%{version} finden Sie
37 einige Beispiele.
38
39 %description -l fr
40 dialog est un utilitaire permettant de construire des interfaces
41 utilisateur en mode texte. On peut appeler dialog à partir d'un script
42 shell pour poser des questions à l'utilisateur ou lui proposer des
43 choix de façon conviviale. Voir /usr/src/examples/dialog-%{version}
44 pour quelques exemples.
45
46 %description -l pl
47 Dialog jest narzêdziem umo¿liwiaj±cym stworzenie przyjaznego
48 interfejsu u¿ytkownika na terminalu pracuj±cym w trybie tekstowym. Do
49 programu do³±czone s± przyk³adowe skrypty, u³atwiaj±ce rozpoczêcie
50 pracy.
51
52 %description -l tr
53 Dialog, metin ekran için kullanýcý arayüzleri oluþturmayý saðlayan bir
54 araçtýr. Kullanýcýya seçenekleri göstermek veya sorular sormak için,
55 dialog programýný bir kabuk programcýðý içinden çaðýrabilirsiniz.
56 Örnekler için /usr/src/examples/dialog-%{version} dizinine bakýnýz.
57
58 %package devel
59 Summary:        Libraries and headers files for dialog
60 Summary(pl):    Biblioteki i pliki nagó³wkowe dla dialog
61 Group:          Development/Libraries
62 Requires:       %{name} = %{epoch}:%{version}
63
64 %description devel
65 Libraries and header files for dialog.
66
67 %description devel -l pl
68 Biblioteki i pliki nag³ówkowe dla dialog.
69
70 %package static
71 Summary:        Static dialog library
72 Summary(pl):    Statyczna biblioteka dialog
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{epoch}:%{version}
75
76 %description static
77 Static dialog library.
78
79 %description static -l pl
80 Statyczna biblioteka dialog.
81
82 %prep
83 %setup -q -n %{name}-%{ver}-%{sdate}
84 #patch0 -p1 - example scripts need similar fixes 
85
86 %build
87 %configure \
88         --with-libtool \
89         --with-ncursesw \
90         --enable-widec \
91         --enable-nls
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name}}
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}
103
104 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
105
106 %find_lang %{name}
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files -f %{name}.lang
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/dialog
117 %attr(755,root,root) %{_libdir}/lib*.so.*
118 %{_mandir}/man1/*
119 %lang(hu) %{_mandir}/hu/man1/*
120 %lang(pl) %{_mandir}/pl/man1/*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %doc README CHANGES
125 %attr(755,root,root) %{_libdir}/lib*.so
126 %{_libdir}/lib*.la
127 %{_includedir}/*
128 %{_mandir}/man3/*
129 %attr(- ,root,root) %{_examplesdir}/dialog
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/lib*.a
This page took 0.263941 seconds and 3 git commands to generate.