forked from pool/dialog
Accepting request 156182 from home:Dmitry_R:WIP
Update to version 1.2-20121230 OBS-URL: https://build.opensuse.org/request/show/156182 OBS-URL: https://build.opensuse.org/package/show/Base:System/dialog?expand=0&rev=20
This commit is contained in:
34
dialog.spec
34
dialog.spec
@@ -18,18 +18,18 @@
|
||||
|
||||
Name: dialog
|
||||
Url: http://invisible-island.net/dialog/
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
Release: 0
|
||||
%define somajor 6
|
||||
%define src_date 20121230
|
||||
%define somajor 11
|
||||
Summary: Menus and Input Boxes for Shell Scripts
|
||||
License: LGPL-2.1
|
||||
Group: Development/Tools/Other
|
||||
Source: dialog-1.1-20080727.tar.bz2
|
||||
Source1: dialog.ko.po.bz2
|
||||
Patch: dialog-1.1-20080727.dif
|
||||
Source: ftp://invisible-island.net/dialog/%{name}-%{version}-%{src_date}.tgz
|
||||
Patch1: dialog-libs.patch
|
||||
Patch2: dialog-gcc-warnings.patch
|
||||
BuildRequires: libtool
|
||||
BuildRequires: ncurses-devel
|
||||
#BuildRequires: gpm
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -50,10 +50,20 @@ Requires: libdialog%{somajor} = %{version}
|
||||
%description devel
|
||||
This program lets you use menus and dialog boxes in shell scripts.
|
||||
|
||||
%package examples
|
||||
Summary: Examples of using dialog tool
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description examples
|
||||
Examples of using menus and dialog boxes in shell scripts.
|
||||
|
||||
%prep
|
||||
%setup -n dialog-1.1-20080727
|
||||
bzcat %{S:1} > po/ko.po
|
||||
%patch
|
||||
%setup -n %{name}-%{version}-%{src_date}
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
chmod -x samples/*
|
||||
|
||||
%build
|
||||
CC=gcc
|
||||
@@ -68,6 +78,7 @@ bzcat %{S:1} > po/ko.po
|
||||
break
|
||||
done
|
||||
export CC LIBS CFLAGS
|
||||
|
||||
%configure \
|
||||
--enable-nls \
|
||||
--enable-included-msgs \
|
||||
@@ -75,6 +86,7 @@ bzcat %{S:1} > po/ko.po
|
||||
--with-ncursesw \
|
||||
--with-libtool \
|
||||
--includedir=%{_includedir}/dialog
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@@ -108,4 +120,8 @@ rm -rf %{buildroot}%{_datadir}/locale/rm/ # Rhaeto-Romance
|
||||
%{_includedir}/dialog/
|
||||
%{_mandir}/man3/dialog.3.gz
|
||||
|
||||
%files examples
|
||||
%defattr(-,root,root)
|
||||
%doc samples/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user