2011-01-13 12:30:53 +00:00
|
|
|
%define release_name R1
|
2011-01-11 19:34:00 +00:00
|
|
|
%define dist_version 1
|
|
|
|
%define fedora_base_version 13
|
|
|
|
|
|
|
|
Summary: Qubes release files
|
|
|
|
Name: qubes-release
|
|
|
|
Version: 1
|
|
|
|
Release: 1
|
|
|
|
License: GPLv2
|
|
|
|
Group: System Environment/Base
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Obsoletes: fedora-release
|
|
|
|
Obsoletes: redhat-release
|
|
|
|
Provides: fedora-release = %{fedora_base_version}-%{release}
|
|
|
|
Provides: redhat-release = %{fedora_base_version}-%{release}
|
|
|
|
Provides: system-release = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qubes release files such as yum configs and various /etc/ files that
|
|
|
|
define the release.
|
|
|
|
|
|
|
|
%package notes
|
|
|
|
Summary: Release Notes
|
|
|
|
License: Open Publication
|
|
|
|
Group: System Environment/Base
|
|
|
|
Provides: system-release-notes = %{version}-%{release}
|
|
|
|
Conflicts: fedora-release-notes
|
|
|
|
|
|
|
|
%description notes
|
|
|
|
Qubes release notes package.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT/etc
|
|
|
|
echo "Qubes release %{version} (%{release_name})" > $RPM_BUILD_ROOT/etc/qubes-release
|
|
|
|
echo "cpe://o:qubes:qubes:%{version}" > $RPM_BUILD_ROOT/etc/system-release-cpe
|
|
|
|
cp -p $RPM_BUILD_ROOT/etc/qubes-release $RPM_BUILD_ROOT/etc/issue
|
|
|
|
echo "Kernel \r on an \m (\l)" >> $RPM_BUILD_ROOT/etc/issue
|
|
|
|
cp -p $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net
|
|
|
|
echo >> $RPM_BUILD_ROOT/etc/issue
|
|
|
|
ln -s qubes-release $RPM_BUILD_ROOT/etc/fedora-release
|
|
|
|
ln -s qubes-release $RPM_BUILD_ROOT/etc/redhat-release
|
|
|
|
ln -s qubes-release $RPM_BUILD_ROOT/etc/system-release
|
|
|
|
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg
|
|
|
|
|
|
|
|
install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
|
|
|
|
|
|
|
|
# Install all the keys, link the primary keys to primary arch files
|
|
|
|
# and to compat qubes location
|
|
|
|
pushd $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
|
|
|
|
for dist in qubes-%{dist_version} fedora-%{fedora_base_version}
|
|
|
|
do
|
|
|
|
for arch in i386 x86_64 ppc ppc64
|
|
|
|
do
|
|
|
|
ln -s RPM-GPG-KEY-${dist}-primary RPM-GPG-KEY-${dist/-*}-$arch
|
|
|
|
done
|
|
|
|
ln -s RPM-GPG-KEY-${dist}-primary RPM-GPG-KEY-${dist/-*}
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d
|
|
|
|
for file in {qubes,fedora}*repo ; do
|
|
|
|
install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d
|
|
|
|
done
|
|
|
|
|
|
|
|
# Set up the dist tag macros
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
|
|
|
|
cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF
|
|
|
|
# dist macros.
|
|
|
|
|
|
|
|
%%qubes %{dist_version}
|
2011-03-02 15:27:34 +00:00
|
|
|
%%dist .qbs%{dist_version}
|
2011-01-11 19:34:00 +00:00
|
|
|
%%fedora %{fedora_base_version}
|
2011-03-31 12:27:09 +00:00
|
|
|
%%qbs%{dist_version} 1
|
2011-01-11 19:34:00 +00:00
|
|
|
%%fc%{fedora_base_version} 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc GPL
|
|
|
|
%config %attr(0644,root,root) /etc/qubes-release
|
|
|
|
%config %attr(0644,root,root) /etc/fedora-release
|
|
|
|
/etc/redhat-release
|
|
|
|
/etc/system-release
|
|
|
|
%config %attr(0644,root,root) /etc/system-release-cpe
|
|
|
|
%dir /etc/yum.repos.d
|
|
|
|
%config(noreplace) /etc/yum.repos.d/fedora.repo
|
2011-03-02 15:27:34 +00:00
|
|
|
%config(noreplace) /etc/yum.repos.d/qubes-r1-dom0.repo
|
2011-01-11 19:34:00 +00:00
|
|
|
%config(noreplace) %attr(0644,root,root) /etc/issue
|
|
|
|
%config(noreplace) %attr(0644,root,root) /etc/issue.net
|
|
|
|
%config %attr(0644,root,root) /etc/rpm/macros.dist
|
|
|
|
%dir /etc/pki/rpm-gpg
|
|
|
|
/etc/pki/rpm-gpg/*
|
|
|
|
|
|
|
|
%files notes
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.Qubes-Release-Notes
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Jan 13 2010 Tomasz Sterna <smoku@xiaoka.com> - 1
|
|
|
|
- Initial Qubes 1 Release package
|