]> git.pld-linux.org Git - packages/fortune-mod.git/blob - fortune-mod.spec
8b45d1a1a586c51368f7ea027b07d0cf857c43ac
[packages/fortune-mod.git] / fortune-mod.spec
1 Summary:        A program which will display a fortune
2 Summary(pl):    Program wy¶wietlaj±cy losow± fortunkê
3 Name:           fortune-mod
4 Version:        1.0
5 Release:        13
6 License:        BSD
7 Group:          Applications/Games
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/%{name}-9708.tar.gz
9 Patch0:         %{name}-offense.patch
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 Fortune-mod contains the ever-popular fortune program. Want a little
14 bit of random wisdom revealed to you when you log in? Fortune's your
15 program. Fun-loving system administrators can add fortune to users'
16 .login files, so that the users get their dose of wisdom each time
17 they log in.
18
19 Install fortune if you want a program which will bestow these random
20 bits o' wit.
21
22 %description -l pl
23 Fortune-mod zawiera wci±¿ popularny program fortune ("cytat dnia",
24 "przepowiednia"). Masz ochotê na odrobinê m±dro¶ci przekazanej Ci
25 podczas logowania? Program fortune jest dla Ciebie. Administratorzy z
26 poczuciem humoru mog± dodaæ fortune do plików .login u¿ytkowników tak,
27 by ka¿dy otrzyma³ swoj± dawkê m±dro¶ci przy logowaniu.
28
29 %package data
30 Summary:        A program which will display a fortune
31 Summary(pl):    Program wy¶wietlaj±cy losow± fortunkê
32 Group:          Applications/Games
33 Requires:       %{name}
34
35 %description data
36 Fortune-mod contains the ever-popular fortune program. Want a little
37 bit of random wisdom revealed to you when you log in? Fortune's your
38 program. Fun-loving system administrators can add fortune to users'
39 .login files, so that the users get their dose of wisdom each time
40 they log in.
41
42 Install fortune if you want a program which will bestow these random
43 bits o' wit.
44
45 This package constain english data files for fortunes.
46
47 %description data -l pl
48 Fortune-mod zawiera wci±¿ popularny program fortune ("cytat dnia",
49 "przepowiednia"). Masz ochotê na odrobinê m±dro¶ci przekazanej Ci
50 podczas logowania? Program fortune jest dla Ciebie. Administratorzy z
51 poczuciem humoru mog± dodaæ fortune do plików .login u¿ytkowników tak,
52 by ka¿dy otrzyma³ swoj± dawkê m±dro¶ci przy logowaniu.
53
54 Ten pakiet zawiera angielskie pliki z danymi dla fortunek.
55
56 %prep
57 %setup -q -n fortune-mod-9708
58 %patch0 -p1
59
60 %build
61 %{__make} CFLAGS="%{rpmcflags} \\\$(DEFINES)"
62 %{__make} fortune/fortune.man
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{1,6},%{_datadir}/games/fortune}
67
68 %{__make} FORTDIR=$RPM_BUILD_ROOT%{_bindir} \
69         COOKIEDIR=$RPM_BUILD_ROOT%{_datadir}/games/fortunes \
70         BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
71         BINMANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
72         FORTMANDIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
73         install
74
75 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
76 echo ".so strfile.1" > $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
77
78 gzip -9nf README ChangeLog TODO
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc {README,ChangeLog,TODO}.gz
86 %attr(755,root,root) %{_bindir}/fortune
87 %attr(755,root,root) %{_sbindir}/strfile
88 %attr(755,root,root) %{_sbindir}/unstr
89 %{_mandir}/man6/fortune.6*
90 %{_mandir}/man1/*
91
92 %files data
93 %defattr(644,root,root,755)
94 %{_datadir}/games/fortunes
This page took 0.043699 seconds and 3 git commands to generate.