Move openblas-srpm-macros to separate package

This commit is contained in:
Orion Poplawski 2017-03-20 16:12:59 -06:00
parent c98c022805
commit bdce7d2e6b
2 changed files with 4 additions and 21 deletions

View File

@ -15,14 +15,12 @@
Name: openblas Name: openblas
Version: 0.2.19 Version: 0.2.19
Release: 8%{?dist} Release: 9%{?dist}
Summary: An optimized BLAS library based on GotoBLAS2 Summary: An optimized BLAS library based on GotoBLAS2
Group: Development/Libraries Group: Development/Libraries
License: BSD License: BSD
URL: https://github.com/xianyi/OpenBLAS/ URL: https://github.com/xianyi/OpenBLAS/
Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz
# This contains the list of arches that openblas works on
Source1: openblas_arches
# Use system lapack # Use system lapack
Patch0: openblas-0.2.15-system_lapack.patch Patch0: openblas-0.2.15-system_lapack.patch
# Drop extra p from threaded library name # Drop extra p from threaded library name
@ -93,7 +91,6 @@ BuildRequires: lapack64-static
# Upstream supports the package only on these architectures. # Upstream supports the package only on these architectures.
# Runtime processor detection is not available on other archs. # Runtime processor detection is not available on other archs.
%global openblas_arches %(cat %SOURCE1)
ExclusiveArch: %{openblas_arches} ExclusiveArch: %{openblas_arches}
%global base_description \ %global base_description \
@ -224,13 +221,6 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
This package contains the static libraries. This package contains the static libraries.
%package srpm-macros
Summary: RPM macros for building source packages
BuildArch: noarch
%description srpm-macros
RPM macros for building source packages.
%prep %prep
%setup -q -c -T %setup -q -c -T
@ -557,12 +547,6 @@ done
# Get rid of generated CMake config # Get rid of generated CMake config
rm -rf %{buildroot}%{_libdir}/cmake rm -rf %{buildroot}%{_libdir}/cmake
# rpm macro
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
mkdir -p %{buildroot}%{macrosdir}
# Avoid expansion of macros inside %%openblas_arches by catting the source again
echo %%openblas_arches $(cat %SOURCE1) > %{buildroot}%{macrosdir}/macros.%{name}-srpm
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -648,9 +632,6 @@ rm -rf %{buildroot}
%{_libdir}/lib%{name}p64_.so %{_libdir}/lib%{name}p64_.so
%endif %endif
%files srpm-macros
%{macrosdir}/macros.%{name}-srpm
%files Rblas %files Rblas
%{_libdir}/R/lib/libRblas.so %{_libdir}/R/lib/libRblas.so
@ -668,6 +649,9 @@ rm -rf %{buildroot}
%endif %endif
%changelog %changelog
* Mon Mar 20 2017 Orion Poplawski <orion@cora.nwra.com> - 0.2.19-9
- Move openblas-srpm-macros to separate package
* Wed Mar 15 2017 Orion Poplawski <orion@cora.nwra.com> - 0.2.19-8 * Wed Mar 15 2017 Orion Poplawski <orion@cora.nwra.com> - 0.2.19-8
- Define %%openblas_arches for dependent packages to use - Define %%openblas_arches for dependent packages to use

View File

@ -1 +0,0 @@
x86_64 %{ix86} armv7hl %{power64} aarch64