Commit 7d02004c authored by Rocky Automation's avatar Rocky Automation 📺
Browse files

import libzdnn-0.4.0-1.el9

178c26a9c4df7520d654c13c69fe49ebd2632aad SOURCES/libzdnn-0.4.0.tar.gz
Name: libzdnn
Version: 0.4.0
Release: 1%{?dist}
Summary: Driver library for the IBM Z Neural Network Processing Assist Facility
License: ASL 2.0
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
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
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
%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}.
%autosetup -p1 -n zDNN-%{version}
autoreconf -i
# 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
mv $RPM_BUILD_ROOT%{_libdir}/{soversion} $RPM_BUILD_ROOT%{_libdir}/{version}
ln -s -r $RPM_BUILD_ROOT%{_libdir}/{version} $RPM_BUILD_ROOT%{_libdir}/{soversion}
rm -f $RPM_BUILD_ROOT%{_libdir}/
ln -s -r $RPM_BUILD_ROOT%{_libdir}/{version} $RPM_BUILD_ROOT%{_libdir}/
%license LICENSE
%files devel
%files static
* Fri Mar 25 2022 Jakub <> - 0.4.0-1
- Initial package import
- Resolves: RHBZ#2070957
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment