[Openswan dev] [PATCH] Openswan .spec file for SUSE/SLES9

Ruben Laban r.laban at ism.nl
Tue Aug 21 06:52:03 EDT 2007


Hi list,

I had to make some small change to the provided .spec file for suse to have it 
build properly on our SUSE Linux Enterprise Server 9 buildhosts. The unified 
diff is below:

--- openswan-2.4.9.orig/packaging/suse/openswan.26spec       2007-07-10 05:20:50.000000000 +0200
+++ openswan-2.4.9/packaging/suse/openswan.26spec      2007-08-21 11:58:51.809891664 +0200
@@ -4,7 +4,7 @@
 %define opensw_release 1suse9
 %define debug_package %{nil}
 Release: %{opensw_release}
-Source: http://www.openswan.org/code/openswan-%{Version}.tar.gz
+Source: http://www.openswan.org/code/openswan-%{version}.tar.gz
 BuildPreReq: gmp
 BuildRoot: %{_tmppath}/%{name}-buildroot
 Summary: Openswan IPsec userland tools
@@ -29,12 +29,13 @@
 Openswan on a kernel with either the KLIPS or NETKEY stack.

 %prep
-%setup -q -n openswan-%{Version}
+%setup -q -n openswan-%{version}

 %build
 %{__make} \
   USERCOMPILE="-g %{optflags}" \
   INC_USRLOCAL=%{_prefix} \
+  FINALLIBDIR=%{_libdir}/ipsec \
   MANTREE=%{_mandir} \
   INC_RCDEFAULT=%{_initrddir} \
   programs
@@ -45,6 +46,7 @@
 %{__make} \
   DESTDIR=%{buildroot} \
   INC_USRLOCAL=%{_prefix} \
+  FINALLIBDIR=%{_libdir}/ipsec \
   INC_RCDEFAULT=%{_initrddir} \
   MANTREE=%{buildroot}%{_mandir} \
   install


Regards,

Ruben Laban
Systems and Network Administrator
r.laban at ism.nl
  
ISM eCompany
Van Nelleweg 1
Postbus 13043
3004 HA Rotterdam
+31 (0)10 243 6000 (tel)
+31 (0)10 243 6066 (fax)
www.ism.nl

Quality Solutions - Reliable Partner


More information about the Dev mailing list