]> git.pld-linux.org Git - packages/fortune-mod.git/blobdiff - fortune-mod.spec
- offense spec isn't really needed now (thx wolf)
[packages/fortune-mod.git] / fortune-mod.spec
index 5103e1efe046f590cc30c9fc16da981180118447..8589c63e2ee0410c88a8da4037e20104db87f630 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,17 +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:       0.1
 License:       BSD
 Group:         Applications/Games
-Source0:       ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/%{name}-9708.tar.gz
-# Source0-md5: 81a87a44f9d94b0809dfc2b7b140a379
+#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}-32bit-offset.patch
+Patch1:                %{name}-display-source.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -151,13 +151,15 @@ Je
 pakiet jest tym, czego potrzebujesz.
 
 %prep
-%setup -q -n fortune-mod-9708
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q
+#%patch0 -p1
+#%patch1 -p1
 
 %build
-%{__make} CFLAGS="%{rpmcflags} \\\$(DEFINES)" %{?_with_offensive:OFFENSIVE=1}
+%{__make} \
+       CFLAGS="%{rpmcflags} \\\$(DEFINES)" \
+       %{?with_offensive:OFFENSIVE=1}
+
 %{__make} fortune/fortune.man
 
 %install
@@ -170,9 +172,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.065796 seconds and 4 git commands to generate.