[packages/libxenserver] - updated to 24.1.0
qboosh
qboosh at pld-linux.org
Wed Mar 20 22:19:41 CET 2024
commit 1c7412e2f93f7f65783d104129b9f34126f511ad
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 20 22:15:45 2024 +0100
- updated to 24.1.0
libxenserver-make.patch | 67 +++++++++++++++++++++++--------------------------
libxenserver.spec | 21 ++++++++--------
2 files changed, 43 insertions(+), 45 deletions(-)
---
diff --git a/libxenserver.spec b/libxenserver.spec
index c4dc415..70805c9 100644
--- a/libxenserver.spec
+++ b/libxenserver.spec
@@ -2,18 +2,16 @@
Summary: An SDK for Citrix XenServer, exposing the XenServer API
Summary(pl.UTF-8): SDK dla Citrix XenServera, udostępniające API XenServer
Name: libxenserver
-Version: 7.2.0
+Version: 24.1.0
Release: 1
License: BSD
Group: Libraries
-# download: http://xenserver.org/partners/developing-products-for-xenserver.html
-# /Download SDK -> Software Development Kit
-# e.g. https://www.citrix.com/downloads/xenserver/product-software/xenserver-72-standard-edition.html
-# /SDK (then see at "rel" <a href=...> attribute)
-Source0: http://downloadns.citrix.com.edgesuite.net/12642/XenServer-%{version}-SDK.zip
-# Source0-md5: 97b9f76d21dbddc055fb8a0af20e90e8
+# download: https://www.xenserver.com/downloads
+# /SDK
+Source0: https://downloads.xenserver.com/sdk/%{version}/XenServer-SDK-%{version}.zip
+# Source0-md5: 5ec46a037504c53a3e1844ae448ff6a9
Patch0: %{name}-make.patch
-URL: http://xenserver.org/partners/developing-products-for-xenserver.html
+URL: https://www.xenserver.com/
BuildRequires: curl-devel
BuildRequires: libxml2-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -68,13 +66,13 @@ Statyczna biblioteka libxenserver.
%prep
%setup -q -n XenServer-SDK
-%patch0 -p0
+%patch0 -p1
# precompiled binaries
%{__rm} libxenserver/bin/*
%build
-%{__make} -C libxenserver/src all libxenserver.a \
+%{__make} -C libxenserver/src \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -Iinclude $(xml2-config --cflags) $(curl-config --cflags) -W -Wall -std=c99 -fPIC" \
LDFLAGS="%{rpmldflags}"
@@ -84,10 +82,13 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C libxenserver/src install \
DESTDIR=$RPM_BUILD_ROOT \
+ INCLUDEDIR=%{_includedir} \
INSTALL="%{__install} -p" \
INSTALL_PROG="%{__install} -p -m755" \
LIBDIR=%{_libdir}
+cp -p libxenserver/src/include/xen*_internal.h $RPM_BUILD_ROOT%{_includedir}
+
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/libxenserver-make.patch b/libxenserver-make.patch
index 31a885d..e111e39 100644
--- a/libxenserver-make.patch
+++ b/libxenserver-make.patch
@@ -1,6 +1,18 @@
---- libxenserver/src/Makefile.orig 2017-05-11 17:10:12.000000000 +0200
-+++ libxenserver/src/Makefile 2017-08-01 16:19:26.024452548 +0200
-@@ -45,9 +45,9 @@
+--- XenServer-SDK/libxenserver/src/Makefile.orig 2024-01-11 09:33:24.000000000 +0100
++++ XenServer-SDK/libxenserver/src/Makefile 2024-03-20 21:40:11.671420662 +0100
+@@ -27,7 +27,10 @@
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+-DESTDIR=/usr/local
++DESTDIR=
++PREFIX=/usr/local
++INCLUDEDIR=$(PREFIX)/include
++LIBDIR=$(PREFIX)/lib
+
+ ifeq ($(CYGWIN), 1)
+ CYGWIN_LIBXML = -L/bin -lxml2-2
+@@ -41,9 +44,9 @@ CFLAGS = -g -Iinclude \
$(shell curl-config --cflags) \
-W -Wall -Wmissing-prototypes -Werror -std=c99 $(POS_FLAG)
@@ -13,53 +25,38 @@
# -h for Solaris
SONAME_LDFLAG ?= -soname
-@@ -64,6 +64,10 @@
-
- TEST_PROGRAMS = $(patsubst %.c, %, $(wildcard test/*.c))
-
-+PREFIX = /usr
-+INCLUDEDIR = $(PREFIX)/include
-+LIBDIR = $(PREFIX)/lib
-+
- .PHONY: all
- all: $(TEST_PROGRAMS)
-
-@@ -74,28 +78,28 @@
+@@ -67,7 +70,7 @@ libxenserver.so.2: libxenserver.so.2.20
ln -sf $< $@
- libxenserver.so.2.7: $(LIBXENAPI_OBJS)
-- $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenserver.so.2 $(SHLIB_CFLAGS) -o $@ $^
-+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenserver.so.2 $(SHLIB_CFLAGS) -o $@ $^ $(LIBS)
+ libxenserver.so.2.20: $(LIBXENAPI_OBJS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG),libxenserver.so.2 $(SHLIB_CFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG),libxenserver.so.2 $(SHLIB_CFLAGS) -o $@ $^ $(LIBS)
libxenserver.a: $(LIBXENAPI_OBJS)
$(AR) rcs libxenserver.a $^
+@@ -75,17 +78,17 @@ libxenserver.a: $(LIBXENAPI_OBJS)
+ build: libxenserver.so libxenserver.a
- $(TEST_PROGRAMS): test/%: test/%.o libxenserver.so
-- $(CC) -o $@ $< $(TEST_LDFLAGS) $(LDFLAGS)
-+ $(CC) -o $@ $< $(TEST_LDFLAGS) $(LDFLAGS) $(PROG_LIBS)
-
-
- .PHONY: install
- install: all libxenserver.a
+ install: build
- $(INSTALL_DIR) $(DESTDIR)/include/xen/api
- $(INSTALL_DIR) $(DESTDIR)/lib
-- $(INSTALL_DATA) libxenserver.so.2.7 $(DESTDIR)/lib
-- ln -sf libxenserver.so.2.7 $(DESTDIR)/lib/libxenserver.so.2
+- $(INSTALL_DATA) libxenserver.so.2.20 $(DESTDIR)/lib
+- ln -sf libxenserver.so.2.20 $(DESTDIR)/lib/libxenserver.so.2
- ln -sf libxenserver.so.2 $(DESTDIR)/lib/libxenserver.so
-- $(INSTALL_DATA) libxenserver.a $(DESTDIR)/lib
+ $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xen/api
+ $(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
-+ $(INSTALL_DATA) libxenserver.so.2.7 $(DESTDIR)$(LIBDIR)
-+ ln -sf libxenserver.so.2.7 $(DESTDIR)$(LIBDIR)/libxenserver.so.2
++ $(INSTALL_DATA) libxenserver.so.2.20 $(DESTDIR)$(LIBDIR)
++ ln -sf libxenserver.so.2.20 $(DESTDIR)$(LIBDIR)/libxenserver.so.2
+ ln -sf libxenserver.so.2 $(DESTDIR)$(LIBDIR)/libxenserver.so
+ ifeq ($(CYGWIN), 1)
+- ln -sf libxenserver.so $(DESTDIR)/lib/libxenserver.dll
++ ln -sf libxenserver.so $(DESTDIR)$(LIBDIR)/libxenserver.dll
+ endif
+- $(INSTALL_DATA) libxenserver.a $(DESTDIR)/lib
+ $(INSTALL_DATA) libxenserver.a $(DESTDIR)$(LIBDIR)
- for i in $(LIBXENAPI_HDRS_INT); do \
-- $(INSTALL_DATA) $$i $(DESTDIR)/include/; \
-+ $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEDIR)/; \
- done
for i in $(LIBXENAPI_HDRS); do \
- $(INSTALL_DATA) $$i $(DESTDIR)/include/xen/api; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEDIR)/xen/api; \
done
-
+ clean:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libxenserver.git/commitdiff/1c7412e2f93f7f65783d104129b9f34126f511ad
More information about the pld-cvs-commit
mailing list