|
@@ -1,6 +1,8 @@
|
|
|
-%define vine_version 6.0
|
|
|
-%define vine_codename Haut Brion
|
|
|
+%define vine_version 7.0
|
|
|
+%define vine_codename Ausone
|
|
|
+%define vine_codename_lsb %(echo %{vine_codename} | sed -e 's/ //g')
|
|
|
%define rh_version 10
|
|
|
+%define lsb_version 4.0
|
|
|
|
|
|
# new vine linux release number
|
|
|
%define _dist_release vl%(echo %{vine_version} | cut -f1 -d.)
|
|
@@ -22,7 +24,7 @@ License: BSD
|
|
|
Group: System Environment/Base
|
|
|
Distribution: Vine Linux
|
|
|
Vendor: Project Vine
|
|
|
-Packager: Daisuke SUZUKI <daisuke@vinelinux.org>
|
|
|
+Packager: daisuke
|
|
|
BuildRoot: /tmp/%{name}-%{version}-root
|
|
|
BuildArchitectures: noarch
|
|
|
Obsoletes: redhat-release
|
|
@@ -38,6 +40,14 @@ Vine Linux リリースファイル
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/etc
|
|
|
echo "Vine Linux %{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})" > ${RPM_BUILD_ROOT}/etc/vine-release
|
|
|
|
|
|
+cat <<EOF > ${RPM_BUILD_ROOT}/etc/lsb-release
|
|
|
+LSB_VERSION="%{lsb_version}"
|
|
|
+DISTRIB_ID="Vine"
|
|
|
+DISTRIB_RELEASE="%{version}"
|
|
|
+DISTRIB_CODENAME="%{vine_codename_lsb}"
|
|
|
+DISTRIB_DESCRIPTION="Vine Linux %{version}"
|
|
|
+EOF
|
|
|
+
|
|
|
%pre
|
|
|
if [ -f /etc/vine-release ]; then
|
|
|
if [ ! -z "`grep CR /etc/vine-release`" ]; then
|
|
@@ -45,31 +55,22 @@ if [ -f /etc/vine-release ]; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
-%post
|
|
|
-/sbin/ldconfig
|
|
|
-TARGET=/etc/ld.so.preload
|
|
|
-if [ -f ${TARGET} ]; then
|
|
|
- if [ ! -z "`grep libwcsmbs\.so ${TARGET}`" ]; then
|
|
|
- cp -a ${TARGET} ${TARGET}.rpm
|
|
|
- (
|
|
|
- set +e
|
|
|
- grep -v '^/lib/libwcsmbs\.so' ${TARGET}.rpm | \
|
|
|
- grep -v '^libwcsmbs\.so'
|
|
|
- set -e
|
|
|
- ) > ${TARGET}
|
|
|
- fi
|
|
|
-fi
|
|
|
-if [ -f /tmp/vine-cr ]; then
|
|
|
- rm -f /tmp/vine-cr
|
|
|
- cp /etc/vine-release /etc/vine-release.rpmsave
|
|
|
- sed 's/2.6 /2.6CR /g' /etc/vine-release.rpmsave > /etc/vine-release
|
|
|
-fi
|
|
|
-
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
/etc/vine-release
|
|
|
+/etc/lsb-release
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Aug 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 7.0-0.0.1vl7.seed
|
|
|
+- build for VineSeed(vl7)
|
|
|
+
|
|
|
+* Sat Jul 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-1vl6
|
|
|
+- build for Vine Linux 6 release
|
|
|
+
|
|
|
+* Tue Apr 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-0.1vl6.beta
|
|
|
+- build for Vine Linux 6 Beta
|
|
|
+- add /etc/lsb-version
|
|
|
+
|
|
|
* Tue Aug 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-0.0.1vl6.seed
|
|
|
- build for VineSeed (vl6)
|
|
|
|