]>
Commit | Line | Data |
---|---|---|
bddcfea1 | 1 | %define distversion %(. /etc/os-release 2>/dev/null ; echo $VERSION) |
f74c2584 | 2 | |
07eabacd | 3 | Summary: PLD Linux release file with logo |
d49cd452 ER |
4 | Summary(de.UTF-8): PLD Linux Release-Datei mit logo |
5 | Summary(pl.UTF-8): Wersja Linuksa PLD z logiem | |
07eabacd | 6 | Name: issue-fancy |
bddcfea1 | 7 | Version: 3.0 |
42fc9a5a | 8 | Release: 2 |
07eabacd | 9 | License: GPL |
10 | Group: Base | |
07eabacd | 11 | Source0: %{name}-gen |
12 | Source1: %{name}.crontab | |
1a624c2a | 13 | Source2: %{name}.init |
07eabacd | 14 | # In fact it requires quote_logo_backslashes patch. |
4c193e18 | 15 | BuildRequires: linux_logo >= 3.9b5 |
42fc9a5a JR |
16 | BuildRequires: pld-release >= 3.0 |
17 | %requires_eq pld-release | |
10b15c70 | 18 | Requires(post,preun): /sbin/chkconfig |
e1b4539b | 19 | Requires: linux_logo >= 3.9b5 |
4c193e18 | 20 | Requires: crondaemon |
49ceaf73 | 21 | Provides: issue |
dad812cb JR |
22 | Conflicts: issue-alpha < 3.0-1 |
23 | Conflicts: issue-logo < 3.0-1 | |
24 | Conflicts: issue-nice < 3.0-1 | |
25 | Conflicts: issue-pure < 3.0-1 | |
b1edf42d PZ |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
07eabacd | 28 | |
a1787e86 | 29 | %define _sbindir /sbin |
30 | ||
07eabacd | 31 | %description |
32 | PLD Linux release file with logo. | |
33 | ||
2670b29d | 34 | %description -l pl.UTF-8 |
07eabacd | 35 | Wersja Linuksa PLD z logiem. |
36 | ||
37 | %prep | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
3c3687a6 | 41 | install -d $RPM_BUILD_ROOT{/etc/{cron.d,rc.d/init.d},%{_sbindir}} |
07eabacd | 42 | |
a1787e86 | 43 | install %{SOURCE0} $RPM_BUILD_ROOT%{_sbindir} |
44 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name} | |
45 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/issue-fancy | |
07eabacd | 46 | |
a1787e86 | 47 | $RPM_BUILD_ROOT%{_sbindir}/issue-fancy-gen $RPM_BUILD_ROOT |
07eabacd | 48 | |
1a624c2a JB |
49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
07eabacd | 52 | %post |
53 | /sbin/issue-fancy-gen | |
1a624c2a | 54 | /sbin/chkconfig --add issue-fancy |
337a3ebf | 55 | |
56 | %preun | |
57 | if [ "$1" = "0" ]; then | |
58 | /sbin/chkconfig --del issue-fancy | |
59 | fi | |
60 | ||
07eabacd | 61 | %files |
62 | %defattr(644,root,root,755) | |
7d44a5a0 | 63 | # Can't use "noreplace" here because issues are regenerated from cron |
07eabacd | 64 | # and %post. Without "noreplace" at least ".rpmsave" will stay. |
2a3d379f SS |
65 | %config %verify(not md5 mtime size) %{_sysconfdir}/issue |
66 | %config %verify(not md5 mtime size) %{_sysconfdir}/issue.net | |
a1787e86 | 67 | %attr(755,root,root) %{_sbindir}/* |
07eabacd | 68 | %attr(600,root,root) /etc/cron.d/* |
69 | %attr(754,root,root) /etc/rc.d/init.d/* |