]> git.pld-linux.org Git - packages/fortune-mod.git/blob - fortune-mod.spec
- source url's changed
[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 Copyright:      BSD
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)
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
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.
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 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.
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 mkdir -p $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.153123 seconds and 3 git commands to generate.