- cleaned .spec file
This commit is contained in:
parent
3e0d14516f
commit
b6c4b8a5cd
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -e /etc/sysconfig/man-db ]; then
|
if [ -e /etc/sysconfig/man-db ]; then
|
||||||
. /etc/sysconfig/man-db
|
. /etc/sysconfig/man-db
|
||||||
@ -17,7 +17,7 @@ LOCKFILE=/var/lock/man-db.lock
|
|||||||
# two man-db cron scripts get run close to each other to keep
|
# two man-db cron scripts get run close to each other to keep
|
||||||
# them from stepping on each other's toes. The worst that will
|
# them from stepping on each other's toes. The worst that will
|
||||||
# happen is that they will temporarily corrupt the database
|
# happen is that they will temporarily corrupt the database
|
||||||
[ -f $LOCKFILE ] && exit 0
|
[[ -f $LOCKFILE ]] && exit 0
|
||||||
|
|
||||||
trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
|
trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT
|
||||||
touch $LOCKFILE
|
touch $LOCKFILE
|
||||||
|
51
man-db.spec
51
man-db.spec
@ -5,22 +5,26 @@ Summary: Tools for searching and reading man pages
|
|||||||
Name: man-db
|
Name: man-db
|
||||||
Version: 2.6.3
|
Version: 2.6.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
# project man-db GPLv2+
|
# GPLv2+ .. man-db
|
||||||
# Gnulib part GPLv3+
|
# GPLv3+ .. gnulib
|
||||||
License: GPLv2+ and GPLv3+
|
License: GPLv2+ and GPLv3+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://www.nongnu.org/man-db/
|
URL: http://www.nongnu.org/man-db/
|
||||||
|
|
||||||
Source0: http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.xz
|
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
||||||
Source1: man-db.crondaily
|
Source1: man-db.crondaily
|
||||||
Source2: man-db.sysconfig
|
Source2: man-db.sysconfig
|
||||||
|
|
||||||
# Resolves: #655385 - use old format of nroff output
|
# resolves: #655385
|
||||||
Patch1: man-db-2.5.9-sgr.patch
|
Patch0: man-db-2.5.9-sgr.patch
|
||||||
Patch2: man-db-2.6.1-wildcards.patch
|
# resolves: #677669
|
||||||
Patch3: man-db-2.6.1-so-links.patch
|
Patch1: man-db-2.6.1-wildcards.patch
|
||||||
Patch4: man-db-2.6.1-locale-fallback.patch
|
# resolves: #693458
|
||||||
Patch6: man-db-2.6.2-invalid-cache.patch
|
Patch2: man-db-2.6.1-so-links.patch
|
||||||
|
# resolves: #657409
|
||||||
|
Patch3: man-db-2.6.1-locale-fallback.patch
|
||||||
|
# resolves: #841431
|
||||||
|
Patch4: man-db-2.6.2-invalid-cache.patch
|
||||||
|
|
||||||
Obsoletes: man < 2.0
|
Obsoletes: man < 2.0
|
||||||
Provides: man = %{version}
|
Provides: man = %{version}
|
||||||
@ -28,13 +32,12 @@ Provides: man-pages-reader = %{version}
|
|||||||
# FPC exception for gnulib - copylib - https://fedorahosted.org/fpc/ticket/174
|
# FPC exception for gnulib - copylib - https://fedorahosted.org/fpc/ticket/174
|
||||||
Provides: bundled(gnulib) = %{gnulib_ver}
|
Provides: bundled(gnulib) = %{gnulib_ver}
|
||||||
|
|
||||||
Requires: less, coreutils, grep, groff-base, gzip
|
Requires: coreutils, grep, groff-base, gzip, less
|
||||||
BuildRequires: gdbm-devel, groff, gettext, zlib-devel
|
BuildRequires: gdbm-devel, gettext, groff, libpipeline-devel, zlib-devel
|
||||||
BuildRequires: libpipeline-devel, autoconf, gettext-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The man-db package includes five tools for browsing man-pages:
|
The man-db package includes five tools for browsing man-pages:
|
||||||
man, whatis, apropos, manpath and lexgrog. man preformats and displays
|
man, whatis, apropos, manpath and lexgrog. man formats and displays
|
||||||
manual pages. whatis searches the manual page names. apropos searches the
|
manual pages. whatis searches the manual page names. apropos searches the
|
||||||
manual page names and descriptions. manpath determines search path
|
manual page names and descriptions. manpath determines search path
|
||||||
for manual pages. lexgrog directly reads header information in
|
for manual pages. lexgrog directly reads header information in
|
||||||
@ -42,24 +45,22 @@ manual pages.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .sgr
|
%patch0 -p1 -b .sgr
|
||||||
%patch2 -p1 -b .wildcards
|
%patch1 -p1 -b .wildcards
|
||||||
%patch3 -p1 -b .so-links
|
%patch2 -p1 -b .so-links
|
||||||
%patch4 -p1 -b .locale-fallback
|
%patch3 -p1 -b .locale-fallback
|
||||||
%patch6 -p1 -b .invalid-cache
|
%patch4 -p1 -b .invalid-cache
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure\
|
%configure \
|
||||||
--with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
|
--with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
|
||||||
--disable-setuid --with-browser=elinks --with-lzip=lzip
|
--disable-setuid --with-browser=elinks --with-lzip=lzip
|
||||||
|
|
||||||
make CC="%{__cc} %{optflags}" %{?_smp_mflags} V=1
|
make CC="%{__cc} %{optflags}" %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} \
|
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
|
||||||
INSTALL='install -p'
|
|
||||||
|
|
||||||
# move the documentation to relevant place
|
# move the documentation to the relevant place
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
|
mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
|
||||||
|
|
||||||
# remove zsoelim - part of groff package
|
# remove zsoelim - part of groff package
|
||||||
@ -86,7 +87,6 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
|
|||||||
%{__rm} -rf %{cache}/*
|
%{__rm} -rf %{cache}/*
|
||||||
|
|
||||||
%files -f %{name}.lang -f %{name}-gnulib.lang
|
%files -f %{name}.lang -f %{name}-gnulib.lang
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
|
%doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
|
||||||
%config(noreplace) %{_sysconfdir}/man_db.conf
|
%config(noreplace) %{_sysconfdir}/man_db.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
||||||
@ -123,6 +123,7 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
|
|||||||
* Thu Oct 18 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-1
|
* Thu Oct 18 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-1
|
||||||
- resolves: #858577
|
- resolves: #858577
|
||||||
updated to 2.6.3
|
updated to 2.6.3
|
||||||
|
- cleaned .spec file
|
||||||
|
|
||||||
* Tue Jul 31 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-5
|
* Tue Jul 31 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-5
|
||||||
- resolves: #841431
|
- resolves: #841431
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#
|
|
||||||
# Set to no to disable daily man-db update by /etc/cron.daily/man-db.cron
|
# Set to no to disable daily man-db update by /etc/cron.daily/man-db.cron
|
||||||
CRON="yes"
|
CRON="yes"
|
||||||
|
|
||||||
# Options used by mandb in /etc/cron.daily/man-db.cron,
|
# Options used by mandb in /etc/cron.daily/man-db.cron,
|
||||||
# we use -q as default, too much noise without.
|
# we use -q as default, too much noise without.
|
||||||
OPTS="-q"
|
OPTS="-q"
|
||||||
|
Loading…
Reference in New Issue
Block a user