1 %define distnamever %(. /etc/os-release 2>/dev/null ; echo $VERSION)
2 %define distversion %([ -e /etc/os-release ] && . /etc/os-release 2>/dev/null ; echo ${VERSION_ID:-0})
4 Summary: PLD Linux prelogin message and identification file with logo
5 Summary(de.UTF-8): PLD Linux Systemidentifikationsdatei mit logo
6 Summary(pl.UTF-8): Plik z logiem identyfikujący system PLD Linux, wyświetlany przed zalogowaniem
8 Version: %{distversion}
12 BuildRequires: pld-release >= 3.0
13 %requires_eq pld-release
15 Conflicts: issue-alpha < 3.0-1
16 Conflicts: issue-fancy < 3.0-1
17 Conflicts: issue-nice < 3.0-1
18 Conflicts: issue-pure < 3.0-1
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 PLD Linux prelogin message and identification file with logo.
25 %description -l de.UTF-8
26 PLD Linux Systemidentifikationsdatei mit logo.
28 %description -l pl.UTF-8
29 Plik z logiem identyfikujący system PLD Linux,
30 wyświetlany przed zalogowaniem.
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_sysconfdir}
38 cat > $RPM_BUILD_ROOT%{_sysconfdir}/issue <<EOF
40 / ) PLD Linux %{distnamever} \m, \r
51 echo -ne "\l " >> $RPM_BUILD_ROOT%{_sysconfdir}/issue
53 cat > $RPM_BUILD_ROOT%{_sysconfdir}/issue.net <<EOF
55 / ) PLD Linux %{distnamever} %m, %r
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %config(noreplace) %{_sysconfdir}/issue*