- use libtinfo instead libncurses
- use autoreconf (=> add BuildRequires: automake - for aclocal)
This commit is contained in:
parent
0bcdfd226c
commit
fb2b3bbef8
22
dump-0.4b41-libtinfo.patch
Normal file
22
dump-0.4b41-libtinfo.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -up dump-0.4b41/configure.in.libtinfo dump-0.4b41/configure.in
|
||||
--- dump-0.4b41/configure.in.libtinfo 2008-01-11 12:31:37.000000000 +0100
|
||||
+++ dump-0.4b41/configure.in 2008-01-11 12:32:31.000000000 +0100
|
||||
@@ -477,13 +477,16 @@ dnl Check for ncurses or termcap librari
|
||||
dnl
|
||||
AC_CHECK_LIB(ncurses, tgetent, [ncurses_lib=yes], [ncurses_lib=no])
|
||||
AC_CHECK_LIB(termcap, tgetent, [termcap_lib=yes], [termcap_lib=no])
|
||||
+AC_CHECK_LIB(tinfo, tgetent, [tinfo_lib=yes], [tinfo_lib=no])
|
||||
|
||||
-if test "$ncurses_lib" = no -a "$termcap_lib" = no; then
|
||||
+if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then
|
||||
if test "$READLINE" = "yes"; then
|
||||
AC_MSG_ERROR(You need to install the ncurses or termcap library or configure without --enable-readline)
|
||||
fi
|
||||
fi
|
||||
-if test "$ncurses_lib" = yes; then
|
||||
+if test "$tinfo_lib" = yes; then
|
||||
+ rdllib="-ltinfo"
|
||||
+elif test "$ncurses_lib" = yes; then
|
||||
rdllib="-lncurses"
|
||||
elif test "$termcap_lib" = yes; then
|
||||
rdllib="-ltermcap"
|
||||
13
dump.spec
13
dump.spec
@ -3,7 +3,7 @@
|
||||
Summary: Programs for backing up and restoring ext2/ext3 filesystems
|
||||
Name: dump
|
||||
Version: 0.4b41
|
||||
Release: 6%{?dist}
|
||||
Release: 6.1%{?dist}
|
||||
License: BSD
|
||||
Group: Applications/Archiving
|
||||
URL: http://dump.sourceforge.net/
|
||||
@ -12,10 +12,11 @@ Patch0: dump-selinux.patch
|
||||
Patch1: dump-dmfix.patch
|
||||
Patch2: dump-immutable.patch
|
||||
Patch3: dump-0.4b37-2TB.patch
|
||||
Patch4: dump-0.4b41-libtinfo.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildRequires: e2fsprogs-devel >= 1.18, readline-devel >= 4.2
|
||||
BuildRequires: zlib-devel, bzip2-devel, ncurses-devel
|
||||
BuildRequires: device-mapper-devel, libselinux-devel, libsepol-devel, autoconf
|
||||
BuildRequires: zlib-devel, bzip2-devel, ncurses-devel, autoconf, automake
|
||||
BuildRequires: device-mapper-devel, libselinux-devel, libsepol-devel
|
||||
# This Requires is now mandatory because we only ship static binaries, and
|
||||
# need to ensure the "disk" group is created before installation (#60461)
|
||||
Requires: setup, e2fsprogs-libs, zlib, bzip2-libs, device-mapper
|
||||
@ -50,8 +51,10 @@ restoring files from a backup), and tar (an archiving program).
|
||||
%patch1 -p1 -b .dmfix
|
||||
%patch2 -p1 -b .orig
|
||||
%patch3 -p1 -b .2TB
|
||||
%patch4 -p1 -b .libtinfo
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
|
||||
# XXX --enable-kerberos needs krcmd
|
||||
%configure --disable-static \
|
||||
@ -121,6 +124,10 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man8/rmt.8*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 11 2008 Adam Tkac <atkac redhat com> 0.4b41-6.1
|
||||
- use libtinfo instead libncurses
|
||||
- use autoreconf (=> add BuildRequires: automake - for aclocal)
|
||||
|
||||
* Wed Aug 22 2007 Adam Tkac <atkac redhat com> 0.4b41-6
|
||||
- rebuild (BuildID feature)
|
||||
- use device-mapper-devel instead device-mapper in BuildRequires
|
||||
|
||||
Loading…
Reference in New Issue
Block a user