Blame SPECS/libzdnn.spec

743080
Name:		libzdnn
743080
Version:	0.4.0
89da01
Release:	4%{?dist}
743080
Summary:	Driver library for the IBM Z Neural Network Processing Assist Facility
743080
743080
License:	ASL 2.0
743080
Url:		https://github.com/IBM/zDNN
743080
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
743080
743080
ExclusiveArch:	s390x
743080
BuildRequires:	gcc
743080
BuildRequires:	cpp
743080
BuildRequires:	make
743080
BuildRequires:	gawk
743080
BuildRequires:	automake
743080
BuildRequires:	autoconf
743080
743080
# Be explicit about the soversion in order to avoid unintentional changes.
743080
%global soversion 0
743080
743080
%description
743080
The zDNN library provide a user space API for exploitation of the
743080
Neural Network Processing Assist Facility.  All application which
743080
intend to use that facility on IBM Z are supposed to do this via this
743080
library.
743080
743080
743080
%package	devel
743080
Summary:	Development files for %{name}
743080
Requires:	%{name}%{?_isa} = %{version}-%{release}
743080
743080
%description	devel
743080
The %{name}-devel package contains libraries and header files for
743080
developing applications that use %{name}.
743080
743080
743080
%package	static
743080
Summary:	Static library version %{name}
743080
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
743080
743080
%description    static
743080
The %{name}-static package contains the static library of %{name}.
743080
743080
743080
%prep
743080
%autosetup -p1 -n zDNN-%{version}
743080
autoreconf -i
743080
743080
%build
743080
# libzdnn needs to be built with z14 support so override the distro wide options to append -march=z14.
743080
# cflags for the init routines in e.g. zdnn_init.c should just use the distro options.
743080
# export CFLAGS_INIT explicitely since it is not handled by configure
743080
CFLAGS_INIT="%{build_cflags}"; export CFLAGS_INIT; CFLAGS="%{build_cflags} -march=z14 -mtune=z14" CXXFLAGS="%{build_cxxflags} -march=z14 -mtune=z14" %configure
743080
%make_build build
743080
743080
%install
743080
%make_install
743080
mv $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version}
743080
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{soversion}
743080
743080
rm -f $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
743080
ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libzdnn.so
743080
743080
743080
%files
743080
%{_libdir}/libzdnn.so.%{version}
743080
%{_libdir}/libzdnn.so.%{soversion}
743080
%doc README.md
743080
%license LICENSE
743080
743080
%files devel
743080
%{_includedir}/zdnn.h
743080
%{_libdir}/*.so
743080
743080
%files static
743080
%{_libdir}/libzdnn.a
743080
743080
%changelog
89da01
* Tue Dec 20 2022 Jakub Čajka <jcajka@redhat.com> - 0.4.0-4
89da01
- Release bump
89da01
- Resolves: BZ#2084475
89da01
743080
* Wed Mar 23 2022 Jakub Čajka <jcajka@redhat.com> - 0.4.0-3
743080
- Sync with upstream
743080
743080
* Wed Mar 09 2022 Jakub Čajka <jcajka@redhat.com> - 0.4.0-2
743080
- Added gating
743080
743080
* Wed Mar 09 2022 Jakub Čajka <jcajka@redhat.com> - 0.4.0-1
743080
- Initial package version import