From 4c32e186c76000bff34593195f5413f651d738e1 Mon Sep 17 00:00:00 2001
From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar@cs.princeton.edu>
Date: Sat, 15 May 2010 04:51:52 +0000
Subject: [PATCH] make our tools happy

---
 kernel-2.6.spec | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/kernel-2.6.spec b/kernel-2.6.spec
index 13ee18d88..0ca5d6edd 100644
--- a/kernel-2.6.spec
+++ b/kernel-2.6.spec
@@ -1,5 +1,20 @@
 %global __spec_install_pre %{___build_pre}
 
+#### Planet-Lab ####
+Vendor: PlanetLab
+Packager: PlanetLab Central <support@planet-lab.org>
+Distribution: PlanetLab %{plrelease}
+URL: %(echo %{url} | cut -d ' ' -f 2)
+
+%{!?pldistro:%global pldistro planetlab}
+
+# for module-tag.py - sublevel is used for the version (middle) part of tag names
+%define name linux-2.6
+%define module_version_varname sublevel
+%define taglevel 0
+
+#### Planet-Lab ####
+
 Summary: The Linux kernel
 
 # For a stable, released kernel, released_kernel should be 1. For rawhide
@@ -208,6 +223,9 @@ Summary: The Linux kernel
 %if %{rhel}
 %define pkg_release %{distro_build}%{?dist}%{?buildid}
 %endif
+#### Planet-Lab ####
+%define pkg_release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+####
 %define KVERREL %{rpmversion}-%{pkg_release}.%{_target_cpu}
 
 %if !%{debugbuildsenabled}
-- 
2.47.0