File pinfo.spec of Package pinfo
#
# spec file for package pinfo
#
# Copyright (c) 2012 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: pinfo
BuildRequires: libtool
BuildRequires: makeinfo
BuildRequires: ncurses-devel
Version: 0.6.10
Release: 0
Source: %{name}-%{version}.tar.bz2
Patch1: pinfo-0.6.9-nul-strings.patch
Patch2: pinfo-0.6.10-tinfo.patch
Url: https://alioth.debian.org/projects/pinfo/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Lynx-style Info Browser
License: GPL-2.0+
Group: Productivity/Publishing/Texinfo
PreReq: %install_info_prereq
%description
Pinfo is a curses based, Lynx-style info browser.
Authors:
--------
Przemek Borys <pborys@dione.ids.pl>
%prep
%setup
%patch1
%patch2
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
./autogen.sh
%configure \
--with-curses=%{_prefix}
make
%install
make DESTDIR=$RPM_BUILD_ROOT/ install
%find_lang %{name}
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%doc %{_mandir}/man1/pinfo.1%{ext_man}
%doc %{_infodir}/pinfo.info%{ext_info}
%config /etc/pinforc
%{_bindir}/pinfo
%changelog