Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
update-alternatives
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Added
update-alternatives.spec
@@ -0,0 +1,73 @@ +%define admindir %{_localstatedir}/lib/rpm/ + +Name: update-alternatives +Version: 1.16.10 +Release: 0 +Summary: Maintain symbolic links determining default commands +License: GPL-2.0+ +Group: System/Management +Url: http://ftp.de.debian.org/debian/pool/main/d/dpkg/ +Source0: http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.xz +Source3: sensible-editor +Patch0: update-alternatives-1.16.8-suse.patch +Patch1: dpkg-archtable-suse.patch +Patch6: dpkg-sparc.diff +BuildRequires: ncurses-devel +BuildRequires: xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +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. + +%prep +%setup -q -n dpkg-%{version} + +%patch0 -p1 +%patch1 -p1 +%patch6 -p1 + +%build +%{configure} \ + --with-admindir=%{admindir} + +make -C lib/compat %{?_smp_mflags} +make -C utils/ %{?_smp_mflags} + +%install +install -d -m 0755 %{buildroot}/%{_sbindir}/ +install -d -m 0755 %{buildroot}/%{_mandir}/man8/ +install -d -m 0755 %{buildroot}/%{_sysconfdir}/alternatives +install -d -m 0755 %{buildroot}/%{admindir}/alternatives +install -d -m 0755 %{buildroot}/%{_localstatedir}/log + +install -m 0755 utils/%{name} %{buildroot}/%{_sbindir} +install -m 0644 man/%{name}.8 %{buildroot}/%{_mandir}/man8/ + +touch %{buildroot}/%{_localstatedir}/log/%{name}.log + +%files +%defattr(-,root,root,-) +%doc COPYING +%dir %{_sysconfdir}/alternatives +%dir %{_localstatedir}/lib/rpm/alternatives +%{_sbindir}/update-alternatives +%{_mandir}/man8/update-alternatives.8* +%ghost %{_localstatedir}/log/update-alternatives.log + +%changelog-------------- +Thu Sep 29 00:10:28 CEST 2005 - dmueller@suse.de + + - add norootforbuild + +------------------------------------------------------------------- +Wed Sep 1 21:10:06 CEST 2004 - skh@suse.de + +- Initial package version 1.8.3