- Use modern macros for building

OBS-URL: https://build.opensuse.org/package/show/hardware/Ne10?expand=0&rev=8
This commit is contained in:
Martin Pluskal 2019-11-05 13:29:53 +00:00 committed by Git OBS Bridge
parent 74eecc8deb
commit ae015d068f
2 changed files with 12 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 5 13:29:18 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Use modern macros for building
-------------------------------------------------------------------
Thu Oct 17 12:25:36 UTC 2019 - Richard Brown <rbrown@suse.com>

View File

@ -22,11 +22,10 @@ Version: 1.2.1
Release: 0
Summary: A library of common math and DSP functions optimized for ARM NEON
License: BSD-3-Clause
Url: http://projectne10.github.com/Ne10/
URL: https://projectne10.github.com/Ne10/
Source: https://github.com/projectNe10/Ne10/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: armv7hl aarch64
%description
@ -78,16 +77,15 @@ This package contains the development files.
%build
%cmake \
-DNE10_BUILD_STATIC=OFF \
-DNE10_BUILD_SHARED=ON \
-DGNULINUX_PLATFORM=ON \
%ifarch aarch64
-DNE10_LINUX_TARGET_ARCH=aarch64 \
%else
-DNE10_LINUX_TARGET_ARCH=armv7 \
%endif
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
-DNE10_BUILD_STATIC=OFF \
-DNE10_BUILD_SHARED=ON \
-DGNULINUX_PLATFORM=ON
%cmake_build
%install
for i in inc/*.h; do
@ -105,18 +103,14 @@ done
%postun -n libNE10_test%{sover} -p /sbin/ldconfig
%files -n libNE10-%{sover}
%defattr(-,root,root)
%doc LICENSE
%license LICENSE
%{_libdir}/libNE10.so.%{sover}*
%files -n libNE10_test%{sover}
%defattr(-,root,root)
%doc LICENSE
%license LICENSE
%{_libdir}/libNE10_test.so.%{sover}*
%files devel
%defattr(-,root,root)
%doc LICENSE
%{_includedir}/*.h
%{_libdir}/libNE10.so
%{_libdir}/libNE10_test.so