X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fortune-mod.spec;h=8589c63e2ee0410c88a8da4037e20104db87f630;hb=3db0c41a9d7ddc62db97358b9add3cd1430c5db1;hp=410a8745320b1e82cdae24576d1d7f9ad724e7bd;hpb=b0057721c572498e303f0c55a99dcaf1199217db;p=packages%2Ffortune-mod.git diff --git a/fortune-mod.spec b/fortune-mod.spec index 410a874..8589c63 100644 --- a/fortune-mod.spec +++ b/fortune-mod.spec @@ -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: 0.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}-32bit-offset.patch +Patch1: %{name}-display-source.patch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -150,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 @@ -169,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