forked from pool/dialog
Accepting request 150429 from Base:System
fix missed -devel package (forwarded request 150105 from Dmitry_R) OBS-URL: https://build.opensuse.org/request/show/150429 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dialog?expand=0&rev=21
This commit is contained in:
commit
367793f425
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 27 18:34:25 UTC 2013 - dmitry_r@opensuse.org
|
||||||
|
|
||||||
|
- Build with libtool using
|
||||||
|
- Add devel package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
73
dialog.spec
73
dialog.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package dialog
|
# spec file for package dialog
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,24 +16,40 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: dialog
|
Name: dialog
|
||||||
BuildRequires: ncurses-devel
|
|
||||||
#BuildRequires: gpm
|
|
||||||
License: LGPL-2.1+
|
|
||||||
Url: http://invisible-island.net/dialog/
|
Url: http://invisible-island.net/dialog/
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 40
|
Release: 0
|
||||||
|
%define somajor 6
|
||||||
Summary: Menus and Input Boxes for Shell Scripts
|
Summary: Menus and Input Boxes for Shell Scripts
|
||||||
Group: Development/Libraries/Other
|
License: LGPL-2.1+
|
||||||
|
Group: Development/Tools/Other
|
||||||
Source: dialog-1.1-20080727.tar.bz2
|
Source: dialog-1.1-20080727.tar.bz2
|
||||||
Source1: dialog.ko.po.bz2
|
Source1: dialog.ko.po.bz2
|
||||||
Patch: dialog-1.1-20080727.dif
|
Patch: dialog-1.1-20080727.dif
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
|
#BuildRequires: gpm
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This program lets you use menus and dialog boxes in shell scripts.
|
This program lets you use menus and dialog boxes in shell scripts.
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n dialog-1.1-20080727
|
%setup -n dialog-1.1-20080727
|
||||||
bzcat %{S:1} > po/ko.po
|
bzcat %{S:1} > po/ko.po
|
||||||
@ -52,23 +68,44 @@ bzcat %{S:1} > po/ko.po
|
|||||||
break
|
break
|
||||||
done
|
done
|
||||||
export CC LIBS CFLAGS
|
export CC LIBS CFLAGS
|
||||||
%configure \
|
%configure \
|
||||||
--enable-nls \
|
--enable-nls \
|
||||||
--enable-included-msgs \
|
--enable-included-msgs \
|
||||||
--enable-widec \
|
--enable-widec \
|
||||||
--with-ncursesw
|
--with-ncursesw \
|
||||||
make %{?_smp_mflags}
|
--with-libtool \
|
||||||
|
--includedir=%{_includedir}/dialog
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
rm -rf %{buildroot}%{_datadir}/locale/mg/ # Malagasy (Malayalam??)
|
|
||||||
rm -rf %{buildroot}%{_datadir}/locale/rm/ # Rhaeto-Romance
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
||||||
%find_lang %name
|
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
|
||||||
|
|
||||||
%files -f %name.lang
|
%files -f %name.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES README VERSION COPYING
|
%doc CHANGES README VERSION COPYING
|
||||||
%{_bindir}/dialog
|
%{_bindir}/dialog
|
||||||
%_mandir/man1/dialog.1.gz
|
%{_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
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user