2007-01-16 00:09:12 +01:00
|
|
|
#
|
2011-09-20 09:47:30 +02:00
|
|
|
# spec file for package dialog
|
2007-01-16 00:09:12 +01:00
|
|
|
#
|
2013-01-30 14:37:01 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:09:12 +01:00
|
|
|
#
|
2008-08-15 22:55:40 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:09:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dialog
|
2008-04-10 21:19:30 +02:00
|
|
|
Url: http://invisible-island.net/dialog/
|
|
|
|
Version: 1.1
|
2013-01-30 14:37:01 +01:00
|
|
|
Release: 0
|
|
|
|
%define somajor 6
|
2007-01-16 00:09:12 +01:00
|
|
|
Summary: Menus and Input Boxes for Shell Scripts
|
2013-01-31 19:59:28 +01:00
|
|
|
License: LGPL-2.1
|
2013-01-30 14:37:01 +01:00
|
|
|
Group: Development/Tools/Other
|
2008-08-15 22:55:40 +02:00
|
|
|
Source: dialog-1.1-20080727.tar.bz2
|
2010-07-02 16:41:19 +02:00
|
|
|
Source1: dialog.ko.po.bz2
|
2008-08-15 22:55:40 +02:00
|
|
|
Patch: dialog-1.1-20080727.dif
|
2013-01-30 14:37:01 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
#BuildRequires: gpm
|
2007-01-16 00:09:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This program lets you use menus and dialog boxes in shell scripts.
|
|
|
|
|
2013-01-30 14:37:01 +01:00
|
|
|
%package -n libdialog%{somajor}
|
|
|
|
Summary: Menus and Input Boxes for Shell Scripts
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdialog%{somajor}
|
|
|
|
This program lets you use menus and dialog boxes in shell scripts.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Menus and Input Boxes for Shell Scripts
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: libdialog%{somajor} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This program lets you use menus and dialog boxes in shell scripts.
|
|
|
|
|
2007-01-16 00:09:12 +01:00
|
|
|
%prep
|
2008-08-15 22:55:40 +02:00
|
|
|
%setup -n dialog-1.1-20080727
|
2010-07-02 16:41:19 +02:00
|
|
|
bzcat %{S:1} > po/ko.po
|
2007-01-16 00:09:12 +01:00
|
|
|
%patch
|
|
|
|
|
|
|
|
%build
|
|
|
|
CC=gcc
|
2008-08-15 22:55:40 +02:00
|
|
|
LIBS=""
|
2007-01-16 00:09:12 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -pipe -Wall"
|
2008-08-21 17:51:35 +02:00
|
|
|
for ncurses_conf in ncursesw6-config ncurstesw5-config ; do
|
2008-08-15 22:55:40 +02:00
|
|
|
ncurses_conf=$(type -p $ncurses_conf 2> /dev/null) || continue
|
|
|
|
LIBS="${LIBS:+$LIBS }$($ncurses_conf --libs)"
|
|
|
|
CFLAGS="${CFLAGS:+$CFLAGS }$($ncurses_conf --cflags)"
|
|
|
|
NCURSES_CONFIG=$ncurses_conf
|
|
|
|
export NCURSES_CONFIG
|
|
|
|
break
|
|
|
|
done
|
|
|
|
export CC LIBS CFLAGS
|
2013-01-30 14:37:01 +01:00
|
|
|
%configure \
|
|
|
|
--enable-nls \
|
|
|
|
--enable-included-msgs \
|
|
|
|
--enable-widec \
|
|
|
|
--with-ncursesw \
|
|
|
|
--with-libtool \
|
|
|
|
--includedir=%{_includedir}/dialog
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:09:12 +01:00
|
|
|
|
|
|
|
%install
|
2013-01-30 14:37:01 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
|
|
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
|
|
|
|
%find_lang %name
|
|
|
|
|
|
|
|
%post -n libdialog%{somajor} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdialog%{somajor} -p /sbin/ldconfig
|
2007-01-16 00:09:12 +01:00
|
|
|
|
|
|
|
%files -f %name.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES README VERSION COPYING
|
2008-04-10 21:19:30 +02:00
|
|
|
%{_bindir}/dialog
|
2013-01-30 14:37:01 +01:00
|
|
|
%{_mandir}/man1/dialog.1.gz
|
|
|
|
|
|
|
|
%files -n libdialog%{somajor}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libdialog.so.%{somajor}*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dialog-config
|
|
|
|
%{_libdir}/libdialog.so
|
|
|
|
%{_includedir}/dialog/
|
|
|
|
%{_mandir}/man3/dialog.3.gz
|
2007-01-16 00:09:12 +01:00
|
|
|
|
2007-04-01 12:07:20 +02:00
|
|
|
%changelog
|