commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2020-06-17 14:51:26 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new.3606 (New) Package is "libcxl" Wed Jun 17 14:51:26 2020 rev:8 rq:815272 version:1.7 Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2018-06-02 12:11:31.517360870 +0200 +++ /work/SRC/openSUSE:Factory/.libcxl.new.3606/libcxl.changes 2020-06-17 14:52:02.557331514 +0200 @@ -1,0 +2,5 @@ +Fri Jun 12 16:03:43 UTC 2020 - Michel Normand + +- Add remove_2_backslashes_in_shell_call.patch + +--- New: remove_2_backslashes_in_shell_call.patch Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.Zkdq0t/_old 2020-06-17 14:52:08.241350975 +0200 +++ /var/tmp/diff_new_pack.Zkdq0t/_new 2020-06-17 14:52:08.241350975 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcxl # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -23,8 +23,9 @@ Summary:Coherent accelerator interface License:Apache-2.0 Group: Development/Libraries/C and C++ -Url:https://github.com/ibm-capi/libcxl +URL:https://github.com/ibm-capi/libcxl Source: %{name}-%{version}.tar.gz +Patch1: remove_2_backslashes_in_shell_call.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc ExclusiveArch: ppc64 ppc64le @@ -68,6 +69,7 @@ %prep %setup -q +%patch1 -p1 %build make CFLAGS="%{optflags} -fPIC" V=1 ++ remove_2_backslashes_in_shell_call.patch ++ From: Michel Normand Subject: remove 2 backslashes in shell call Date: Fri, 12 Jun 2020 17:26:40 +0200 Remove 2 backslashes in shell call To avoid make failure. Seems to start failing in OBS hardware project between 2020-04-05 and 2020-04-08 Signed-off-by: Michel Normand --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: libcxl-1.7/Makefile === --- libcxl-1.7.orig/Makefile +++ libcxl-1.7/Makefile @@ -19,7 +19,7 @@ HAS_WGET = $(shell /bin/which wget > /de HAS_CURL = $(shell /bin/which curl > /dev/null 2>&1 && echo y || echo n) # Update this to test a single feature from the most recent header we require: -CHECK_CXL_HEADER_IS_UP_TO_DATE = $(shell /bin/echo -e \\\#include $(1)\\\nint i = CXL_START_WORK_TID\; | \ +CHECK_CXL_HEADER_IS_UP_TO_DATE = $(shell /bin/echo -e \#include $(1)\\\nint i = CXL_START_WORK_TID\; | \ $(CC) $(CFLAGS) -Werror -x c -S -o /dev/null - >/dev/null 2>&1 && echo y || echo n) check_cxl_header:
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2018-06-02 12:10:42 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Sat Jun 2 12:10:42 2018 rev:7 rq:613088 version:1.7 Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2017-06-15 11:24:15.764035128 +0200 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2018-06-02 12:11:31.517360870 +0200 @@ -1,0 +2,11 @@ +Wed May 30 13:13:03 UTC 2018 - norm...@linux.vnet.ibm.com + +- Update v1.7 + New api cxl_get_tunneled_ops_supported +- Update v1.6 + new functions cxl_afu_host_thread_wait(), cxl_work_disable_wait(), + cxl_work_enable_wait() and cxl_work_get_tid() are now unconditionally + built and exported. +- remove libcxl_sysmacros.patch embeded upstream. + +--- Old: libcxl-1.5.tar.gz libcxl_sysmacros.patch New: libcxl-1.7.tar.gz Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.L4FcCp/_old 2018-06-02 12:11:33.261296905 +0200 +++ /var/tmp/diff_new_pack.L4FcCp/_new 2018-06-02 12:11:33.265296759 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcxl # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: libcxl -Version:1.5 +Version:1.7 Release:0 %define soversion 1 Summary:Coherent accelerator interface @@ -28,7 +28,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc ExclusiveArch: ppc64 ppc64le -Patch0: libcxl_sysmacros.patch %description Coherent accelerator interface (refer to lib package with soversion) @@ -69,7 +68,6 @@ %prep %setup -q -%patch0 -p1 %build make CFLAGS="%{optflags} -fPIC" V=1 ++ _service ++ --- /var/tmp/diff_new_pack.L4FcCp/_old 2018-06-02 12:11:33.297295585 +0200 +++ /var/tmp/diff_new_pack.L4FcCp/_new 2018-06-02 12:11:33.297295585 +0200 @@ -1,15 +1,15 @@ - + https://github.com/ibm-capi/libcxl.git git -v1.5 -1.5 +v1.7 +1.7 libcxl .git - + *.tar gz ++ libcxl-1.5.tar.gz -> libcxl-1.7.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcxl-1.5/Makefile new/libcxl-1.7/Makefile --- old/libcxl-1.5/Makefile 2017-05-24 11:51:38.0 +0200 +++ new/libcxl-1.7/Makefile 2018-05-15 13:23:50.0 +0200 @@ -5,7 +5,7 @@ CFLAGS += -I include # change VERS_LIB if new git tag -VERS_LIB = 1.5 +VERS_LIB = 1.7 LIBNAME = libcxl.so.$(VERS_LIB) # change VERS_SONAME only if library breaks backward compatibility. # refer to file symver.map @@ -19,8 +19,8 @@ HAS_CURL = $(shell /bin/which curl > /dev/null 2>&1 && echo y || echo n) # Update this to test a single feature from the most recent header we require: -CHECK_CXL_HEADER_IS_UP_TO_DATE = $(shell /bin/echo -e \\\#include $(1)\\\nvoid test\(struct cxl_afu_id test\)\; | \ - $(CC) $(CFLAGS) -Werror -x c -S -o /dev/null - > /dev/null 2>&1 && echo y || echo n) +CHECK_CXL_HEADER_IS_UP_TO_DATE = $(shell /bin/echo -e \\\#include $(1)\\\nint i = CXL_START_WORK_TID\; | \ + $(CC) $(CFLAGS) -Werror -x c -S -o /dev/null - >/dev/null 2>&1 && echo y || echo n) check_cxl_header: ifeq ($(call CHECK_CXL_HEADER_IS_UP_TO_DATE,""),n) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcxl-1.5/libcxl.c new/libcxl-1.7/libcxl.c --- old/libcxl-1.5/libcxl.c 2017-05-24 11:51:38.0 +0200 +++ new/libcxl-1.7/libcxl.c 2018-05-15 13:23:50.0 +0200 @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -43,6 +44,10 @@ #include "libcxl_internal.h" +#if defined CXL_START_WORK_TID +#include +#endif + #undef DEBUG #ifdef DEBUG @@ -91,6 +96,9 @@ afu->sysfs_path = NULL; afu->fd_errbuff = -1; afu->errbuff_size = -1; +#if defined CXL_START_WORK_TID + afu->pid = -1; +#endif return afu; } @@ -624,6 +632,10 @@ errno = EINVAL; return -1; } +#if defined CXL_START_WORK_TID + /* get the internal kernel "pid" of the Thread ID */ + afu->pid = syscall(SYS_gettid); +#endif memset(&work, 0, sizeof(work)); work.work_element_descriptor = wed; @@ -640,6 +652,10 @@ errno = EINVAL;
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2017-06-15 11:24:14 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Thu Jun 15 11:24:14 2017 rev:6 rq:502641 version:1.5 Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2016-06-13 21:55:32.0 +0200 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2017-06-15 11:24:15.764035128 +0200 @@ -1,0 +2,18 @@ +Thu Jun 8 09:48:10 UTC 2017 - norm...@linux.vnet.ibm.com + +- Update v1.5 + * libcxl: Check afu link when read from PSA mmio return all FFs + * Makefile: add -Werror + * Use _DEFAULT_SOURCE rather than _BSD_SOURCE + * Fix sparse warnings + * Added #include + * Man pages: document flags CXL_MMIO_{BIG,HOST,LITTLE}_ENDIAN + * Makefile: do not fail if target symlink already exists. + * Man pages: clarify mmio read/write alignment constraints. + * Create LIBSONAME link + * sysfs: Fix a boundary condition check for OUT_OF_RANGE macro + +- remove libcxl_create_soname_link.patch part of above update. +- add libcxl_sysmacros.patch to avoid warning at build time + +--- Old: libcxl-1.4.tar.gz libcxl_create_soname_link.patch New: _service libcxl-1.5.tar.gz libcxl_sysmacros.patch Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.Rc0232/_old 2017-06-15 11:24:16.623913746 +0200 +++ /var/tmp/diff_new_pack.Rc0232/_new 2017-06-15 11:24:16.623913746 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcxl # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,18 +17,18 @@ Name: libcxl -Version:1.4 +Version:1.5 Release:0 %define soversion 1 Summary:Coherent accelerator interface License:Apache-2.0 Group: Development/Libraries/C and C++ Url:https://github.com/ibm-capi/libcxl -Source: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc ExclusiveArch: ppc64 ppc64le -Patch0: libcxl_create_soname_link.patch +Patch0: libcxl_sysmacros.patch %description Coherent accelerator interface (refer to lib package with soversion) ++ _service ++ https://github.com/ibm-capi/libcxl.git git v1.5 1.5 libcxl .git *.tar gz ++ libcxl-1.4.tar.gz -> libcxl-1.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcxl-1.4/.gitignore new/libcxl-1.5/.gitignore --- old/libcxl-1.4/.gitignore 2016-05-26 15:17:58.0 +0200 +++ new/libcxl-1.5/.gitignore 1970-01-01 01:00:00.0 +0100 @@ -1,8 +0,0 @@ -*.d -*.o -*.so -*.a -*~ -*.orig -.*.swp -include/misc/cxl.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcxl-1.4/Makefile new/libcxl-1.5/Makefile --- old/libcxl-1.4/Makefile 2016-05-26 15:17:58.0 +0200 +++ new/libcxl-1.5/Makefile 2017-05-24 11:51:38.0 +0200 @@ -5,7 +5,7 @@ CFLAGS += -I include # change VERS_LIB if new git tag -VERS_LIB = 1.4 +VERS_LIB = 1.5 LIBNAME = libcxl.so.$(VERS_LIB) # change VERS_SONAME only if library breaks backward compatibility. # refer to file symver.map @@ -13,7 +13,7 @@ LIBSONAME = libcxl.so.$(VERS_SONAME) SONAMEOPT = -Wl,-soname,$(LIBSONAME) -all: check_cxl_header $(LIBNAME) libcxl.so libcxl.a +all: check_cxl_header $(LIBSONAME) libcxl.so libcxl.a HAS_WGET = $(shell /bin/which wget > /dev/null 2>&1 && echo y || echo n) HAS_CURL = $(shell /bin/which curl > /dev/null 2>&1 && echo y || echo n) @@ -37,7 +37,10 @@ libcxl.o libcxl_sysfs.o : CFLAGS += -fPIC libcxl.so: $(LIBNAME) - ln -s $(LIBNAME) libcxl.so + ln -sf $(LIBNAME) libcxl.so + +$(LIBSONAME): $(LIBNAME) + ln -sf $(LIBNAME) $(LIBSONAME) $(LIBNAME): libcxl.o libcxl_sysfs.o symver.map $(call Q,CC, $(CC) $(CFLAGS) $(LDFLAGS) -shared libcxl.o libcxl_sysfs.o -o $(LIBNAME), $(LIBNAME)) -Wl,--version-script symver.map $(SONAMEOPT) @@ -48,13 +51,13 @@ include Makefile.rules clean: - rm -f *.o *.d libcxl.so libcxl.a include/misc/cxl.h + rm -f *.o *.d libcxl.so* libcxl.a include/misc/cxl.h install: all mkdir -p $(DESTDIR)$(libdir) mkd
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2016-06-13 21:55:30 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2016-03-29 10:39:25.0 +0200 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2016-06-13 21:55:32.0 +0200 @@ -1,0 +2,17 @@ +Tue May 31 15:19:12 UTC 2016 - norm...@linux.vnet.ibm.com + +- Update v1.4 + * New API function cxl_get_psl_timebase_synced. + * Simplify implementation of OUT_OF_RANGE macro + * libcxl add install target + * use LDFLAGS from the env + * libcxl set default soname and interface version + * Add extern "C" to libcxl.h for compatibility with C++ projects + * typo error in 3 man pages + * Add SONAME support in Makefile +- remove embeded patches: + libcxl_typo_correction_man_pages.patch + libcxl_add_soname_in_Makefile.patch +- new libcxl_create_soname_link.patch + +--- Old: libcxl-1.3.tar.gz libcxl_add_soname_in_Makefile.patch libcxl_typo_correction_man_pages.patch New: libcxl-1.4.tar.gz libcxl_create_soname_link.patch Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.Fk4yrM/_old 2016-06-13 21:55:33.0 +0200 +++ /var/tmp/diff_new_pack.Fk4yrM/_new 2016-06-13 21:55:33.0 +0200 @@ -17,7 +17,7 @@ Name: libcxl -Version:1.3 +Version:1.4 Release:0 %define soversion 1 Summary:Coherent accelerator interface @@ -28,8 +28,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc ExclusiveArch: ppc64 ppc64le -Patch0: libcxl_add_soname_in_Makefile.patch -Patch1: libcxl_typo_correction_man_pages.patch +Patch0: libcxl_create_soname_link.patch %description Coherent accelerator interface (refer to lib package with soversion) @@ -71,29 +70,22 @@ %prep %setup -q %patch0 -p1 -%patch1 -p1 %build -make VERS_SONAME=%{soversion} VERS_LIB=%{version}.%{release} \ -CFLAGS="%{optflags} -fPIC" V=1 +make CFLAGS="%{optflags} -fPIC" V=1 mkdir -p build/man3 -pushd build/man3 -cp ../../man3/*.3 ./ && gzip *.3 -popd +cp -p man3/*.3 build/man3 %install -mkdir -p %{buildroot}%{_libdir} -mkdir -p %{buildroot}%{_includedir} +make DESTDIR=%{buildroot} prefix=/usr install mkdir -p %{buildroot}%{_mandir} -install -m 0755 libcxl.so* %{buildroot}%{_libdir}/ -install -m 0644 libcxl.h %{buildroot}%{_includedir}/ cp -a build/man3 %{buildroot}%{_mandir}/ %files -n %{name}%{soversion} %defattr(-,root,root) %doc LICENSE %doc README.md -%{_libdir}/libcxl.so* +%{_libdir}/libcxl.so.* %post -n %{name}%{soversion} -p /sbin/ldconfig @@ -104,5 +96,6 @@ %doc LICENSE %{_includedir}/* %{_mandir}/man3/* +%{_libdir}/libcxl.so %changelog ++ libcxl-1.3.tar.gz -> libcxl-1.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libcxl-1.3/Makefile new/libcxl-1.4/Makefile --- old/libcxl-1.3/Makefile 2015-11-02 10:52:08.0 +0100 +++ new/libcxl-1.4/Makefile 2016-05-26 15:17:58.0 +0200 @@ -4,7 +4,16 @@ OBJS = libcxl.o libcxl_sysfs.o CFLAGS += -I include -all: check_cxl_header libcxl.so libcxl.a +# change VERS_LIB if new git tag +VERS_LIB = 1.4 +LIBNAME = libcxl.so.$(VERS_LIB) +# change VERS_SONAME only if library breaks backward compatibility. +# refer to file symver.map +VERS_SONAME=1 +LIBSONAME = libcxl.so.$(VERS_SONAME) +SONAMEOPT = -Wl,-soname,$(LIBSONAME) + +all: check_cxl_header $(LIBNAME) libcxl.so libcxl.a HAS_WGET = $(shell /bin/which wget > /dev/null 2>&1 && echo y || echo n) HAS_CURL = $(shell /bin/which curl > /dev/null 2>&1 && echo y || echo n) @@ -27,8 +36,11 @@ libcxl.o libcxl_sysfs.o : CFLAGS += -fPIC -libcxl.so: libcxl.o libcxl_sysfs.o symver.map - $(call Q,CC, $(CC) $(CFLAGS) -shared libcxl.o libcxl_sysfs.o -o libcxl.so, libcxl.so) -Wl,--version-script symver.map +libcxl.so: $(LIBNAME) + ln -s $(LIBNAME) libcxl.so + +$(LIBNAME): libcxl.o libcxl_sysfs.o symver.map + $(call Q,CC, $(CC) $(CFLAGS) $(LDFLAGS) -shared libcxl.o libcxl_sysfs.o -o $(LIBNAME), $(LIBNAME)) -Wl,--version-script symver.map $(SONAMEOPT) libcxl.a: libcxl.o libcxl_sysfs.o $(call Q,AR, ar rcs libcxl.a libcxl.o libcxl_sysfs.o, libcxl.a) @@ -38,4 +50,11 @@ clean: rm -f *.o *.d libcxl.so libcxl.a include/misc/cxl.h -.PHONY: clean all +install: all + mkdir -p $(DESTDIR)$(libdir) + mkdir -p $(DESTDIR)$(includedir) + install -m 0755 $(LIBNAME) $(DESTDIR)$(libdir)/ + cp
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2016-03-29 10:00:10 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2016-03-16 10:33:23.0 +0100 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2016-03-29 10:39:25.0 +0200 @@ -1,0 +2,5 @@ +Thu Mar 24 09:18:38 UTC 2016 - jeng...@inai.de + +- RPM group reclassification + +--- Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.YTnMUP/_old 2016-03-29 10:39:26.0 +0200 +++ /var/tmp/diff_new_pack.YTnMUP/_new 2016-03-29 10:39:26.0 +0200 @@ -22,7 +22,7 @@ %define soversion 1 Summary:Coherent accelerator interface License:Apache-2.0 -Group: System Environment/Libraries +Group: Development/Libraries/C and C++ Url:https://github.com/ibm-capi/libcxl Source: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -36,7 +36,7 @@ %package -n %{name}%{soversion} Summary:Coherent accelerator shared library -Group: System Environment/Libraries +Group: System/Libraries %description -n %{name}%{soversion} The coherent accelerator interface is designed to allow the coherent @@ -66,7 +66,7 @@ %description devel Coherent accelerator interface header files and man pages -only for development purpose. +only for development purposes. %prep %setup -q
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2016-03-16 10:33:23 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2016-02-26 00:34:38.0 +0100 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2016-03-16 10:33:23.0 +0100 @@ -1,0 +2,11 @@ +Thu Mar 3 16:21:46 UTC 2016 - jloe...@suse.com + +- spec update for SLES12 (FATE#320440) + +--- +Thu Mar 3 12:12:39 UTC 2016 - norm...@linux.vnet.ibm.com + +- Add missing -fPIC and use default optflags in CFLAGS + and do make to be verbose. + +--- Old: v1.3.tar.gz New: libcxl-1.3.tar.gz Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.o3NgtM/_old 2016-03-16 10:33:24.0 +0100 +++ /var/tmp/diff_new_pack.o3NgtM/_new 2016-03-16 10:33:24.0 +0100 @@ -24,7 +24,7 @@ License:Apache-2.0 Group: System Environment/Libraries Url:https://github.com/ibm-capi/libcxl -Source: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz +Source: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc ExclusiveArch: ppc64 ppc64le @@ -32,7 +32,7 @@ Patch1: libcxl_typo_correction_man_pages.patch %description - Coherent accelerator interface (refer to lib package with soversion) +Coherent accelerator interface (refer to lib package with soversion) %package -n %{name}%{soversion} Summary:Coherent accelerator shared library @@ -72,13 +72,10 @@ %setup -q %patch0 -p1 %patch1 -p1 -# TODO: need a way to retrieve the cxl.h from last linux git tree -# to avoid Makefile error if current kernel headers do not have cxl.h -# but unable to execute wget in OBS chroot env. -# This is the cause of build failure for SLE_12 %build -make VERS_SONAME=%{soversion} VERS_LIB=%{version}.%{release} +make VERS_SONAME=%{soversion} VERS_LIB=%{version}.%{release} \ +CFLAGS="%{optflags} -fPIC" V=1 mkdir -p build/man3 pushd build/man3 cp ../../man3/*.3 ./ && gzip *.3 @@ -94,7 +91,7 @@ %files -n %{name}%{soversion} %defattr(-,root,root) -%license LICENSE +%doc LICENSE %doc README.md %{_libdir}/libcxl.so* @@ -104,7 +101,7 @@ %files devel %defattr(-,root,root) -%license LICENSE +%doc LICENSE %{_includedir}/* %{_mandir}/man3/*
commit libcxl for openSUSE:Factory
Hello community, here is the log from the commit of package libcxl for openSUSE:Factory checked in at 2016-02-25 22:06:38 Comparing /work/SRC/openSUSE:Factory/libcxl (Old) and /work/SRC/openSUSE:Factory/.libcxl.new (New) Package is "libcxl" Changes: --- /work/SRC/openSUSE:Factory/libcxl/libcxl.changes2016-02-17 10:23:23.0 +0100 +++ /work/SRC/openSUSE:Factory/.libcxl.new/libcxl.changes 2016-02-26 00:34:38.0 +0100 @@ -1,0 +2,6 @@ +Sun Feb 21 23:46:26 UTC 2016 - jeng...@inai.de + +- Drop Fedora parts (no build targets exist). Drop Debian dots + from description. Add missing requires. + +--- Other differences: -- ++ libcxl.spec ++ --- /var/tmp/diff_new_pack.HTvMe1/_old 2016-02-26 00:34:39.0 +0100 +++ /var/tmp/diff_new_pack.HTvMe1/_new 2016-02-26 00:34:39.0 +0100 @@ -18,14 +18,10 @@ Name: libcxl Version:1.3 -%define soversion 1 Release:0 +%define soversion 1 Summary:Coherent accelerator interface -%if 0%{?fedora} || 0%{?rhel_version} -License:ASL 2.0 -%else License:Apache-2.0 -%endif Group: System Environment/Libraries Url:https://github.com/ibm-capi/libcxl Source: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz @@ -48,13 +44,15 @@ Coherent in this context means that the accelerator and CPUs can both access system memory directly and with the same effective addresses. IBM refers to this as the Coherent Accelerator Processor Interface (CAPI). In the Linux -world it is referred to by the name CXL to avoid confusion with the ISDN +world, it is referred to by the name CXL to avoid confusion with the ISDN CAPI subsystem. - The Linux kernel interacts with the device POWER Service Layer (PSL). + +The Linux kernel interacts with the device POWER Service Layer (PSL). Userland interacts with the device Accelerator Function Unit (AFU). See the Linux kernel source file Documentation/powerpc/cxl.txt for a detailed description of the coherent accelerator interface. - The CXL library provides a userland API to coherently attached devices. CXL + +The CXL library provides a userland API to coherently attached devices. CXL devices can be enumerated. Their capabilities can be queried. AFUs can be opened, attached to the current process, and started. Jobs, described by AFU specific Work Element Descriptors (WEDs), can be submitted and executed by @@ -63,14 +61,15 @@ %package devel Summary:Coherent accelerator interface header files and man pages -Group: Development/Libraries +Group: Development/Libraries/C and C++ +Requires: %name%soversion = %version %description devel - Coherent accelerator interface header files and man pages - only for development purpose - . +Coherent accelerator interface header files and man pages +only for development purpose. + %prep -%setup -q -n %{name}-%{version} +%setup -q %patch0 -p1 %patch1 -p1 # TODO: need a way to retrieve the cxl.h from last linux git tree @@ -92,14 +91,11 @@ install -m 0755 libcxl.so* %{buildroot}%{_libdir}/ install -m 0644 libcxl.h %{buildroot}%{_includedir}/ cp -a build/man3 %{buildroot}%{_mandir}/ -%if 0%{?fedora} || 0%{?rhel_version} -ldconfig -n %{buildroot}%{_libdir} -%endif %files -n %{name}%{soversion} +%defattr(-,root,root) %license LICENSE %doc README.md -%defattr(-,root,root) %{_libdir}/libcxl.so* %post -n %{name}%{soversion} -p /sbin/ldconfig @@ -107,8 +103,8 @@ %postun -n %{name}%{soversion} -p /sbin/ldconfig %files devel -%license LICENSE %defattr(-,root,root) +%license LICENSE %{_includedir}/* %{_mandir}/man3/*