]> git.pld-linux.org Git - packages/dialog.git/blobdiff - dialog.spec
- fixed URLs
[packages/dialog.git] / dialog.spec
index 5b26c470934cbb4bda12f4041a5b8dd412cf45dd..9bd6bcd625da1f06b4679de57520228643e47b00 100644 (file)
@@ -1,70 +1,80 @@
-Summary:       A program to build tty dialog boxes
-Summary(de):   Ein Programm zum Erstellen von tty-Dialogfeldern  
-Summary(fr):   Programme pour construire des boîtes de dialogue en mode texte
-Summary(pl):   Dialog tworzy okienkowy interfejs u¿ytkownika na terminalu tekstowym.
-Summary(tr):   tty diyalog kutularý oluþturan bir program
-Name:          dialog
-Version:       0.69
-Release:       1
-Copyright:     GPL
-Group:                 Utilities/Terminal
-Group(pl):     Narzêdzia/Terminal
-Source:        ftp://iride.unipv.it/pub/linux/dialog/%{name}-%{version}.tar.gz
-Patch0:                dialog-shared.patch
-Patch1:                dialog-manpath.patch
-BuildPrereq:   gpm-devel
-Buildroot:     /tmp/%{name}-%{version}-root
+Summary:       A program to build tty dialog boxes
+Summary(de):   Ein Programm zum Erstellen von tty-Dialogfeldern
+Summary(fr):   Programme pour construire des boîtes de dialogue en mode texte
+Summary(pl):   Dialog tworzy okienkowy interfejs u¿ytkownika na terminalu tekstowym
+Summary(tr):   tty diyalog kutularý oluþturan bir program
+Name:          dialog
+Version:       0.69
+Release:       6
+Epoch:         1
+License:       GPL
+Group:         Applications/Terminal
+Source0:       ftp://iride.unipv.it/pub/linux/dialog/%{name}-%{version}.tar.gz
+# other (more recent but probably worse) dialog source:
+# ftp://AdvancedResearch.org/pub/vstemen/%{name}-0.7.tar.gz
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Patch0:                %{name}-shared.patch
+Patch1:                %{name}-manpath.patch
+Patch2:                %{name}-awk.patch
+Patch3:                %{name}-examples.patch
+Patch4:                %{name}-opt.patch
+Patch5:                %{name}-menumouse.patch
+Patch6:                %{name}-menuborder.patch
+URL:           http://www.AdvancedResearch.org/dialog/
+BuildRequires: autoconf
+BuildRequires: gpm-devel
+BuildRequires: ncurses-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Dialog is a utility that allows you to build user interfaces in
-a TTY (text mode only).  You can call dialog from within a shell
-script to ask the user questions or present with choices in a more
-user friendly manner.  See /usr/doc/dialog-*/samples for some
-examples.
+Dialog is a utility that allows you to build user interfaces in a TTY
+(text mode only). You can call dialog from within a shell script to
+ask the user questions or present with choices in a more user friendly
+manner.
 
 %description -l de
-Dialog ist ein Dienstprogramm, das das Erstellen einer Benutzeroberfläche
-in einem TTY ermöglicht (nur Textmodus). Sie können dialog mit einem
-Shell-Script aufrufen, um dem Benutzer auf benutzerfreundliche Weise
-Fragen zu stellen oder eine Auswahl anzubieten. Unter
-/usr/src/examples/dialog-%{version} finden Sie einige Beispiele.
+Dialog ist ein Dienstprogramm, das das Erstellen einer
+Benutzeroberfläche in einem TTY ermöglicht (nur Textmodus). Sie können
+dialog mit einem Shell-Script aufrufen, um dem Benutzer auf
+benutzerfreundliche Weise Fragen zu stellen oder eine Auswahl
+anzubieten. Unter /usr/src/examples/dialog-%{version} finden Sie
+einige Beispiele.
 
 %description -l fr
 dialog est un utilitaire permettant de construire des interfaces
-utilisateur en mode texte. On peut appeler dialog à partir d'un
-script shell pour poser des questions à l'utilisateur ou lui
-proposer des choix de façon conviviale. 
-Voir /usr/src/examples/dialog-%{version} pour quelques exemples.
+utilisateur en mode texte. On peut appeler dialog à partir d'un script
+shell pour poser des questions à l'utilisateur ou lui proposer des
+choix de façon conviviale. Voir /usr/src/examples/dialog-%{version}
+pour quelques exemples.
 
 %description -l pl
