]> git.pld-linux.org Git - packages/dialog.git/blobdiff - dialog.spec
- add --tag=CC to libtool invocations
[packages/dialog.git] / dialog.spec
index 5e7ef8c88e74f99398397cb7d59a95b100338720..9583c11de053cb32b424fa4f18c9959a4d6c31d1 100644 (file)
-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
-BuildPrereq:   ncurses-devel
-BuildPrereq:   gpm-devel
-Requires:      %{name}-libs = %{version}
-Buildroot:     /tmp/%{name}-%{version}-root
+%define                ver     1.1
+%define                sdate   20080819
+Summary:       A program to build tty dialog boxes
+Summary(de.UTF-8):     Ein Programm zum Erstellen von tty-Dialogfeldern
+Summary(fr.UTF-8):     Programme pour construire des boîtes de dialogue en mode texte
+Summary(pl.UTF-8):     Dialog tworzy okienkowy interfejs użytkownika na terminalu tekstowym
+Summary(tr.UTF-8):     tty diyalog kutuları oluşturan bir program
+Name:          dialog
+Version:       %{ver}.%{sdate}
+Release:       1
+Epoch:         1
+License:       LGPL v2.1
+Group:         Applications/Terminal
+Source0:       ftp://invisible-island.net/dialog/%{name}-%{ver}-%{sdate}.tgz
+# Source0-md5: 3caebd641a9f337b980becb4444336c5
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 932081790cd8aa857822bd2b0eafa5bb
+Patch0:                %{name}-link.patch
+Patch1:                %{name}-pl.po-update.patch
+URL:           http://invisible-island.net/dialog/dialog.html
+BuildRequires: gettext-devel
+BuildRequires: ncurses-devel >= 5.4
+BuildRequires: libtool
+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.
-
-%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.
-
-%description -l fr
+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.UTF-8
+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 %{_examplesdir}/%{name}-%{version} finden Sie
+einige Beispiele.
+
+%description -l fr.UTF-8
 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.
-
-%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.
-
-%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.
-
-%package libs
-Summary:       Dialog library
-Summary(pl):   Biblioteka dialog
-Group:         Libraries
-Group(pl):     Biblioteki
-
-%description libs
-Dialog library.
-
-%description libs -l pl
-Biblioteka dialog pozwala na stworzenie przyjaznego interfejsu
-u¿ytkownika na terminalu pracuj±cym w trybie tekstowym.
+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 %{_examplesdir}/%{name}-%{version}
+pour quelques exemples.
+
+%description -l pl.UTF-8
+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.UTF-8
+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 %{_examplesdir}/%{name}-%{version} dizinine bakınız.
 
 %package devel
 Summary:       Libraries and headers files for dialog
-Summary(pl):   Biblioteki i pliki nagó³wkowe dla dialog
+Summary(pl.UTF-8):     Biblioteki i pliki nagółwkowe dla dialog
 Group:         Development/Libraries
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-libs = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      ncurses-devel >= 5.4
 
 %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.
+%description devel -l pl.UTF-8
+Biblioteki i pliki nagÅ\82ówkowe dla dialog.
 
 %package static
 Summary:       Static dialog library
-Summary(pl):   Statyczna biblioteka dialog
+Summary(pl.UTF-8):     Statyczna biblioteka dialog
 Group:         Development/Libraries
-Group(pl):      Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static dialog library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka dialog.
 
 %prep
-%setup  -q
-%patch0 -p1 
+%setup -q -n %{name}-%{ver}-%{sdate}
+%patch0 -p1
+%patch1 -p1
 
 %build
-autoconf
+%configure \
+       --with-libtool \
+       --with-ncursesw \
+       --enable-widec \
+       --enable-nls
 
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr
-
-make depend shared all
+%{__make}
 
 %install
-rm -rf $RPM_BUILD_ROOT 
-install -d $RPM_BUILD_ROOT/usr/{bin,man/man1,src/examples/%{name}-%{version}}
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-make prefix=$RPM_BUILD_ROOT/usr install
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-cp -a samples/* dialog.pl $RPM_BUILD_ROOT/usr/src/examples/%{name}-%{version}
+cp -a samples/* dialog.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-strip --strip-unneeded $RPM_BUILD_ROOT/usr/lib/lib*.so.*.*
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       dialog.lsm README CMDLINE
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644,root,root,755)
-%doc {dialog.lsm,README,CMDLINE}.gz
-%attr(755,root,root) /usr/bin/dialog
-%{_mandir}/man1/*
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
-%files libs
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%attr(755,root,root) /usr/lib/lib*.so.*.*
+%doc CHANGES README
+%attr(755,root,root) %{_bindir}/dialog
+%attr(755,root,root) %{_libdir}/libdialog.so.*
+%{_mandir}/man1/*
+%lang(hu) %{_mandir}/hu/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
 
 %files devel
 %defattr(644,root,root,755)
-%doc /usr/src/examples/%{name}-%{version}/checklist
-%doc /usr/src/examples/%{name}-%{version}/gauge-sh
-%doc /usr/src/examples/%{name}-%{version}/gauge.c
-%doc /usr/src/examples/%{name}-%{version}/infobox
-%doc /usr/src/examples/%{name}-%{version}/inputbox
-%doc /usr/src/examples/%{name}-%{version}/menubox
-%doc /usr/src/examples/%{name}-%{version}/msgbox
-%doc /usr/src/examples/%{name}-%{version}/radiolist
-%doc /usr/src/examples/%{name}-%{version}/textbox
-%doc /usr/src/examples/%{name}-%{version}/yesno
-%doc /usr/src/examples/%{name}-%{version}/README
-%doc /usr/src/examples/%{name}-%{version}/Makefile
-%doc %attr(755,root,root) /usr/src/examples/%{name}-%{version}/gauge
-
-%attr(755,root,root) /usr/lib/lib*.so
-/usr/include/*
-%{_mandir}/man3/*
+%attr(755,root,root) %{_bindir}/dialog-config
+%attr(755,root,root) %{_libdir}/libdialog.so
+%{_libdir}/libdialog.la
+%{_includedir}/*.h
+%{_mandir}/man3/dialog.3*
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/README
+%{_examplesdir}/%{name}-%{version}/*.txt
+%{_examplesdir}/%{name}-%{version}/*.??
+%{_examplesdir}/%{name}-%{version}/install
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/[fgkmpry]*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copismall
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/ca*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist9
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/checklist[!9]*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/in[fp]*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/t[ai]*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/tes*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/textbox[0-9]
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/wheel
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/listing
+%dir %{_examplesdir}/%{name}-%{version}/copifuncs
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/a*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/com*
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/copifuncs/copi.[!t]*
+%{_examplesdir}/%{name}-%{version}/copifuncs/copi.t*
+%{_examplesdir}/%{name}-%{version}/copifuncs/ifpatch
+%{_examplesdir}/%{name}-%{version}/dselect
+%{_examplesdir}/%{name}-%{version}/editbox*
 
 %files static
 %defattr(644,root,root,755)
-/usr/lib/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.
-
-* Thu May 7 1998 Michael Maher <mike@redhat.com> 
-- Added Sean Reifschneider <jafo@tummy.com> patches for 
-  infinite loop problems.
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
-- built against new ncurses
-
-* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%{_libdir}/libdialog.a
This page took 0.086297 seconds and 4 git commands to generate.