Commit cdc4c885 authored by Mikhail Efremov's avatar Mikhail Efremov Committed by Anton V. Boyarshinov

Package /usr/lib/os-relese

And require alt-os-release filetrigger.
parent 0e77ca46
......@@ -155,7 +155,7 @@ install: browser-qt ahttpd boot indexhtml
mkdir -p $(sysconfdir)/buildreqs/packages/ignore.d/
install -pD -m644 /dev/null $(sysconfdir)/buildreqs/packages/ignore.d/$(BRAND)-$(THEME)-release
install -d $(datadir)/branding-data-current
install -pD -m644 systemd/os-release $(datadir)/branding-data-current/release/os-release
install -pD -m644 systemd/os-release $(prefix)/lib/os-release
echo "$(PRODUCT_NAME) ($(CODENAME))" >$(datadir)/branding-data-current/release/altlinux-release
for n in fedora redhat system; do \
ln -s altlinux-release $(sysconfdir)/$$n-release; \
......
......@@ -142,6 +142,7 @@ Group: System/Configuration/Other
Provides: %(for n in %provide_list; do echo -n "$n-release = %version-%release "; done) altlinux-release-%theme branding-alt-%theme-release
Obsoletes: %obsolete_list
%branding_add_conflicts %flavour release
Requires: alt-os-release
%description release
%distro_name release file.
......@@ -264,7 +265,6 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
#release
%post release
if ! [ -e %_sysconfdir/altlinux-release ] && \
! [ -e %_sysconfdir/os-release ]; then
cp -a %data_cur_dir/release/*-release %_sysconfdir/
fi
......@@ -289,6 +289,7 @@ fi
%_pixmapsdir/system-logo.png
%files release
%_prefix/lib/os-release
%dir %data_cur_dir
%data_cur_dir/release/
%_sysconfdir/buildreqs/packages/ignore.d/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment