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