mirror of
https://abf.rosa.ru/djam/rosa-release.git
synced 2025-02-24 06:52:47 +00:00
fix
This commit is contained in:
parent
f2c5a1bee9
commit
247bc4d2ce
1 changed files with 4 additions and 6 deletions
|
@ -74,19 +74,17 @@ Provides: %name = %version-%release \
|
|||
%description %{-s:%1} \
|
||||
ROSA Linux release file for %1 flavor. \
|
||||
|
||||
|
||||
%define release_post(s) \
|
||||
%post %{-s:%1} \
|
||||
ln -fs product.id.%1 /etc/product.id
|
||||
|
||||
|
||||
%define release_install(s) \
|
||||
cat > %buildroot/etc/product.id.%{1} << EOF \
|
||||
%{product_id_base},product=%1\
|
||||
EOF\
|
||||
\
|
||||
mkdir -p %buildroot%/etc/rpm/macros.d \
|
||||
cat > %buildroot%/etc/rpm/macros.d/%{1}.macros <<EOF \
|
||||
mkdir -p %buildroot/etc/rpm/macros.d \
|
||||
cat > %buildroot/etc/rpm/macros.d/%{1}.macros <<EOF \
|
||||
%%distribution %distribution\
|
||||
%%rosa_release %rosa_release\
|
||||
%%rosa_branch %rosa_branch\
|
||||
|
@ -164,14 +162,14 @@ ln -sf rosa-release $RPM_BUILD_ROOT/etc/mandriva-release
|
|||
ln -sf rosa-release $RPM_BUILD_ROOT/etc/mandrakelinux-release
|
||||
echo "%{version}.0 %{rel} %{distname}" > $RPM_BUILD_ROOT/etc/version
|
||||
|
||||
mkdir -p %buildroot%/etc/profile.d
|
||||
mkdir -p %buildroot/etc/profile.d
|
||||
cp -f %{SOURCE6} %buildroot/etc/profile.d/
|
||||
cp -f %{SOURCE7} %buildroot/etc/profile.d/
|
||||
|
||||
%release_install Free
|
||||
%release_install EE
|
||||
|
||||
touch %buildroot%/etc/product.id
|
||||
touch %buildroot/etc/product.id
|
||||
|
||||
%release_post -s Free
|
||||
%release_post -s EE
|
||||
|
|
Loading…
Add table
Reference in a new issue