[sword-devel] spec file

Michael A. Peters sword-devel@crosswire.org
Tue, 20 Apr 2004 18:27:58 -0700


--=-nFwoeMYZOvJ21weYAkGO
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2004-04-20 at 10:23, Hugo van der Kooij wrote:
> On Tue, 20 Apr 2004, Michael A. Peters wrote:
> 
> > Change 2: changed the buildroot from /var/tmp/sword-root to
> > %_tmppath/sword-root
> 
> I would prefer %{_tmppath} over %_tmppath so it leaves no room for errors
> as to what part of the string is the variable. But it is more of a
> cosmetic thing in this case.
> 
> Hugo.

This spec file patch fixes that and one other issue I noticed (requires for devel package)

The devel package has a static version for sword in the requires.

-- 
Cheap Linux CD's - http://mpeters.us/linux/

--=-nFwoeMYZOvJ21weYAkGO
Content-Disposition: attachment; filename=sword-spec2.patch
Content-Type: text/x-patch; name=sword-spec2.patch; charset=utf-8
Content-Transfer-Encoding: 7bit

--- sword.spec	2004-01-12 09:22:04.000000000 -0800
+++ sword.spec.in	2004-04-20 18:19:05.540078645 -0700
@@ -1,6 +1,6 @@
 Summary:	The SWORD Project framework for manipulating Bible texts
 Name:		sword
-%define version 1.5.7
+%define version @VERSION@
 Version:	%{version}
 Release:	1
 #Icon:		sword.gif
@@ -9,7 +9,7 @@
 URL:		http://www.crosswire.org/sword
 Source:		http://www.crosswire.org/download/ftpmirror.tmp/pub/sword/source/v1.5/sword-%{version}.tar.gz
 Group:		System Environment/Libraries
-BuildRoot:	/var/tmp/sword-root
+BuildRoot:	%{_tmppath}/sword-root
 Requires:	curl
 Requires:	zlib
 # Requires:	icu >= 2.6
@@ -23,7 +23,7 @@
 %package devel
 Summary: Include files and static libraries for developing sword applications.
 Group: Development/Libraries
-Requires:	sword = 1.5.7
+Requires:	sword = %{version}
 Requires:	curl-devel >= 7.10.5
 Requires:	zlib-devel
 

--=-nFwoeMYZOvJ21weYAkGO--