rpms/fortune-mod/devel fortune-mod.spec,1.4,1.5

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sun Nov 14 16:23:49 UTC 2004


Changeset from: mschwendt

Update of /cvs/extras/rpms/fortune-mod/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv19383

Modified Files:
	fortune-mod.spec 
Log Message:
Fix fedora.us #2279, plus minor spec updates.


Index: fortune-mod.spec
===================================================================
RCS file: /cvs/extras/rpms/fortune-mod/devel/fortune-mod.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fortune-mod.spec	8 Nov 2004 04:20:17 -0000	1.4
+++ fortune-mod.spec	14 Nov 2004 16:23:47 -0000	1.5
@@ -4,8 +4,7 @@
 Summary: A program which will display a fortune.
 Name:		fortune-mod
 Version:	1.0
-Release:	24.fdr.4.2
-Epoch:		0
+Release:	25
 URL:		http://www.ibiblio.org/pub/Linux/games/amusements/fortune/fortune-mod-9708.README
 License: BSD
 Group: Amusements/Games
@@ -37,30 +36,30 @@
 %endif
 
 %build
-make COOKIEDIR=%{_prefix}/games/fortune \
+make COOKIEDIR=%{CookieDir} \
 	FORTDIR=%{_bindir} BINDIR=%{_sbindir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make    COOKIEDIR=%{_prefix}/games/fortune fortune/fortune.man
+make    COOKIEDIR=%{CookieDir} fortune/fortune.man
 make	FORTDIR=$RPM_BUILD_ROOT/%{_bindir} \
-	COOKIEDIR=$RPM_BUILD_ROOT%{_prefix}/games/fortune \
+	COOKIEDIR=$RPM_BUILD_ROOT%{CookieDir} \
 	BINDIR=$RPM_BUILD_ROOT/%{_sbindir} \
 	BINMANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
 	FORTMANDIR=$RPM_BUILD_ROOT/%{_mandir}/man6 \
 	install
 
-tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_prefix}/games/fortune/
+tar zxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{CookieDir}
 %if %{DisableOffensiveFortunes}
-rm $RPM_BUILD_ROOT%{_prefix}/games/fortune/men-women*
+rm $RPM_BUILD_ROOT%{CookieDir}/men-women*
 %endif
 
 # Using bzcat for portability because tar keeps randomly changing the switch
 # for bzip.  It was "y" at one point, then "I", and now it is "j".  God knows
 # WTF they'll change it too next.
 
-bzcat %{SOURCE2} | tar xvf - -C $RPM_BUILD_ROOT%{_prefix}/games/fortune/
+bzcat %{SOURCE2} | tar xvf - -C $RPM_BUILD_ROOT%{CookieDir}
 
 # Non-standard source files, need to move things around
 tar zxvf %{SOURCE3} -C $RPM_BUILD_ROOT%{CookieDir}/ fortune-tao/tao*
@@ -78,6 +77,13 @@
 mv $RPM_BUILD_ROOT%{CookieDir}/humorixfortunes-1.4/* $RPM_BUILD_ROOT%{CookieDir}/
 rmdir $RPM_BUILD_ROOT%{CookieDir}/humorixfortunes-1.4
 
+# Recreate random access files for the added fortune files.
+for i in \
+    kernelnewbies bofh-excuses tao hitchhiker \
+    osfortune humorix-misc humorix-stories \
+; do util/strfile $RPM_BUILD_ROOT%{CookieDir}/$i ; done
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,10 +93,15 @@
 %{_bindir}/fortune
 %{_sbindir}/strfile
 %{_sbindir}/unstr
-%{_prefix}/games/fortune
+%{CookieDir}
 %{_mandir}/man*/*
 
 %changelog
+* Sat Nov 13 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.0-25
+- Recreate .dat files at build-time to fix x86_64 fedora.us bug #2279.
+- Use %%CookieDir everywhere.
+- Bump release to 25, drop Epoch.
+
 * Sun Jun 08 2003 Michel Alexandre Salim <salimma[AT]users.sourceforge.net> 1.0-24.fdr.4
 - Added Humorix fortunes
 - Used $RPM_BUILD_ROOT




More information about the fedora-extras-commits mailing list