2007-01-15 23:24:40 +00:00
|
|
|
#
|
2013-08-07 09:58:27 +00:00
|
|
|
# spec file for package makewhat
|
2007-01-15 23:24:40 +00:00
|
|
|
#
|
2019-03-06 12:14:48 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:24:40 +00:00
|
|
|
#
|
2009-06-17 22:02:30 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2019-03-06 12:14:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:24:40 +00:00
|
|
|
#
|
|
|
|
|
|
2009-06-17 22:02:30 +00:00
|
|
|
|
|
|
|
|
Name: makewhat
|
|
|
|
|
Version: 2009.6.17
|
2013-08-07 09:58:27 +00:00
|
|
|
Release: 0
|
2019-03-18 09:42:16 +00:00
|
|
|
URL: https://build.opensuse.org/package/show/Base:System/makewhat
|
|
|
|
|
Summary: Utilities to create a whatis database
|
2019-03-06 12:14:48 +00:00
|
|
|
License: GPL-2.0-or-later
|
2019-03-18 09:42:16 +00:00
|
|
|
Group: System/Base
|
2019-03-06 12:14:48 +00:00
|
|
|
BuildRequires: update-alternatives
|
|
|
|
|
Requires: man
|
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(preun): update-alternatives
|
2009-06-17 22:02:30 +00:00
|
|
|
Source: makewhat.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-03-06 12:14:48 +00:00
|
|
|
BuildArch: noarch
|
2007-01-15 23:24:40 +00:00
|
|
|
|
|
|
|
|
%description
|
2009-06-17 22:02:30 +00:00
|
|
|
The man system in SUSE Linux (package man) does not need a whatis
|
2019-03-18 09:42:16 +00:00
|
|
|
database. Nevertheless, some manual browsers, such as tkman, still need
|
|
|
|
|
such a database.
|
2007-01-15 23:24:40 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -n makewhat
|
|
|
|
|
|
2019-03-06 12:14:48 +00:00
|
|
|
%build
|
|
|
|
|
echo Build section is empty
|
|
|
|
|
|
2007-01-15 23:24:40 +00:00
|
|
|
%install
|
2019-03-06 12:14:48 +00:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
|
install -m755 makewhatis %{buildroot}%{_sbindir}/makewhatis.mw
|
|
|
|
|
ln -sf %{_sbindir}/makewhatis.mw %{buildroot}%{_sysconfdir}/alternatives/makewhatis
|
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/makewhatis %{buildroot}%{_sbindir}/makewhatis
|
2007-01-15 23:24:40 +00:00
|
|
|
|
2019-03-06 12:14:48 +00:00
|
|
|
%post
|
|
|
|
|
%{_sbindir}/update-alternatives --quiet --force \
|
|
|
|
|
--install %{_sbindir}/makewhatis makewhatis %{_sbindir}/makewhatis.mw 900
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if test $1 -eq 0
|
|
|
|
|
then
|
|
|
|
|
%{_sbindir}/update-alternatives --quiet --remove makewhatis %{_sbindir}/makewhatis
|
|
|
|
|
fi
|
|
|
|
|
|
2007-01-15 23:24:40 +00:00
|
|
|
%files
|
2019-03-06 12:14:48 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%ghost %config %{_sysconfdir}/alternatives/makewhatis
|
|
|
|
|
%{_sbindir}/makewhatis.mw
|
2019-03-07 08:07:44 +00:00
|
|
|
%{_sbindir}/makewhatis
|
2007-01-15 23:24:40 +00:00
|
|
|
|
2009-06-17 22:02:30 +00:00
|
|
|
%changelog
|