1 Summary: A program which will display a fortune.
6 Group: Amusements/Games
7 Source: ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/fortune-mod-9708.tar.gz
8 Patch0: fortune-mod-offense.patch
9 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 Fortune-mod contains the ever-popular fortune program. Want a little
13 bit of random wisdom revealed to you when you log in? Fortune's
14 your program. Fun-loving system administrators can add fortune to
15 users' .login files, so that the users get their dose of wisdom
16 each time they log in.
18 Install fortune if you want a program which will bestow these random
22 Fortune-mod zawiera wci±¿ popularny program fortune ("cytat dnia",
23 "przepowiednia"). Masz ochotê na odrobinê m±dro¶ci przekazanej Ci
24 podczas logowania? Program fortune jest dla Ciebie. Administratorzy z poczuciem
25 humoru mog± dodaæ fortune do plików .login u¿ytkowników tak, by ka¿dy
26 otrzyma³ swoj± dawkê m±dro¶ci przy logowaniu.
29 %setup -q -n fortune-mod-9708
36 rm -rf $RPM_BUILD_ROOT
37 mkdir -p $RPM_BUILD_ROOT{%{_prefix}/games,%{_sbindir},%{_mandir}/man{1,6},%{_datadir}/games/fortune}
39 make FORTDIR=$RPM_BUILD_ROOT%{_prefix}/games \
40 COOKIEDIR=$RPM_BUILD_ROOT%{_datadir}/games/fortunes \
41 BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
42 BINMANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
43 FORTMANDIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
46 strip --strip-unneeded $RPM_BUILD_ROOT{%{_sbindir}/*,%{_prefix}/games/fortune} || :
48 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
49 echo ".so strfile.1" > $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
51 gzip -9nf README ChangeLog TODO $RPM_BUILD_ROOT%{_mandir}/man{1,6}/*
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc {README,ChangeLog,TODO}.gz
59 %attr(755,root,root) %{_prefix}/games/fortune
60 %attr(755,root,root) %{_sbindir}/strfile
61 %attr(755,root,root) %{_sbindir}/unstr
62 %{_datadir}/games/fortunes
63 %{_mandir}/man6/fortune.6.gz