-Dialog jest narzêdziem umo¿liwiaj±cym stworzenie przyjaznego interfejsu
-u¿ytkownika na terminalu pracuj±cym w trybie tekstowym. Do programu
-do³±czone s± przyk³adowe skrypty, u³atwiaj±ce rozpoczêcie pracy.
+Dialog jest narzêdziem umo¿liwiaj±cym stworzenie przyjaznego
+interfejsu u¿ytkownika na terminalu pracuj±cym w trybie tekstowym. Do
+programu do³±czone s± przyk³adowe skrypty, u³atwiaj±ce rozpoczêcie
+pracy.
 
 %description -l tr
 Dialog, metin ekran için kullanýcý arayüzleri oluþturmayý saðlayan bir
-araçtýr. Kullanýcýya seçenekleri göstermek veya sorular sormak için, dialog
-programýný bir kabuk programcýðý içinden çaðýrabilirsiniz. Örnekler için
-/usr/src/examples/dialog-%{version} dizinine bakýnýz.
+araçtýr. Kullanýcýya seçenekleri göstermek veya sorular sormak için,
+dialog programýný bir kabuk programcýðý içinden çaðýrabilirsiniz.
+Örnekler için /usr/src/examples/dialog-%{version} dizinine bakýnýz.
 
-%package       devel
+%package devel
 Summary:       Libraries and headers files for dialog
 Summary(pl):   Biblioteki i pliki nagó³wkowe dla dialog
 Group:         Development/Libraries
-Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
 
 %description devel
-Libraries and headers files for dialog.
+Libraries and header files for dialog.
 
 %description devel -l pl
-Biblioteki i pliki nagó³wkowe dla dialog.
+Biblioteki i pliki nag³ówkowe dla dialog.
 
-%package       static
+%package static
 Summary:       Static dialog library
 Summary(pl):   Statyczna biblioteka dialog
 Group:         Development/Libraries
-Group(pl):      Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
 
 %description static
@@ -75,72 +85,56 @@ Statyczna biblioteka dialog.
 
 %prep
 %setup  -q
-%patch0 -p1 
+%patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
 
 %build
-autoconf && %configure
+autoconf
+%configure
 
-make depend shared all
+%{__make} depend shared all
 
 %install
-rm -rf $RPM_BUILD_ROOT 
-install -d $RPM_BUILD_ROOT%{_prefix}/{bin,share/man/man1,src/dialog}
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name}}
 
-make \
+%{__make} install \
     prefix=$RPM_BUILD_ROOT%{_prefix} \
-    mandir=$RPM_BUILD_ROOT%{_mandir} \
-    install
+    mandir=$RPM_BUILD_ROOT%{_mandir}
 
-cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_prefix}/src/dialog
+cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* dialog.lsm README CMDLINE
+gzip -9nf dialog.lsm README CMDLINE
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc {dialog.lsm,README,CMDLINE}.gz
-
 %attr(755,root,root) %{_bindir}/dialog
 %attr(755,root,root) %{_libdir}/lib*.so.*
 %{_mandir}/man1/*
+%lang(hu) %{_mandir}/hu/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
 
 %files devel
 %defattr(644,root,root,755)
-
-%attr(-  ,root,root) /usr/src/dialog
+%doc *.gz
 %attr(755,root,root) %{_libdir}/lib*.so
-
 %{_includedir}/*
 %{_mandir}/man3/*
+%attr(- ,root,root) %{_examplesdir}/dialog
 
 %files static
 %defattr(644,root,root,755)
-
 %{_libdir}/lib*.a
-
-%changelog
-* Wed Apr 28 1999 Artur Frysiak <wiget@pld.org.pl>
-  [0.69-1]
-- upgrade to 0.69
-- changed source URL
-- added libs, devel and static subpackage
-- fixed coping samples
-
-* Thu Apr 22 1999 Artur Frysiak <wiget@pld.org.pl>
-  [0.6-15]
-- compiled on rpm 3
-- gzipped docs
-- samples moved to /usr/src/examples
-
-* Sun Oct 18 1998 Marcin Korzonek <mkorz@shadow.eu.org>
-  [0.6-13]
-- added pl translation,
-- allow building from non root account,
-- defined files permission,
-- removed INSTALL and COPYING from docs,
-- rewritten %install section.
This page took 0.516083 seconds and 4 git commands to generate.