SPECS: umlinux.spec - reverted. (I have removed HEAD instead of branch in l...

pawelz pawelz at pld-linux.org
Sun Nov 30 02:31:00 CET 2008


Author: pawelz                       Date: Sun Nov 30 01:31:00 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- reverted. (I have removed HEAD instead of branch in last commit)

---- Files affected:
SPECS:
   umlinux.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/umlinux.spec
diff -u /dev/null SPECS/umlinux.spec:1.30
--- /dev/null	Sun Nov 30 02:31:00 2008
+++ SPECS/umlinux.spec	Sun Nov 30 02:30:54 2008
@@ -0,0 +1,345 @@
+# $Revision$, $Date$
+# TODO
+# - module-build and source subpackages
+
+%define basever 2.6.27
+%define postver .7
+%define alt_kernel uml
+Summary:	User Mode Linux
+Summary(pl.UTF-8):	Linux w przestrzeni użytkownika
+Name:		umlinux
+Version:	%{basever}%{postver}
+Release:	0.1
+Epoch:		0
+License:	GPL
+Group:		Applications/Emulators
+Source0:	http://www.kernel.org/pub/linux/kernel/v2.6/linux-%{basever}.tar.bz2
+# Source0-md5:	b3e78977aa79d3754cb7f8143d7ddabd
+Source1:	http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
+# Source1-md5:	1d0e83c620f3960d4d1e813f186b39f6
+Source2:	%{name}-config
+URL:		http://user-mode-linux.sourceforge.net/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		localversion %{release}
+%define         kernel_release %{version}-%{alt_kernel}-%{localversion}
+
+%define         defconfig       arch/um/defconfig
+
+%define         topdir          %{_builddir}/%{name}-%{version}
+%define         srcdir          %{topdir}/linux-%{basever}
+
+%define         CommonOpts      HOSTCC="%{kgcc}" HOSTCFLAGS="-Wall -Wstrict-prototypes %{rpmcflags} -fomit-frame-pointer"
+%define		MakeOpts	%{CommonOpts} ARCH=um CC="%{kgcc}" LDFLAGS=-L/lib
+%define		DepMod		/bin/true
+
+%define         _kernelsrcdir   /usr/src/linux-%{version}-%{alt_kernel}
+
+%define CrossOpts ARCH=um LDFLAGS=-L/lib CC="%{__cc}"
+
+%description
+User Mode Linux.
+
+%description -l pl.UTF-8
+Linux w przestrzeni użytkownika.
+
+%package modules
+Summary:	User Mode Linux modules
+Summary(pl.UTF-8):	Moduły Linuksa w przestrzeni użytkownika
+Group:		Applications/Emulators
+
+%description modules
+Modules for User Mode Linux.
+
+%description modules -l pl.UTF-8
+Moduły Linuksa w przestrzeni użytkownika.
+
+%package doc
+Summary:	Linux documentaion
+Summary(pl.UTF-8):	Dokumentacja Linuksa
+Group:		Documentation
+
+%description doc
+Linux documentation.
+
+%description doc -l pl.UTF-8
+Dokumentacja systemu Linux.
+
+%prep
+%setup -qc
+
+cd linux-%{basever}
+
+%if "%{postver}" != "%{nil}"
+%{__bzip2} -dc %{SOURCE1} | patch -p1 -s
+%endif
+
+# Fix EXTRAVERSION in main Makefile
+sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{postver}-%{alt_kernel}#g' Makefile
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%build
+
+cd linux-%{basever}
+
+BuildConfig() {
+	%{?debug:set -x}
+	cat $RPM_SOURCE_DIR/umlinux-config > %{defconfig}
+
+%{?debug:sed -i "s:# CONFIG_DEBUG_SLAB is not set:CONFIG_DEBUG_SLAB=y:" %{defconfig}}
+%{?debug:sed -i "s:# CONFIG_DEBUG_SLAB_LEAK is not set:CONFIG_DEBUG_SLAB_LEAK=y:" %{defconfig}}
+%{?debug:sed -i "s:# CONFIG_DEBUG_PREEMPT is not set:CONFIG_DEBUG_PREEMPT=y:" %{defconfig}}
+%{?debug:sed -i "s:# CONFIG_RT_DEADLOCK_DETECT is not set:CONFIG_RT_DEADLOCK_DETECT=y:" %{defconfig}}
+
+}
+
+BuildKernel() {
+	%{?debug:set -x}
+	echo "Building kernel $1 ..."
+	%{__make} %CrossOpts mrproper \
+		RCS_FIND_IGNORE='-name build-done -prune -o'
+	ln -sf %{defconfig} .config
+
+	%{__make} %CrossOpts clean \
+		RCS_FIND_IGNORE='-name build-done -prune -o'
+	%{__make} %CrossOpts include/linux/version.h \
+		%{?with_verbose:V=1}
+
+	%{__make} %CrossOpts scripts/mkcompile_h \
+		%{?with_verbose:V=1}
+
+	%{__make} %CrossOpts \
+		%{?with_verbose:V=1}
+}
+
+PreInstallKernel() {
+	%{__make} %CrossOpts modules_install \
+		%{?with_verbose:V=1} \
+		DEPMOD=%DepMod \
+		INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
+		KERNELRELEASE=%{kernel_release}
+
+	# You'd probabelly want to make it somewhat different
+	install -d $KERNEL_INSTALL_DIR%{_kernelsrcdir}
+	install Module.symvers $KERNEL_INSTALL_DIR%{_kernelsrcdir}/Module.symvers-dist
+
+	echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
+	if [ %DepMod = /sbin/depmod ]; then
+		/sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-%{kernel_release} -r %{kernel_release} || :
+	fi
+	touch $KERNEL_INSTALL_DIR/lib/modules/%{kernel_release}/modules.dep
+	echo "KERNEL RELEASE %{kernel_release} DONE"
+}
+
+KERNEL_BUILD_DIR=`pwd`
+echo "-%{localversion}" > localversion
+
+KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel"
+rm -rf $KERNEL_INSTALL_DIR
+BuildConfig
+ln -sf %{defconfig} .config
+install -d $KERNEL_INSTALL_DIR%{_kernelsrcdir}/include/linux
+rm -f include/linux/autoconf.h
+%{__make} %CrossOpts include/linux/autoconf.h
+install include/linux/autoconf.h \
+	$KERNEL_INSTALL_DIR%{_kernelsrcdir}/include/linux/autoconf-dist.h
+install .config \
+	$KERNEL_INSTALL_DIR%{_kernelsrcdir}/config-dist
+BuildKernel
+PreInstallKernel
+
+%{__make} %CrossOpts include/linux/utsrelease.h
+cp include/linux/utsrelease.h{,.save}
+cp include/linux/version.h{,.save}
+cp scripts/mkcompile_h{,.save}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},/lib/modules/%{kernel_release}/misc,%{_kernelsrcdir}}
+
+cd linux-%{basever}
+install linux $RPM_BUILD_ROOT%{_bindir}/linux
+%{__make} ARCH=um modules_install INSTALL_MOD_PATH=$RPM_BUILD_ROOT
+
+cp -a Documentation $RPM_BUILD_ROOT%{_kernelsrcdir}/Documentation
+
+cd %{topdir}/linux-%{basever}
+
+%post modules
+%depmod %{kernel_release}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/linux
+
+%files modules
+%defattr(644,root,root,755)
+%dir /lib/modules/%{kernel_release}
+/lib/modules/%{kernel_release}/kernel
+/lib/modules/%{kernel_release}/misc
+%ghost /lib/modules/%{kernel_release}/modules.*
+
+%files doc
+%defattr(644,root,root,755)
+%{_kernelsrcdir}/Documentation
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.30  2008/11/30 01:30:54  pawelz
+- reverted. (I have removed HEAD instead of branch in last commit)
+
+Revision 1.28  2008/11/27 09:49:23  pawelz
+- updated TODO
+
+Revision 1.27  2008/11/27 07:46:52  pawelz
+- added DEBUG_SLAB_LEAK=y to config with debug
+
+Revision 1.26  2008/11/23 22:54:27  pawelz
+- merged from DEVEL.
+
+Revision 1.23.2.19  2008/11/23 22:35:39  pawelz
+- packaged docs
+
+Revision 1.23.2.18  2008/11/23 20:29:34  pawelz
+- removed init scripts for umlinux. It makes no sens - main purpose of
+  umlinux is testing, not virtual servers hosting.
+
+Revision 1.23.2.17  2008/11/23 15:00:09  pawelz
+- pass correct kernel version string to depmod
+- do not depmod after uninstallation of all modules
+- fixed '%%files modules' section
+- -modules subpackage builds and installs now
+
+Revision 1.23.2.16  2008/11/23 14:15:10  pawelz
+- up to 2.6.26.7
+
+Revision 1.23.2.15  2008/11/01 03:11:28  zbyniu
+- localversion fixes
+
+Revision 1.23.2.14  2008/11/01 02:03:55  pawelz
+- added todo
+
+Revision 1.23.2.13  2008/11/01 02:01:14  pawelz
+- do not build -init package. Init script does not work.
+
+Revision 1.23.2.12  2008/11/01 01:53:14  pawelz
+- HOWTO is no longer available
+- do not package kernel-{source,module-build,headers}
+- up tu 2.6.27.4
+
+Revision 1.23.2.11  2008/10/28 23:19:49  glen
+- when will people learn?
+
+Revision 1.23.2.10  2008/10/28 22:46:19  pawelz
+- rewritten %%build section (based on kernel-vanilla.spec at Titanium)
+- it builds now
+- NFY
+
+Revision 1.23.2.9  2008/10/28 09:16:59  pawelz
+- depmod in post/postun
+
+Revision 1.23.2.8  2008/10/27 21:31:18  pawelz
+- it builds now
+- NFY
+
+Revision 1.23.2.7  2008/10/27 20:40:48  pawelz
+- dropped outdated BRs
+- fixed %build
+- it %builds now but not %installs
+
+Revision 1.23.2.6  2008/10/27 19:37:32  pawelz
+- started update to 2.6.27.3
+- dropped outdated patches
+
+Revision 1.23.2.5  2008/10/27 19:24:36  pawelz
+- droped patch 1 (outdated)
+
+Revision 1.23.2.4  2008/10/27 19:16:53  pawelz
+- removed -utils. Thes files are packeged in *working* umlinux-tools.spec
+
+Revision 1.23.2.3  2007/02/12 13:20:16  baggins
+- converted to UTF-8
+
+Revision 1.23.2.2  2005/12/01 12:43:53  witekfl
+- updated md5sum
+
+Revision 1.23.2.1  2005/06/30 19:46:00  glen
+- 2.6 one. builds but doesn't work
+
+Revision 1.21  2005/06/24 11:19:09  glen
+- anybody using this?
+
+Revision 1.20  2005/06/01 20:15:00  glen
+- BR: modutils
+
+Revision 1.19  2005/05/10 19:33:20  darekr
+- cosmetics
+
+Revision 1.18  2004/07/14 02:28:34  agaran
+- fixing, work in progres
+
+Revision 1.17  2004/05/09 22:41:33  hunter
+- up to 2.4.24
+
+Revision 1.16  2003/12/26 23:02:50  hunter
+- up to 2.4.23
+- BR:libpcap-static
+- it builds.
+
+Revision 1.15  2003/08/22 15:01:53  ankry
+- attributr fix
+
+Revision 1.14  2003/07/09 15:28:45  ankry
+- html is not tar
+
+Revision 1.13  2003/06/06 12:33:22  qboosh
+- updated feedback address
+
+Revision 1.12  2003/05/28 13:02:29  malekith
+- massive attack: source-md5
+
+Revision 1.11  2003/05/25 06:27:33  misi3k
+- massive attack s/pld.org.pl/pld-linux.org/
+
+Revision 1.10  2003/03/28 17:20:03  qboosh
+- cleanups
+
+Revision 1.9  2002/12/03 21:35:37  ankry
+- cleaning
+
+Revision 1.8  2002/12/02 11:06:28  ankry
+- massive cleaning
+
+Revision 1.7  2002/09/10 22:16:48  blues
+- cosmetic
+
+Revision 1.6  2002/09/10 17:50:06  hunter
+- automagic start/stop for umlinux, NFY
+
+Revision 1.5  2002/09/08 23:21:37  hunter
+- s/dupa/emulators
+- adapterized
+- added utils & doc
+  STBR
+
+Revision 1.4  2002/07/07 20:58:48  qboosh
+- removed changelog left from template.spec
+
+Revision 1.3  2002/07/05 08:39:49  qboosh
+- fixed URL, added Source0 and Patch0 URLs
+
+Revision 1.2  2002/06/29 11:02:14  wolf
+- spelling
+
+Revision 1.1  2002/06/28 13:57:10  dobrek
+- User mode linux spec.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/umlinux.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list