[lucidlife] Update spec file for new packaging guidelines. Fix FTBFS (#564896). Add patch to fix the FSF address

Peter Gordon pgordon at fedoraproject.org
Wed Jun 1 23:05:37 UTC 2011


commit e501ad4076b78a5bd3838cac07dc3ea8a018d6ba
Author: Peter Gordon <peter at thecodergeek.com>
Date:   Wed Jun 1 16:05:23 2011 -0700

    Update spec file for new packaging guidelines. Fix FTBFS (#564896). Add patch to fix the FSF address in the license file.

 lucidlife-fix-FSF-address.patch |   12 ++++++++++++
 lucidlife.spec                  |   30 ++++++++++++++++++------------
 2 files changed, 30 insertions(+), 12 deletions(-)
---
diff --git a/lucidlife-fix-FSF-address.patch b/lucidlife-fix-FSF-address.patch
new file mode 100644
index 0000000..830deef
--- /dev/null
+++ b/lucidlife-fix-FSF-address.patch
@@ -0,0 +1,12 @@
+diff -up ./COPYING.old ./COPYING
+--- ./COPYING.old	2011-06-01 01:06:43.750308625 -0700
++++ ./COPYING	2011-06-01 01:06:51.950305531 -0700
+@@ -2,7 +2,7 @@
+ 		       Version 2, June 1991
+ 
+  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+-                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++                       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+  Everyone is permitted to copy and distribute verbatim copies
+  of this license document, but changing it is not allowed.
+ 
diff --git a/lucidlife.spec b/lucidlife.spec
index ad3921c..21aca10 100755
--- a/lucidlife.spec
+++ b/lucidlife.spec
@@ -1,14 +1,14 @@
 Name:           lucidlife
 Version:        0.9.2
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        A Conway's Life simulator
 
 Group:          Amusements/Games
 License:        GPLv2+
-URL:            http://icculus.org/~jcspray/LucidLife/
-Source0:        http://icculus.org/~jcspray/LucidLife/%{name}-%{version}.tar.gz
+URL:            http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Simulation/LucidLife-26633.shtml
+Source0:        http://mirror.thecodergeek.com/src/lucidlife-0.9.2.tar.gz
 Patch0:		%{name}-make-docs-use-proper-dir.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch1: 	%{name}-fix-FSF-address.patch
 
 BuildRequires:  gtk2-devel >= 2.6.0
 BuildRequires:	gnome-vfs2-devel
@@ -20,7 +20,7 @@ BuildRequires:	gettext
 LucidLife is a Conway's Life simulator. The rules are rather simple. The game
 is started with a large grid of cell locations, and an arbitrary set of
 living cells. On each turn, each cell thrives or dies based on the number of 
-cells which sourround it. A dead (empty) cell with three live cells around it
+cells which surround it. A dead (empty) cell with three live cells around it
 becomes a living cell (a birth); a living cell with two or three neighbors
 survives; otherwise the cell dies (due to overcrowding) or remains dead
 (due to loneliness). It is based on the the GtkLife project, but with a
@@ -30,15 +30,15 @@ more modern user interface and other enhancements.
 %prep
 %setup -q
 %patch0 -p0 -b .make-docs-use-proper-dir
+%patch1 -p0 -b .fix-FSF-address
 
 
 %build
-%configure
+%configure LDFLAGS='-lX11'
 make %{?_smp_mflags}
 
 
 %install
-rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 %find_lang %{name}
 desktop-file-install --vendor fedora	\
@@ -49,12 +49,7 @@ desktop-file-install --vendor fedora	\
 	%{buildroot}%{_datadir}/applications/lucidlife.desktop
  
 
-%clean
-rm -rf %{buildroot}
-
-
 %files -f %{name}.lang 
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README TODO
 %doc doc/*.png doc/*.html doc/*.gif doc/*.css
 %{_bindir}/%{name}
@@ -64,6 +59,17 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Tue May 31 2011 Peter Gordon <peter at thecodergeek.com> 0.9.2-7
+- Update spec file in accordance with newer packaging guidelines:
+  - Remove BuildRoot references.
+  - Remove %%defattr lines in %%files listing.
+- Update Source0 and webpage URLs, since the icculus.org site appears to be
+  down.
+- Fix FTBFS. Resolves bug #564896 (FTBFS lucidlife-0.9.2-5.fc12: ImplicitDSOLinking)
+- Fix spelling error in %%description.
+- Add patch to correct the FSF address in the GPL license file.
+  + fix-FSF-address.patch
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.2-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list