SHA256
1
0
forked from pool/dialog
2013-02-28 11:18:27 +00:00
committed by Git OBS Bridge
parent e215f966cd
commit 7083d465c9
5 changed files with 176 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ Summary: Menus and Input Boxes for Shell Scripts
License: LGPL-2.1
Group: Development/Tools/Other
Source: ftp://invisible-island.net/dialog/%{name}-%{version}-%{src_date}.tgz
Source1: dialog.rc
Source2: dialog.ko.po.bz2
# PATCH-FIX-OPENSUSE : fix shadow during resizing terminal
Patch0: dialog-1.2-20121230.dif
Patch1: dialog-libs.patch
Patch2: dialog-gcc-warnings.patch
BuildRequires: libtool
@@ -61,6 +65,8 @@ Examples of using menus and dialog boxes in shell scripts.
%prep
%setup -n %{name}-%{version}-%{src_date}
bzcat %{S:2} > po/ko.po
%patch0 -p0
%patch1 -p1
%patch2 -p1
chmod -x samples/*
@@ -85,6 +91,7 @@ chmod -x samples/*
--enable-widec \
--with-ncursesw \
--with-libtool \
--disable-rpath-hack \
--includedir=%{_includedir}/dialog
make %{?_smp_mflags}
@@ -97,6 +104,9 @@ find %{buildroot}%{_libdir} -name '*.a' -type f -delete -print
rm -rf %{buildroot}%{_datadir}/locale/mg/ # Malagasy (Malayalam??)
rm -rf %{buildroot}%{_datadir}/locale/rm/ # Rhaeto-Romance
mkdir %{buildroot}/etc
install -m 0644 %{S:1} %{buildroot}/etc/dialogrc
%find_lang %name
%post -n libdialog%{somajor} -p /sbin/ldconfig
@@ -106,6 +116,7 @@ rm -rf %{buildroot}%{_datadir}/locale/rm/ # Rhaeto-Romance
%files -f %name.lang
%defattr(-,root,root)
%doc CHANGES README VERSION COPYING
%config(noreplace) /etc/dialogrc
%{_bindir}/dialog
%{_mandir}/man1/dialog.1.gz