File lv.spec of Package lv
#
# spec file for package lv (Version 4.51)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: lv
BuildRequires: ncurses-devel
License: GPL v2 or later
Group: Productivity/Text/Utilities
AutoReqProv: on
Provides: locale(ja;ko;zh)
Version: 4.51
Release: 125
Url: http://www.ff.iij4u.or.jp/~nrt/lv/
Source: http://www.ff.iij4u.or.jp/~nrt/freeware/lv451.tar.bz2
Patch0: lv-add-lgrep-man-page.patch
Patch2: lv-fixes.patch
Patch3: lv-strip.patch
Patch4: missing-include.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Powerful, Multilingual File Viewer, Same User Interface as "Less"
%description
Lv is a powerful, multilingual file viewer. Apparently, lv looks like
less (1), a representative file viewer on UNIX, so UNIX people (and
less people on other OSs) do not have to learn a burdensome new
interface.
Lv can decode and encode multilingual streams through many coding
systems. Lv can be used as a coding system translation filter.
Lv can recognize multibyte patterns as regular expressions, and
provides multilingual grep (1) functionality under the name lgrep.
Lv can recognize ANSI escape sequences for text decoration.
Authors:
--------
NARITA Tomio <nrt@ff.iij4u.or.jp>
%prep
%setup -n lv451
%patch0 -p1 -b .add-lgrep-man-page
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
# update config.{guess,sub}
%{?suse_update_config:%{suse_update_config -f src }}
pushd build
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing" \
../src/configure --prefix=/usr \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--sysconfdir=/etc
make
popd
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT%{_mandir}/man1
make -C build \
prefix=$RPM_BUILD_ROOT/usr \
mandir=$RPM_BUILD_ROOT%{_mandir} \
infodir=$RPM_BUILD_ROOT%{_infodir} \
sysconfdir=$RPM_BUILD_ROOT/etc \
install
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%doc GPL.txt README *.html hello*
%doc %{_mandir}/man1/*
/usr/bin/*
/usr/lib/lv
%changelog
* Thu Mar 29 2007 rguenther@suse.de
- add ncurses-devel BuildRequires.
* Mon Jul 17 2006 mfabian@suse.de
- update to 4.51.
+ encoding detection improved, especially for UTF-8.
+ various segfaults fixed.
- remove lv-null.patch (fixed upstream).
- add missing #include <string.h>.
* Tue Feb 28 2006 mfabian@suse.de
- add "Provides: locale(ja;ko;zh)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 schwab@suse.de
- Don't strip binaries.
* Tue Oct 11 2005 meissner@suse.de
- use -fno-strict-aliasing, fixed some aliasing issues,
and one uninitialized.
* Mon Jan 24 2005 meissner@suse.de
- Do not use #define NULL 0 , but NULL from stddef.h.
* Tue May 20 2003 mfabian@suse.de
- update to 4.49.5: Security fix:
Don't read .lv located at the current directory, except for
MSDOS. This fix prevent possible local root exploit using config
files (CAN-2003-0188).
* Thu May 08 2003 mfabian@suse.de
- add lgrep man page as a .so link to the lv man page
* Fri Feb 02 2001 mfabian@suse.de
- new package: lv 4.49.4