Compare commits
No commits in common. "imports/c10s/libzdnn-1.0.1-8.el10" and "c8" have entirely different histories.
imports/c1
...
c8
@ -1 +0,0 @@
|
|||||||
1
|
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/libzdnn-*.tar.gz
|
SOURCES/libzdnn-1.0.1.tar.gz
|
||||||
|
89
SPECS/libzdnn.spec
Normal file
89
SPECS/libzdnn.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
Name: libzdnn
|
||||||
|
Version: 1.0.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Driver library for the IBM Z Neural Network Processing Assist Facility
|
||||||
|
|
||||||
|
License: ASL 2.0
|
||||||
|
Url: https://github.com/IBM/zDNN
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
ExclusiveArch: s390x
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: cpp
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gawk
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: autoconf
|
||||||
|
|
||||||
|
# Be explicit about the soversion in order to avoid unintentional changes.
|
||||||
|
%global soversion 0
|
||||||
|
|
||||||
|
%description
|
||||||
|
The zDNN library provide a user space API for exploitation of the
|
||||||
|
Neural Network Processing Assist Facility. All application which
|
||||||
|
intend to use that facility on IBM Z are supposed to do this via this
|
||||||
|
library.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Static library version %{name}
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description static
|
||||||
|
The %{name}-static package contains the static library of %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n zDNN-%{version}
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
|
%build
|
||||||
|
# libzdnn needs to be built with z14 support so override the distro wide options to append -march=z14.
|
||||||
|
# cflags for the init routines in e.g. zdnn_init.c should just use the distro options.
|
||||||
|
# export CFLAGS_INIT explicitely since it is not handled by configure
|
||||||
|
CFLAGS_INIT="%{build_cflags}"; export CFLAGS_INIT; CFLAGS="%{build_cflags} -march=z14 -mtune=z14" CXXFLAGS="%{build_cxxflags} -march=z14 -mtune=z14" %configure
|
||||||
|
%make_build build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
mv $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version}
|
||||||
|
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion}
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
||||||
|
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/libzdnn.so.%{version}
|
||||||
|
%{_libdir}/libzdnn.so.%{soversion}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/zdnn.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%{_libdir}/libzdnn.a
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu May 11 2023 Jakub Čajka <jcajka@redhat.com> - 1.0.1-1
|
||||||
|
- Update to 1.0.1
|
||||||
|
- Resolves: RHBZ#2160081
|
||||||
|
|
||||||
|
* Tue Jan 24 2023 Jakub Čajka <jcajka@redhat.com> - 0.4.0-2
|
||||||
|
- Release bump
|
||||||
|
- Resolves: RHBZ#2093292
|
||||||
|
|
||||||
|
* Fri Mar 25 2022 Jakub <jcajka@redhat.com> - 0.4.0-1
|
||||||
|
- Initial package import
|
||||||
|
- Resolves: RHBZ#2070957
|
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-10
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier1.functional}
|
|
@ -1,32 +0,0 @@
|
|||||||
From 4ae92a0b84751aa5880f5fa8a18b2295de1b8adb Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <jcajka@users.noreply.github.com>
|
|
||||||
Date: Fri, 21 Jun 2024 17:12:06 +0200
|
|
||||||
Subject: [PATCH] fix: use system LDFLAGS (#20)
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
- pass system LDFLAGS to linker in all cases
|
|
||||||
|
|
||||||
Signed-off-by: Jakub Čajka <jcajka@redhat.com>
|
|
||||||
---
|
|
||||||
config.zdnn | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/config.zdnn b/config.zdnn
|
|
||||||
index 2eb5948..0396098 100644
|
|
||||||
--- a/config.zdnn
|
|
||||||
+++ b/config.zdnn
|
|
||||||
@@ -43,9 +43,9 @@ case "${target}" in
|
|
||||||
LIBNAME_PRIVATE="${LIBNAME_PRIVATE:-${LIBNAME}-private}"
|
|
||||||
LIBSONAME_PRIVATE="${LIBSONAME_PRIVATE:-${LIBNAME_PRIVATE}.so.0}"
|
|
||||||
LDFLAGS="${LDFLAGS:-}"
|
|
||||||
- LDFLAGS_SHARED="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME} -Wl,--version-script=zdnn.map -lm ${LDFLAGS_SHARED:-}"
|
|
||||||
- LDFLAGS_SHARED_EXPORTALL="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME_PRIVATE} -Wl,--version-script=zdnn_exportall.map -lm ${LDFLAGS_SHARED_EXPORTALL:-}"
|
|
||||||
- LDFLAGS_TEST="-L ../zdnn/${SODIR} -l${LIBNAME_PRIVATE#lib} ../zdnn/${SODIR}/${LIBNAME_PRIVATE}.so -lm ${LDFLAGS_TEST:-}"
|
|
||||||
+ LDFLAGS_SHARED="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME} -Wl,--version-script=zdnn.map -lm ${LDFLAGS_SHARED:-} ${LDFLAGS:-}"
|
|
||||||
+ LDFLAGS_SHARED_EXPORTALL="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME_PRIVATE} -Wl,--version-script=zdnn_exportall.map -lm ${LDFLAGS_SHARED_EXPORTALL:-} ${LDFLAGS:-}"
|
|
||||||
+ LDFLAGS_TEST="-L ../zdnn/${SODIR} -l${LIBNAME_PRIVATE#lib} ../zdnn/${SODIR}/${LIBNAME_PRIVATE}.so -lm ${LDFLAGS_TEST:-} ${LDFLAGS:-}"
|
|
||||||
LD_PATH_VAR="${LD_PATH_VAR:-LD_LIBRARY_PATH}"
|
|
||||||
ECHOFLAGS="-e"
|
|
||||||
ZDNN_TMAKE_FILES="t-static t-libsoname t-gccexpo t-symcheck t-listings"
|
|
147
libzdnn.spec
147
libzdnn.spec
@ -1,147 +0,0 @@
|
|||||||
Name: libzdnn
|
|
||||||
Version: 1.0.1
|
|
||||||
Release: 8%{?dist}
|
|
||||||
Summary: Driver library for the IBM Z Neural Network Processing Assist Facility
|
|
||||||
|
|
||||||
License: Apache-2.0
|
|
||||||
Url: https://github.com/IBM/zDNN
|
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
||||||
Patch0: ldflags.patch
|
|
||||||
|
|
||||||
ExclusiveArch: s390x
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: g++
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: gawk
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: autoconf
|
|
||||||
|
|
||||||
# Be explicit about the soversion in order to avoid unintentional changes.
|
|
||||||
%global soversion 0
|
|
||||||
|
|
||||||
%description
|
|
||||||
The zDNN library provide a user space API for exploitation of the
|
|
||||||
Neural Network Processing Assist Facility. All application which
|
|
||||||
intend to use that facility on IBM Z are supposed to do this via this
|
|
||||||
library.
|
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
|
||||||
Summary: Development files for %{name}
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
The %{name}-devel package contains libraries and header files for
|
|
||||||
developing applications that use %{name}.
|
|
||||||
|
|
||||||
|
|
||||||
%package static
|
|
||||||
Summary: Static library version %{name}
|
|
||||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description static
|
|
||||||
The %{name}-static package contains the static library of %{name}.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%autosetup -p1 -n zDNN-%{version}
|
|
||||||
autoreconf -i
|
|
||||||
|
|
||||||
%build
|
|
||||||
# libzdnn needs to be built with z14 support so override the distro wide options to append -march=z14.
|
|
||||||
# cflags for the init routines in e.g. zdnn_init.c should just use the distro options.
|
|
||||||
# export CFLAGS_INIT explicitely since it is not handled by configure
|
|
||||||
CFLAGS_INIT="%{build_cflags}"; export CFLAGS_INIT; CFLAGS="%{build_cflags} -march=z14 -mtune=z14" CXXFLAGS="%{build_cxxflags} -march=z14 -mtune=z14" %configure
|
|
||||||
%make_build build
|
|
||||||
|
|
||||||
%install
|
|
||||||
%make_install
|
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version}
|
|
||||||
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion}
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
|
||||||
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{_libdir}/libzdnn.so.%{version}
|
|
||||||
%{_libdir}/libzdnn.so.%{soversion}
|
|
||||||
%doc README.md
|
|
||||||
%license LICENSE
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%{_includedir}/zdnn.h
|
|
||||||
%{_libdir}/*.so
|
|
||||||
|
|
||||||
%files static
|
|
||||||
%{_libdir}/libzdnn.a
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.0.1-8
|
|
||||||
- Bump release for October 2024 mass rebuild:
|
|
||||||
Resolves: RHEL-64018
|
|
||||||
|
|
||||||
* Fri Jun 28 2024 Jakub Čajka <jcajka@redhat.com> - 1.0.1-7
|
|
||||||
- Release bump
|
|
||||||
- Related: RHEL-33503
|
|
||||||
|
|
||||||
* Fri Jun 28 2024 Jakub Čajka <jcajka@redhat.com> - 1.0.1-6
|
|
||||||
- LDFLAGS correction
|
|
||||||
- Resolves: RHEL-33503
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.1-5
|
|
||||||
- Bump release for June 2024 mass rebuild
|
|
||||||
|
|
||||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Mar 1 2023 Andreas Krebbel <krebbel@linux.ibm.com> - 1.0.1-1
|
|
||||||
- New release.
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Dec 10 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.4.0-1
|
|
||||||
- New release.
|
|
||||||
- Remove: libzdnn-cflags_init.patch
|
|
||||||
- Remove: libzdnn-symbol_check.patch
|
|
||||||
- Remove: libzdnn-makedeps_fix.patch
|
|
||||||
|
|
||||||
* Fri Oct 29 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-6
|
|
||||||
- Include libzdnn-makedeps_fix.patch.
|
|
||||||
|
|
||||||
* Thu Oct 21 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-5
|
|
||||||
- Include libzdnn-symbol_check.patch.
|
|
||||||
|
|
||||||
* Tue Oct 19 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-4
|
|
||||||
- Add missing blank in the description of the static package.
|
|
||||||
- Add build dependency for g++ for the initializer.cpp file.
|
|
||||||
- Make devel dependency on the main package arched.
|
|
||||||
- Change the dependency in the static package to devel and make it arched.
|
|
||||||
|
|
||||||
* Thu Oct 7 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-3
|
|
||||||
- Add -mtune=z14 to override flags.
|
|
||||||
- Fix changelog formatting
|
|
||||||
|
|
||||||
* Sat Oct 2 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-2
|
|
||||||
- Add proper source path.
|
|
||||||
- Add -n parameter to autosetup to deal with the different top-level
|
|
||||||
dirname in the github created tarballs.
|
|
||||||
- Mention zdnn.h explicitely in the files section
|
|
||||||
- Include libzdnn-cflags_init.patch and pass CFLAGS_INIT to configure.
|
|
||||||
|
|
||||||
* Fri Sep 24 2021 Andreas Krebbel <krebbel@linux.ibm.com> - 0.3.1-1
|
|
||||||
- Initial version based on an IBM internal version provided by Stefan
|
|
||||||
Liebler <stli@linux.ibm.com>
|
|
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (libzdnn-1.0.1.tar.gz) = ac020caf18928ddafdf3a854ea167d29189d2ff5d9b3b60fbcffd30052b50b79dba74b0d2cf33f907f3da9c0daed97d258242b101031655fb2cc792e6303fb56
|
|
@ -1,7 +0,0 @@
|
|||||||
summary: Basic smoke test
|
|
||||||
discover:
|
|
||||||
- name: internal
|
|
||||||
how: fmf
|
|
||||||
url: git://pkgs.devel.redhat.com/tests/libzdnn
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
Loading…
Reference in New Issue
Block a user