File update-alternatives.spec of Package update-alternatives

# spec file for package update-alternatives (Version 1.14.19)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

%define _name update-alternatives

Name:           update-alternatives
%define jpackage-section free
Version:        1.14.19
Release:        1
Summary:        Maintain symbolic links determining default commands
License:        GPL v2 or later
Group:          System/Management
Source0:        %{_name}-%{version}.tar.bz2
Patch0:         %{_name}-suse.patch
Patch1:         %{_name}-suse-man.patch
Patch2:         %{_name}-manual-state.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    no
Requires:       /usr/bin/perl

update-alternatives creates, removes, maintains and displays
information about the symbolic links comprising the alternatives
system. It is possible for several programs fulfilling the same or
similar functions to be installed on a single system at the same time.
For example, many systems have several text editors installed at once.
This gives choice to the users of a system, allowing each to use a
different editor, if desired, but makes it difficult for a program to
make a good choice of editor to invoke if the user has not specified a
particular preference.

On SUSE Linux, this functionality is only used for packages that are
part of the JPackage project <>

%setup -q -n %{_name}-%{version}
%patch0 -b .sav0
%patch1 -b .sav1
%patch2 -b .sav2

# Nope.

install -D -p -m 755 \
install -D -p -m 644 update-alternatives.8 \
# Paths hardcoded in script and patch0.
install -d -m 755 $RPM_BUILD_ROOT/etc/alternatives
install -d -m 755 $RPM_BUILD_ROOT/var/lib/rpm/alternatives


# Paths hardcoded in script and patch0.

* Mon Jul 21 2008
- fix of enhancenment request[bnc#261246] - update-alternatives should support --set
  - update to the 1.14.19
* Tue Nov 06 2007
- fix the manual link state after --install and --remove commands [#334783]
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005
- add norootforbuild
* Wed Sep 01 2004
- Initial package version 1.8.3
openSUSE Build Service is sponsored by