]> git.pld-linux.org Git - packages/fortune-mod.git/blob - fortune-mod.spec
fd69461655962d2a98888ab84c355c4cbbbc2147
[packages/fortune-mod.git] / fortune-mod.spec
1 Summary:        A program which will display a fortune.
2 Name:           fortune-mod
3 Version:        1.0
4 Release:        10
5 License:        BSD
6 Group:          Amusements/Games
7 Source0:        ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/%{name}-9708.tar.gz
8 Patch0:         fortune-mod-offense.patch
9 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
10
11 %description
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 your
14 program. Fun-loving system administrators can add fortune to users'
15 .login files, so that the users get their dose of wisdom each time
16 they log in.
17
18 Install fortune if you want a program which will bestow these random
19 bits o' wit.
20
21 %description -l pl
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
25 poczuciem humoru mog± dodaæ fortune do plików .login u¿ytkowników tak,
26 by ka¿dy otrzyma³ swoj± dawkê m±dro¶ci przy logowaniu.
27
28 %prep
29 %setup -q -n fortune-mod-9708
30 %patch0 -p1
31
32 %build
33 make 
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_prefix}/games,%{_sbindir},%{_mandir}/man{1,6},%{_datadir}/games/fortune}
38
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 \
44         install
45
46 strip --strip-unneeded $RPM_BUILD_ROOT{%{_sbindir}/*,%{_prefix}/games/fortune} || :
47
48 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
49 echo ".so strfile.1" > $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
50
51 gzip -9nf README ChangeLog TODO $RPM_BUILD_ROOT%{_mandir}/man{1,6}/*
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
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
64 %{_mandir}/man1/*
This page took 0.073168 seconds and 3 git commands to generate.