Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 15 Feb 2012 21:52:26 +0400
From: gremlin@...mlin.ru
To: owl-dev@...ts.openwall.com
Subject: Re: /etc/os-release

On 15-Feb-2012 18:36:08 +0400, Solar Designer wrote:
 > We should probably add this:
 > http://www.freedesktop.org/software/systemd/man/os-release.html
 > even though we have no intent to use systemd in the foreseeable future.

That will be a "spec-only" package...

==== cut ====
Summary: Operating system identification
Name: os-release
Version: 3.0.current
Release: owl1
License: GPL
Group: System/Utilities
URL: http://openwall.com/Owl
AutoReq: false
Provides: /etc/os-release
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
The /etc/os-release file contains operating system identification data.

%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}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sysconfdir}/*
==== cut ====

Possibly we should differ between package version and distribution
version, but the above just does the thing.


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin
<gremlin ПРИ gremlin ТЧК ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

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.