]> git.pld-linux.org Git - packages/fortune-mod.git/blobdiff - fortune-mod.spec
- don't exit() from /etc/profile
[packages/fortune-mod.git] / fortune-mod.spec
index 410a8745320b1e82cdae24576d1d7f9ad724e7bd..5589d865785d92b8544e4b3a2079c9f7d412a9c9 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _with_offensive - include offensive fortunes
+%bcond_with    offensive       # include offensive fortunes
 #
 Summary:       A program which will display a fortune
 Summary(cs):   Program suenka s vitbou (fortune cookie) s opravami chyb
@@ -14,16 +14,17 @@ Summary(pt_BR):     Fortune: frases famosas e ditados
 Summary(ru):   ðÒÏÇÒÁÍÍÁ, ÐÅÞÁÔÁÀÝÁÑ "fortune" (ÓÌÕÞÁÊÎÏ ×ÙÂÒÁÎÎÏÅ ÓÏÏÂÝÅÎÉÅ)
 Summary(uk):   ðÒÏÇÒÁÍÁ, ÑËÁ ÄÒÕËÕ¤ "fortune" (×ÉÐÁÄËÏ×Ï ×ÉÂÒÁÎÅ ÐÏצÄÏÍÌÅÎÎÑ)
 Name:          fortune-mod
-Version:       1.0
-Release:       27
+Version:       1.99.1
+Release:       1
 License:       BSD
 Group:         Applications/Games
-Source0:       ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/%{name}-9708.tar.gz
+#Source0:      ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/%{name}-9708.tar.gz
+Source0:       http://www.redellipse.net/code/downloads/%{name}-%{version}.tar.gz
+# Source0-md5: f208805b3b712e32997d7667e0ec52d8
 Source1:       %{name}.sh
 Source2:       %{name}.csh
-Patch0:                %{name}-offense.patch
-Patch1:                %{name}-32bit-offset.patch
-Patch2:                %{name}-display-source.patch
+Patch0:                %{name}-usage.patch
+BuildRequires: recode-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -124,7 +125,7 @@ they log in.
 Install fortune if you want a program which will bestow these random
 bits o' wit.
 
-This package constain english data files for fortunes.
+This package contains English data files for fortune-mod.
 
 %description data -l pl
 Fortune-mod zawiera wci±¿ popularny program fortune ("cytat dnia",
@@ -133,7 +134,7 @@ podczas logowania? Program fortune jest dla Ciebie. Administratorzy z
 poczuciem humoru mog± dodaæ fortune do plików .login u¿ytkowników tak,
 by ka¿dy otrzyma³ swoj± dawkê m±dro¶ci przy logowaniu.
 
-Ten pakiet zawiera angielskie pliki z danymi dla fortunek.
+Ten pakiet zawiera angielskie pliki z danymi dla fortune-mod.
 
 %package on-login
 Summary:       Displays fortune cookie on login
@@ -150,13 +151,14 @@ Je
 pakiet jest tym, czego potrzebujesz.
 
 %prep
-%setup -q -n fortune-mod-9708
+%setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
-%{__make} CFLAGS="%{rpmcflags} \\\$(DEFINES)" %{?_with_offensive:OFFENSIVE=1}
+%{__make} \
+       CFLAGS="%{rpmcflags} \\\$(DEFINES)" \
+       %{?with_offensive:OFFENSIVE=1}
+
 %{__make} fortune/fortune.man
 
 %install
@@ -169,9 +171,9 @@ install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{1,6},%{_datadir}/games/for
        BINDIR=$RPM_BUILD_ROOT%{_bindir} \
        BINMANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
        FORTMANDIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
-       %{?_with_offensive:OFFENSIVE=1}
+       %{?with_offensive:OFFENSIVE=1}
 
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/unstr.1*
 
 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
 
This page took 0.247315 seconds and 4 git commands to generate.