|
Message-ID: <20120215183050.GB9506@altlinux.org>
Date: Wed, 15 Feb 2012 22:30:50 +0400
From: "Dmitry V. Levin" <ldv@...linux.org>
To: owl-dev@...ts.openwall.com
Subject: Re: /etc/os-release
On Wed, Feb 15, 2012 at 09:52:26PM +0400, gremlin@...mlin.ru wrote:
> %build
> cat > %{name} << __OS_RELEASE_EOF__
> NAME="Openwall GNU/*/Linux"
> VERSION="%{version}"
> ID="owl"
> VERSION_ID="%{version}"
> PRETTY_NAME="Openwall GNU/*/Linux %{version}"
> __OS_RELEASE_EOF__
>
> %install
> rm -rf %{buildroot}
> mkdir -m 755 -p %{buildroot}%{_sysconfdir}
> install -m 644 %{name} %{buildroot}%{_sysconfdir}/%{name}
> rm -f %{name}
There is a way to create the file right at the destination,
so why bother with a %build section at all? ;)
--
ldv
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.