Replace obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
4a91de9a26
commit
47faeb9b87
32
pinfo.spec
32
pinfo.spec
@ -1,7 +1,7 @@
|
||||
Summary: An info file viewer
|
||||
Name: pinfo
|
||||
Version: 0.6.10
|
||||
Release: 18%{?dist}
|
||||
Release: 19%{?dist}
|
||||
Group: System Environment/Base
|
||||
License: GPLv2
|
||||
URL: http://pinfo.alioth.debian.org
|
||||
@ -16,9 +16,6 @@ Patch6: pinfo-0.6.10-man.patch
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: automake gettext-devel libtool texinfo
|
||||
Requires: xdg-utils
|
||||
# for /sbin/install-info
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
|
||||
%description
|
||||
Pinfo is an info file (or man page) viewer with a user interface
|
||||
@ -26,23 +23,15 @@ similar to the Lynx Web browser's interface. Pinfo supports searching
|
||||
using regular expressions, and is based on the ncurses library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .xdg
|
||||
%patch2 -p1 -b .infosuff
|
||||
%patch3 -p1 -b .nogroup
|
||||
%patch4 -p1 -b .mansection
|
||||
%patch5 -p1 -b .infopath
|
||||
%patch6 -p1 -b .man
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure --without-readline
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%make_install
|
||||
# These symbolic links conflict with actual binaries in perl-pmtools (bz 437612)
|
||||
# ln -sf pinfo $RPM_BUILD_ROOT%{_bindir}/pman
|
||||
# ln -sf pinfo.1 $RPM_BUILD_ROOT%{_mandir}/man1/pman.1
|
||||
@ -61,17 +50,10 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%{_mandir}/man1/pinfo.1*
|
||||
# %{_mandir}/man1/pman.1*
|
||||
|
||||
%post
|
||||
/sbin/install-info %{_infodir}/pinfo.info.gz %{_infodir}/dir &> /dev/null
|
||||
:
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
/sbin/install-info --delete %{_infodir}/pinfo.info.gz %{_infodir}/dir &> /dev/null
|
||||
fi
|
||||
:
|
||||
|
||||
%changelog
|
||||
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.10-19
|
||||
- Replace obsolete scriptlets
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user