2006-12-19 00:15:02 +01:00
|
|
|
#
|
2010-08-01 17:23:38 +02:00
|
|
|
# spec file for package aaa_base (Version 11.4)
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
2010-01-14 18:31:26 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:15:02 +01:00
|
|
|
#
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
# norootforbuild
|
2022-02-21 10:20:34 +01:00
|
|
|
|
2008-02-15 01:07:00 +01:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
Name: aaa_base
|
2010-08-01 17:23:38 +02:00
|
|
|
Version: 11.4
|
|
|
|
Release: 1
|
2009-12-04 12:34:19 +01:00
|
|
|
License: GPLv2+
|
2022-03-21 18:34:13 +01:00
|
|
|
Group: System/Fhs
|
2010-05-19 09:20:15 +02:00
|
|
|
Provides: bin bootutls etc skeleng skelger
|
|
|
|
Provides: aaa_skel = %{version}-%{release}
|
|
|
|
Obsoletes: aaa_skel < %{version}
|
2008-05-19 23:55:12 +02:00
|
|
|
Requires: filesystem distribution-release /bin/mktemp /usr/bin/find /usr/bin/tput /usr/bin/xargs mingetty /bin/login cpio psmisc
|
2010-08-01 17:23:38 +02:00
|
|
|
Recommends: cron logrotate netcfg udev net-tools aaa_base-extras
|
2009-07-17 18:16:50 +02:00
|
|
|
PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv
|
2007-09-14 16:02:32 +02:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:15:02 +01:00
|
|
|
Summary: SUSE Linux Base Package
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: aaa_base.tar.bz2
|
|
|
|
Source3: aaa_base.specialfilelist
|
2010-08-01 17:23:38 +02:00
|
|
|
Source4: aaa_base.extrafilelist
|
2006-12-19 00:15:02 +01:00
|
|
|
Source5: arch_special.tar.bz2
|
|
|
|
Source7: sysconfig_parts.tar.bz2
|
|
|
|
Source8: get_kernel_version.c
|
2008-05-06 18:46:50 +02:00
|
|
|
Source20: aaa_base-rpmlintrc
|
2006-12-19 00:15:02 +01:00
|
|
|
Source21: aaa_base.pre
|
|
|
|
Source22: aaa_base.post
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%description
|
2006-12-19 00:15:02 +01:00
|
|
|
This package installs several important configuration files. Central
|
|
|
|
scripts like SuSEconfig are also in this package.
|
2006-12-19 00:15:02 +01:00
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
%package extras
|
|
|
|
License: GPLv2+
|
|
|
|
Summary: SUSE Linux Base Package (recommended part)
|
|
|
|
Group: System/Fhs
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description extras
|
|
|
|
The parts of aaa_base that should be installed by default but are not
|
|
|
|
strictly required to run a system. (Shell aliases, bash completions
|
|
|
|
and convenience hacks).
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%prep
|
2006-12-19 00:15:02 +01:00
|
|
|
%setup -n aaa_base -b 5 -b 7
|
|
|
|
cd ..
|
|
|
|
mkdir -p scripts
|
|
|
|
cp -v %{SOURCE21} scripts
|
|
|
|
cp -v %{SOURCE22} scripts
|
2010-09-10 15:43:26 +02:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%build
|
2008-07-16 21:48:48 +02:00
|
|
|
gcc $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $RPM_SOURCE_DIR/get_kernel_version.c -o $RPM_SOURCE_DIR/get_kernel_version
|
2006-12-19 00:15:02 +01:00
|
|
|
|
|
|
|
%install
|
2008-01-21 16:14:33 +01:00
|
|
|
install -d -m 700 root
|
2008-01-23 20:27:23 +01:00
|
|
|
# make sure it does not creep in again
|
|
|
|
test -d ../aaa_base/root/.gnupg && exit 1
|
2006-12-19 00:15:02 +01:00
|
|
|
cp -a ../aaa_base/* $RPM_BUILD_ROOT
|
2010-06-18 06:40:18 +02:00
|
|
|
# for the release
|
|
|
|
rm $RPM_BUILD_ROOT/etc/profile.d/malloc-debug.*
|
2006-12-19 00:15:02 +01:00
|
|
|
cp $RPM_SOURCE_DIR/get_kernel_version $RPM_BUILD_ROOT/sbin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2008-08-21 18:02:44 +02:00
|
|
|
for i in $RPM_BUILD_DIR/sysconfig_parts/sysconfig.* ; do
|
2006-12-19 00:15:02 +01:00
|
|
|
cp $i $RPM_BUILD_ROOT/var/adm/fillup-templates/
|
2014-07-03 16:57:10 +02:00
|
|
|
done
|
2014-03-10 16:36:33 +01:00
|
|
|
#
|
2006-12-19 00:15:02 +01:00
|
|
|
## do arch specific patches BEGIN
|
|
|
|
#
|
|
|
|
pushd $RPM_BUILD_ROOT
|
|
|
|
test -d $RPM_BUILD_DIR/arch_special/$RPM_ARCH && \
|
|
|
|
{
|
|
|
|
for file in $RPM_BUILD_DIR/arch_special/$RPM_ARCH/* ; do
|
|
|
|
patch -p0 --input=$file
|
|
|
|
done
|
|
|
|
}
|
|
|
|
#
|
|
|
|
# delete .orig files
|
|
|
|
#
|
|
|
|
find $RPM_BUILD_ROOT -name "*.orig" | xargs -r rm
|
|
|
|
popd
|
|
|
|
#
|
|
|
|
## do arch specific patches END
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# mark these as ghost
|
|
|
|
for i in passwd group shadow gshadow ; do
|
|
|
|
touch $RPM_BUILD_ROOT/var/adm/fillup-templates/$i.aaa_base
|
|
|
|
done
|
|
|
|
#
|
|
|
|
# generate the file-list with config-files et al.
|
|
|
|
#
|
|
|
|
test -x /usr/sbin/Check && /usr/sbin/Check
|
|
|
|
#
|
|
|
|
for i in `( cd $RPM_BUILD_ROOT ; find * | sort )` ; do
|
2010-08-01 17:23:38 +02:00
|
|
|
grep -qx "/$i" %{S:4} && continue
|
2006-12-19 00:15:02 +01:00
|
|
|
if ! grep -E "^.* /$i\$" %{S:3} ; then
|
|
|
|
if ! test -d $RPM_BUILD_ROOT/$i ; then
|
|
|
|
echo "/$i"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done > aaa_base.files
|
2010-08-01 17:23:38 +02:00
|
|
|
for i in `( cd $RPM_BUILD_ROOT ; find * | sort )` ; do
|
|
|
|
grep -qx "/$i" %{S:4} || continue
|
|
|
|
if ! grep -E "^.* /$i\$" %{S:3} ; then
|
|
|
|
if ! test -d $RPM_BUILD_ROOT/$i ; then
|
|
|
|
echo "/$i"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done > aaa_base-extras.files
|
2017-11-28 12:52:20 +01:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%pre -f ../scripts/aaa_base.pre
|
2010-08-01 17:23:38 +02:00
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%post -f ../scripts/aaa_base.post
|
2012-06-29 10:22:54 +02:00
|
|
|
|
2007-06-20 19:05:05 +02:00
|
|
|
%postun
|
|
|
|
%insserv_cleanup
|
|
|
|
|
2008-01-23 20:27:23 +01:00
|
|
|
%triggerpostun -- aaa_base
|
|
|
|
if test -f /root/.gnupg/secring.gpg.aaa_save -a ! -f /root/.gnupg/secring.gpg ; then
|
|
|
|
mv /root/.gnupg/secring.gpg.aaa_save /root/.gnupg/secring.gpg
|
|
|
|
fi
|
|
|
|
rm -f /root/.gnupg/secring.gpg.aaa_save
|
|
|
|
|
2006-12-19 00:15:02 +01:00
|
|
|
%files -f aaa_base.files
|
|
|
|
%defattr(-,root,root)
|
2007-12-03 23:01:50 +01:00
|
|
|
|
2010-08-01 17:23:38 +02:00
|
|
|
%files extras -f aaa_base-extras.files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2007-02-26 18:59:56 +01:00
|
|
|
%changelog
|