forked from pool/dialog
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/dialog?expand=0&rev=21
This commit is contained in:
11
dialog.spec
11
dialog.spec
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user