2006-12-19 00:15:02 +01:00
|
|
|
#
|
2011-01-14 03:04:31 +01:00
|
|
|
# spec file for package aaa_base
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2022-02-21 10:20:34 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2008-08-06 01:40:46 +02: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-08-14 01:09:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2022-03-21 18:34:13 +01:00
|
|
|
# icecream 0
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
|
2017-11-28 13:16:33 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2022-03-21 18:34:13 +01:00
|
|
|
%if 0%{?_build_in_place}
|
|
|
|
%define git_version %(git log '-n1' '--date=format:%Y%m%d' '--no-show-signature' "--pretty=format:+git%cd.%h")
|
|
|
|
BuildRequires: git-core
|
|
|
|
%else
|
|
|
|
# this is required for obs' source validator. It's
|
|
|
|
# 20-files-present-and-referenced ignores all conditionals. So the
|
|
|
|
# definition of git_version actually happens always.
|
|
|
|
%define git_version %{nil}
|
|
|
|
%endif
|
2022-02-21 10:20:34 +01:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
Name: aaa_base
|
2022-09-06 09:11:32 +02:00
|
|
|
Version: 84.87+git20220822.6b9f7a3%{git_version}
|
2012-01-27 21:28:49 +01:00
|
|
|
Release: 0
|
2022-03-21 18:34:13 +01:00
|
|
|
Summary: openSUSE Base Package
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: System/Fhs
|
2019-11-20 18:04:20 +01:00
|
|
|
URL: https://github.com/openSUSE/aaa_base
|
2022-03-21 18:34:13 +01:00
|
|
|
Source: aaa_base-%{version}.tar
|
|
|
|
Source1: README.packaging.txt
|
|
|
|
Source99: aaa_base-rpmlintrc
|
2012-03-13 17:10:36 +01:00
|
|
|
Requires: /bin/mktemp
|
2020-01-28 16:12:04 +01:00
|
|
|
Requires: /usr/bin/cat
|
|
|
|
Requires: /usr/bin/date
|
|
|
|
Requires: /usr/bin/grep
|
|
|
|
Requires: /usr/bin/mv
|
|
|
|
Requires: /usr/bin/sed
|
2012-03-13 17:10:36 +01:00
|
|
|
Requires: /usr/bin/tput
|
2020-04-15 10:49:58 +02:00
|
|
|
Requires: /usr/bin/xz
|
2012-03-13 17:10:36 +01:00
|
|
|
Requires: distribution-release
|
|
|
|
Requires: filesystem
|
2022-03-21 18:34:13 +01:00
|
|
|
Requires(pre): /usr/bin/rm
|
|
|
|
Requires(pre): (glibc >= 2.30 if glibc)
|
|
|
|
Requires(post): fillup /usr/bin/chmod /usr/bin/chown
|
2021-03-08 16:12:17 +01:00
|
|
|
Recommends: aaa_base-extras
|
|
|
|
Recommends: iproute2
|
|
|
|
Recommends: iputils
|
|
|
|
Recommends: logrotate
|
|
|
|
Recommends: netcfg
|
|
|
|
Recommends: udev
|
2022-03-21 18:34:13 +01:00
|
|
|
# do not require systemd - aaa_base is in the build environment and we don't
|
|
|
|
# want to pull in tons of dependencies
|
|
|
|
Conflicts: sysvinit-init
|
2020-01-28 16:12:04 +01:00
|
|
|
|
2021-06-22 13:35:33 +02:00
|
|
|
# run osc service mr to recreate
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%description
|
2012-09-25 15:50:10 +02:00
|
|
|
This package installs several important configuration files and central scripts.
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
%package extras
|
|
|
|
Summary: SUSE Linux Base Package (recommended part)
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: %{name} = %{version}
|
2020-01-28 16:12:04 +01:00
|
|
|
Requires: /usr/bin/find
|
|
|
|
Requires: cpio
|
2018-02-04 22:48:41 +01:00
|
|
|
Requires(post): fillup
|
2010-08-13 02:36:51 +02:00
|
|
|
Provides: aaa_base:/etc/DIR_COLORS
|
2010-08-01 17:23:38 +02:00
|
|
|
|
|
|
|
%description extras
|
|
|
|
The parts of aaa_base that should be installed by default but are not
|
2022-04-11 09:35:30 +02:00
|
|
|
strictly required to run a system. (bash completions and convenience hacks).
|
2010-08-01 17:23:38 +02:00
|
|
|
|
2012-06-29 10:28:36 +02:00
|
|
|
%package malloccheck
|
|
|
|
Summary: SUSE Linux Base Package (malloc checking)
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description malloccheck
|
|
|
|
This package sets environment variables that enable stricter
|
|
|
|
malloc checks to catch potential heap corruptions. It's not
|
2012-06-29 11:03:06 +02:00
|
|
|
installed by default as it may degrade performance.
|
2012-06-29 10:28:36 +02:00
|
|
|
|
2017-11-20 10:52:52 +01:00
|
|
|
%package wsl
|
|
|
|
Summary: SUSE Linux Base Package (Windows Subsystem for Linux)
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description wsl
|
|
|
|
This package includes some special settings needed on Windows Subsystem
|
|
|
|
for Linux. It should only be installed on WSL and not on regular Linux
|
|
|
|
systems.
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%prep
|
2012-10-05 12:40:58 +02:00
|
|
|
%setup -q
|
2010-09-10 15:43:26 +02:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%build
|
2022-03-21 18:34:13 +01:00
|
|
|
%make_build CFLAGS="%{optflags}" CC="%{__cc}"
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%install
|
2022-03-21 12:41:22 +01:00
|
|
|
%make_install
|
2013-05-27 13:42:40 +02:00
|
|
|
mkdir -p %{buildroot}/etc/sysctl.d
|
|
|
|
case "$RPM_ARCH" in
|
|
|
|
s390*) ;;
|
|
|
|
*) rm -f %{buildroot}/usr/lib/sysctl.d/50-default-s390.conf ;;
|
|
|
|
esac
|
|
|
|
#
|
2008-01-23 20:27:23 +01:00
|
|
|
# make sure it does not creep in again
|
2022-03-21 12:41:22 +01:00
|
|
|
test -d %{buildroot}/root/.gnupg && exit 1
|
2020-11-27 12:39:15 +01:00
|
|
|
# TODO: get rid of that at some point in the future
|
2022-03-21 12:41:22 +01:00
|
|
|
mkdir -p %{buildroot}/etc/init.d
|
2020-08-04 13:19:19 +02:00
|
|
|
for i in boot.local after.local ; do
|
2022-03-21 12:41:22 +01:00
|
|
|
install -m 755 /dev/null %{buildroot}/etc/init.d/$i
|
2014-07-03 16:57:10 +02:00
|
|
|
done
|
2014-03-10 16:36:33 +01:00
|
|
|
#
|
2020-06-16 19:45:09 +02:00
|
|
|
install -d -m 755 %buildroot%{_libexecdir}/initscripts/legacy-actions
|
2014-08-21 15:35:10 +02:00
|
|
|
# keep as ghost for migration
|
|
|
|
touch %buildroot/etc/inittab
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2018-02-05 13:32:06 +01:00
|
|
|
# Backup directories
|
|
|
|
install -d -m 755 %{buildroot}/var/adm/backup/{rpmdb,sysconfig}
|
|
|
|
|
2017-11-28 13:16:33 +01:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
2017-11-28 12:52:20 +01:00
|
|
|
%if "%{_fillupdir}" != "/var/adm/fillup-templates"
|
2017-11-28 13:16:33 +01:00
|
|
|
for f in %{buildroot}/var/adm/fillup-templates/* ; do
|
2017-11-28 13:18:43 +01:00
|
|
|
test -e "$f" || continue
|
2017-11-28 13:16:33 +01:00
|
|
|
mv $f %{buildroot}%{_fillupdir}/
|
|
|
|
done
|
|
|
|
rm -vrf %{buildroot}/var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
%if "%{_fillupdir}" != "/usr/share/fillup-templates"
|
|
|
|
for f in %{buildroot}/usr/share/fillup-templates/* ; do
|
2017-11-28 13:18:43 +01:00
|
|
|
test -e "$f" || continue
|
2017-11-28 13:16:33 +01:00
|
|
|
mv $f %{buildroot}%{_fillupdir}/
|
|
|
|
done
|
|
|
|
rm -vrf %{buildroot}/usr/share/fillup-templates
|
2017-11-28 12:52:20 +01:00
|
|
|
%endif
|
|
|
|
|
2011-03-19 23:11:41 +01:00
|
|
|
%pre -f aaa_base.pre
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2011-03-19 23:11:41 +01:00
|
|
|
%post -f aaa_base.post
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2018-02-04 22:48:41 +01:00
|
|
|
%pre extras
|
|
|
|
%service_add_pre backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
|
|
|
|
|
|
|
%post extras
|
|
|
|
%fillup_only -n backup
|
|
|
|
%service_add_post backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
|
|
|
|
|
|
|
%preun extras
|
|
|
|
%service_del_preun backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
|
|
|
|
|
|
|
%postun extras
|
|
|
|
%service_del_postun backup-rpmdb.service backup-rpmdb.timer backup-sysconfig.service backup-sysconfig.timer check-battery.service check-battery.timer
|
2008-01-23 20:27:23 +01:00
|
|
|
|
2010-11-17 12:50:04 +01:00
|
|
|
%files
|
2018-02-27 11:11:03 +01:00
|
|
|
%license COPYING
|
2022-04-19 13:17:41 +02:00
|
|
|
%config(noreplace) /etc/DIR_COLORS
|
2019-04-24 15:32:35 +02:00
|
|
|
%config(noreplace) /etc/sysctl.conf
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/bash.bashrc
|
|
|
|
%config /etc/csh.cshrc
|
|
|
|
%config /etc/csh.login
|
|
|
|
%config /etc/inputrc
|
2017-04-27 13:35:14 +02:00
|
|
|
%config /etc/inputrc.keys
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/mime.types
|
|
|
|
%config /etc/profile
|
2021-07-28 11:08:47 +02:00
|
|
|
/usr/etc/profile.d/alljava.csh
|
|
|
|
/usr/etc/profile.d/alljava.sh
|
|
|
|
/usr/etc/profile.d/lang.csh
|
|
|
|
/usr/etc/profile.d/lang.sh
|
|
|
|
/usr/etc/profile.d/profile.csh
|
|
|
|
/usr/etc/profile.d/profile.sh
|
|
|
|
/usr/etc/profile.d/xdg-environment.csh
|
|
|
|
/usr/etc/profile.d/xdg-environment.sh
|
|
|
|
/usr/etc/profile.d/alias.ash
|
|
|
|
/usr/etc/profile.d/alias.bash
|
|
|
|
/usr/etc/profile.d/alias.tcsh
|
|
|
|
/usr/etc/profile.d/ls.tcsh
|
|
|
|
/usr/etc/profile.d/ls.bash
|
|
|
|
/usr/etc/profile.d/ls.zsh
|
2022-09-06 09:11:32 +02:00
|
|
|
%dir /usr/lib/environment.d
|
|
|
|
/usr/lib/environment.d/50-xdg.conf
|
2010-11-17 12:50:04 +01:00
|
|
|
%config /etc/shells
|
2020-11-27 12:39:15 +01:00
|
|
|
%ghost %dir /etc/init.d
|
|
|
|
%ghost %config(noreplace) /etc/init.d/boot.local
|
|
|
|
%ghost %config(noreplace) /etc/init.d/after.local
|
2014-08-21 15:35:10 +02:00
|
|
|
%ghost %config /etc/inittab
|
2010-11-18 13:49:58 +01:00
|
|
|
# don't forget to also change aaa_base.post, boot.cleanup
|
|
|
|
# and /etc/permissions!
|
|
|
|
%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog
|
2012-10-12 16:44:24 +02:00
|
|
|
/usr/bin/get_kernel_version
|
|
|
|
/usr/sbin/refresh_initrd
|
|
|
|
/usr/sbin/service
|
|
|
|
/usr/sbin/smart_agetty
|
2010-11-17 12:50:04 +01:00
|
|
|
/usr/bin/filesize
|
|
|
|
/usr/bin/old
|
|
|
|
/usr/bin/rpmlocate
|
|
|
|
/usr/bin/safe-rm
|
|
|
|
/usr/bin/safe-rmdir
|
|
|
|
/usr/sbin/sysconf_addword
|
|
|
|
/usr/share/man/man1/smart_agetty.1*
|
|
|
|
/usr/share/man/man5/defaultdomain.5*
|
|
|
|
/usr/share/man/man8/safe-rm.8*
|
|
|
|
/usr/share/man/man8/safe-rmdir.8*
|
|
|
|
/usr/share/man/man8/service.8*
|
2013-05-27 13:42:40 +02:00
|
|
|
/usr/lib/sysctl.d/*.conf
|
2020-06-16 19:45:09 +02:00
|
|
|
%dir %{_libexecdir}/initscripts
|
|
|
|
%dir %{_libexecdir}/initscripts/legacy-actions
|
2017-11-24 11:22:06 +01:00
|
|
|
%{_fillupdir}/sysconfig.language
|
|
|
|
%{_fillupdir}/sysconfig.proxy
|
|
|
|
%{_fillupdir}/sysconfig.windowmanager
|
2010-11-17 12:50:04 +01:00
|
|
|
|
|
|
|
%files extras
|
|
|
|
/etc/skel/.emacs
|
|
|
|
/etc/skel/.inputrc
|
2019-04-24 15:32:35 +02:00
|
|
|
%dir /usr/lib/base-scripts
|
2022-04-11 09:35:30 +02:00
|
|
|
/usr/etc/profile.d/complete.bash
|
2018-02-05 15:57:35 +01:00
|
|
|
/usr/lib/base-scripts/backup-rpmdb
|
|
|
|
/usr/lib/base-scripts/backup-sysconfig
|
|
|
|
/usr/lib/base-scripts/check-battery
|
2018-02-04 22:48:41 +01:00
|
|
|
/usr/lib/systemd/system/*
|
2010-11-17 12:50:04 +01:00
|
|
|
/usr/share/man/man8/resolv+.8*
|
2018-02-05 13:32:06 +01:00
|
|
|
/var/adm/backup/rpmdb
|
|
|
|
/var/adm/backup/sysconfig
|
2018-02-04 22:48:41 +01:00
|
|
|
%{_fillupdir}/sysconfig.backup
|
2010-08-01 17:23:38 +02:00
|
|
|
|
2012-06-29 10:22:54 +02:00
|
|
|
%files malloccheck
|
2021-07-28 11:08:47 +02:00
|
|
|
/usr/etc/profile.d/malloc-debug.sh
|
|
|
|
/usr/etc/profile.d/malloc-debug.csh
|
2012-06-29 10:22:54 +02:00
|
|
|
|
2017-11-20 10:52:52 +01:00
|
|
|
%files wsl
|
2021-07-28 11:08:47 +02:00
|
|
|
/usr/etc/profile.d/wsl.csh
|
|
|
|
/usr/etc/profile.d/wsl.sh
|
2017-11-20 10:52:52 +01:00
|
|
|
|
2007-02-26 18:59:56 +01:00
|
|
|
%changelog
|