[d-kernel] ðÒÏ2.4.21 release

Ed V. Bartosh ed at altlinux.ru
Mon Jun 16 10:50:45 MSD 2003


>>>>> "AM" == Alexey Morozov writes:

 AM>  Правда, конечно, меня сильно смущает "ручное" копание в
 AM>  %_builddir и невозможность многократного выполнения %install, но
 AM>  это уже пускай на потом остается.

Может так пойдет ?

-- 
Best regards,
Ed V. Bartosh

-------------- next part --------------
# -*- rpm-spec -*-
# $Id: kernel-source-2.4.21,v 1.4 2003/06/05 10:15:19 ed Exp $
#

%define original_kernel_version	2.4.20
%define kernel_version		2.4.21
%define patch_level		%nil
# Numeric extra version scheme developed by Alexander Bokovoy:
# 0.0.X -- preX
# 0.X.0 -- rcX
# 1.0.0 -- release
%define patch_level_numeric     1.0.0

Name: kernel-source-%kernel_version
Version: %patch_level_numeric
Release: alt1

Summary: Linux kernel %kernel_version%patch_level sources
License: GPL
Group: Development/Kernel
Packager: Kernel Maintainers Team <kernel at packages.altlinux.org>

Source0: linux-%original_kernel_version.tar.bz2
## Kernel version upgrade
Patch0:         patch-%kernel_version.bz2

BuildArch: noarch
BuildPreReq: kernel-build-tools

#### KERNEL DOCUMENTATION ####
%package -n kernel-doc
Version:       %kernel_version%patch_level
Summary:       Linux kernel %kernel_verison%patch_level documentation
Group:         Development/Kernel

%description
Kernel sources for Linux kernel %kernel_version%patch_level

%description -n kernel-doc
Kernel documentation for Linux kernel %kernel_version%patch_level

%prep
%__rm -rf linux-%original_kernel_version
%__rm -rf kernel-source-%kernel_version%patch_level
%__tar -jxf %SOURCE0
%__mv linux-%original_kernel_version kernel-source-%kernel_version%patch_level
pushd kernel-source-%kernel_version%patch_level
%patch0 -p1
popd
%__tar -c kernel-source-%kernel_version%patch_level | bzip2 -cz > \
    kernel-source-%kernel_version%patch_level.tar.bz2

%install
%__mkdir_p %kernel_srcdir
%__mkdir_p %buildroot%_defaultdocdir/kernel-doc-%kernel_version%patch_level
%__mv kernel-source-%kernel_version%patch_level.tar.bz2 %kernel_srcdir
%__cp -a kernel-source-%kernel_version%patch_level/Documentation/* \
    %buildroot%_defaultdocdir/kernel-doc-%kernel_version%patch_level

%files
%kernel_src/kernel-source-%kernel_version%patch_level.tar.bz2

%files -n kernel-doc
%doc %{_defaultdocdir}/kernel-doc-%{kernel_version}%{patch_level}/*

%changelog
* Fri Jun 13 2003 Ed V. Bartosh <ed at sam-solutions.net> 1.0.0-alt1
- updated to 2.4.21 release

* Thu Jun  5 2003 Ed V. Bartosh <ed at sam-solutions.net> 0.7.0-alt1
- Updated to rc7

* Wed May 14 2003 Ed V. Bartosh <ed at sam-solutions.net> 0.2.0-alt1
- Updated to rc2

* Tue Apr 29 2003 Ed V. Bartosh <ed at sam-solutions.net> 0.1.0-alt1
- change name and release according to new versioning scheme

* Tue Apr 22 2003 Ed V. Bartosh <ed at sam-solutions.net> 2.4.21rc1-alt1
- updated to rc1
- spec cosmetic changes

* Sat Apr 19 2003 Ed V. Bartosh <ed at sam-solutions.net> 2.4.21pre7-alt2
- unneeded version removed from the packege name

* Fri Apr 18 2003 Peter Novodvorsky <nidd at altlinux.com> 2.4.21pre7-alt1
- adopting to new kernel policy.
- updated version.

* Wed Mar 19 2003 Peter Novodvorsky <nidd at altlinux.com> 2.4.21pre5-alt2
- Added aic7xxxx compilation fix patch

* Wed Feb 19 2003 Peter Novodvorsky <nidd at altlinux.org> 2.4.20-alt0.1
- initial release of NGKPs




More information about the devel-kernel mailing list