Procházet zdrojové kódy

upgrading package: sitecopy 0.11.4 -> 0.12.0

Peter Smej před 23 roky
rodič
revize
f455d28024
1 změnil soubory, kde provedl 17 přidání a 5 odebrání
  1. 17 5
      sitecopy/sitecopy.spec

+ 17 - 5
sitecopy/sitecopy.spec

@@ -32,8 +32,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [BASE]
 Group:        Web
 License:      GPL
-Version:      0.11.4
-Release:      20020820
+Version:      0.12.0
+Release:      20030214
 
 #   list of sources
 Source0:      http://www.lyra.org/sitecopy/sitecopy-%{version}.tar.gz
@@ -41,7 +41,7 @@ Source0:      http://www.lyra.org/sitecopy/sitecopy-%{version}.tar.gz
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, openssl, make, gcc
+BuildPreReq:  OpenPKG, openpkg >= 20020206, openssl, make, gcc, libxml, expat
 PreReq:       OpenPKG, openpkg >= 20020206
 AutoReq:      no
 AutoReqProv:  no
@@ -53,18 +53,30 @@ AutoReqProv:  no
     %setup -q
 
 %build
+	# fix broken archive
+    %{l_shtool} subst \
+		-e 's;@PACKAGE@;@PACKAGE_NAME@;' \
+		-e 's;@VERSION@;@PACKAGE_VERSION@;' \
+		-e 's; FAQ ; ;' \
+		Makefile.in
+	# avoid picking up installed library
+    %{l_shtool} subst -e 's;-lneon;\$neon_bundled_builddir/libneon.a;' configure
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
+	CPPFLAGS="%{l_cppflags} -I%{l_prefix}/include/libxml2" \
+    LDFLAGS="%{l_ldflags} -L%{l_prefix}/lib" \
     ./configure \
         --prefix=%{l_prefix} \
         --with-ssl=%{l_prefix} \
-        --with-included-expat \
-        --with-included-neon \
+		--with-included-neon \
+        --with-libxml2 \
         --without-gnome \
         --disable-rsh \
         --disable-nls
+    %{l_shtool} subst -e 's;lib/getopt1;lib/getopt1.o lib/getopt;' Makefile
     %{l_make} %{l_mflags -O}
 
+
 %install
     rm -rf $RPM_BUILD_ROOT
     %{l_make} %{l_mflags} install \